IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Persistance des données Java Discussion :

probleme de lock avec mongodb


Sujet :

Persistance des données Java

  1. #1
    Membre régulier
    Inscrit en
    Mai 2002
    Messages
    219
    Détails du profil
    Informations forums :
    Inscription : Mai 2002
    Messages : 219
    Points : 74
    Points
    74
    Par défaut probleme de lock avec mongodb
    Toujours a tous, je commence avec mongobd . QUand je pars mon serveur mongo. J'obtiens cette erreur

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    C:\devtools\mongodb-2.2.2\bin>mongod.exe --config C:\devtools\mongodb-2.2.2\mongod.conf
    Tue Sep 04 14:26:26
    Tue Sep 04 14:26:26 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
    Tue Sep 04 14:26:26
    Tue Sep 04 14:26:26 [initandlisten] MongoDB starting : pid=8948 port=25656 dbpath=C:\devtools\mongodb-2.2.2\data\db 32-bit host=PC-EMMANUEL
    Tue Sep 04 14:26:26 [initandlisten]
    Tue Sep 04 14:26:26 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
    Tue Sep 04 14:26:26 [initandlisten] ** see http://blog.mongodb.org/post/1377889...it-limitations
    Tue Sep 04 14:26:26 [initandlisten] ** with --journal, the limit is lower
    Tue Sep 04 14:26:26 [initandlisten]
    Tue Sep 04 14:26:26 [initandlisten] db version v2.2.2-rc0, pdfile version 4.5
    Tue Sep 04 14:26:26 [initandlisten] git version: ef972b46c92510341f0a25c5f88c8a539b2a8517
    Tue Sep 04 14:26:26 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB_VERSION=1_49
    Tue Sep 04 14:26:26 [initandlisten] options: { config: "C:\devtools\mongodb-2.2.2\mongod.conf", dbpath: "C:\devtools\mongodb-2.2.2\data\db", port: 25656 }
    Tue Sep 04 14:26:26 [initandlisten] Unable to check for journal files due to: boost::filesystem::basic_directory_iterator constructor: The system cannot find the path specified: "C:\devtools\mongodb-2.2.2\data\db\journal"
    **************
    Unclean shutdown detected.
    Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
    *************
    Tue Sep 04 14:26:26 [initandlisten] exception in initAndListen: 12596 old lock file, terminating
    Tue Sep 04 14:26:26 dbexit:
    Tue Sep 04 14:26:26 [initandlisten] shutdown: going to close listening sockets...
    Tue Sep 04 14:26:26 [initandlisten] shutdown: going to flush diaglog...
    Tue Sep 04 14:26:26 [initandlisten] shutdown: going to close sockets...
    Tue Sep 04 14:26:26 [initandlisten] shutdown: waiting for fs preallocator...
    Tue Sep 04 14:26:26 [initandlisten] shutdown: closing all files...
    Tue Sep 04 14:26:26 [initandlisten] closeAllFiles() finished
    Tue Sep 04 14:26:26 dbexit: really exiting now
    avec comme dbpath=C:\devtools\mongodb-2.2.2\data\db

    Et on me dit pour réparer le tout , je dois faire un repair
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mongod --dbpath /data/db --repair
    et la j'obtiens ceci

    Wed Sep 05 13:02:01
    Wed Sep 05 13:02:01 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
    Wed Sep 05 13:02:01
    Wed Sep 05 13:02:01 [initandlisten] MongoDB starting : pid=9784 port=27017 dbpath=/data/db 32-bit host=PC-EMMANUEL
    Wed Sep 05 13:02:01 [initandlisten]
    Wed Sep 05 13:02:01 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
    Wed Sep 05 13:02:01 [initandlisten] ** see http://blog.mongodb.org/post/1377889...it-limitations
    Wed Sep 05 13:02:01 [initandlisten] ** with --journal, the limit is lower
    Wed Sep 05 13:02:01 [initandlisten]
    Wed Sep 05 13:02:01 [initandlisten] db version v2.2.2-rc0, pdfile version 4.5
    Wed Sep 05 13:02:01 [initandlisten] git version: ef972b46c92510341f0a25c5f88c8a539b2a8517
    Wed Sep 05 13:02:01 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB_VERSION=1_49
    Wed Sep 05 13:02:01 [initandlisten] options: { dbpath: "/data/db", repair: true }
    Wed Sep 05 13:02:01 [initandlisten] exception in initAndListen: 10296
    *********************************************************************
    ERROR: dbpath (/data/db) does not exist.
    Create this directory or give existing directory in --dbpath.
    See http://dochub.mongodb.org/core/startingandstoppingmongo
    *********************************************************************
    , terminating
    Wed Sep 05 13:02:01 dbexit:
    Wed Sep 05 13:02:01 [initandlisten] shutdown: going to close listening sockets...
    Wed Sep 05 13:02:01 [initandlisten] shutdown: going to flush diaglog...
    Wed Sep 05 13:02:01 [initandlisten] shutdown: going to close sockets...
    Wed Sep 05 13:02:01 [initandlisten] shutdown: waiting for fs preallocator...
    Wed Sep 05 13:02:01 [initandlisten] shutdown: closing all files...
    Wed Sep 05 13:02:01 [initandlisten] closeAllFiles() finished
    Wed Sep 05 13:02:01 dbexit: really exiting now
    donc je tourne en round la. Est ce qu il y a une personne qui peut m aider
    cordialement merci

  2. #2
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Points : 15 059
    Points
    15 059
    Par défaut
    Bonjour,

    La commande donnée est un exemple, pour ton cas, ça ne se trouve pas dans /data/db mais C:\devtools\mongodb-2.2.2\data\db

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mongod --dbpath C:\devtools\mongodb-2.2.2\data\db --repair
    A+.

  3. #3
    Membre régulier
    Inscrit en
    Mai 2002
    Messages
    219
    Détails du profil
    Informations forums :
    Inscription : Mai 2002
    Messages : 219
    Points : 74
    Points
    74
    Par défaut
    ha ok merci
    ca marche

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Probleme de réseau avec aol
    Par Mut dans le forum Développement
    Réponses: 22
    Dernier message: 26/05/2003, 23h58
  2. Réponses: 6
    Dernier message: 04/04/2003, 15h28
  3. [Kylix] Probleme de séparateur avec Kylix2 ?
    Par jeanphy dans le forum EDI
    Réponses: 4
    Dernier message: 10/02/2003, 16h41
  4. Réponses: 12
    Dernier message: 23/10/2002, 11h56
  5. Probleme d'impression avec la méthode TForm->Print()
    Par Kid Icarus dans le forum C++Builder
    Réponses: 13
    Dernier message: 31/07/2002, 14h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo