help !! please Mongod.exe Console closes down as soon as it starts up

5,160 views
Skip to first unread message

Mario Brown

unread,
Feb 23, 2014, 4:22:36 PM2/23/14
to mongod...@googlegroups.com
I am a novice  to MongoDb

On clicking on Mongod.exe, the console closes down as soon as it starts up

My operating system is  Windows 32 bit Vista Home premium v6  with sp2
I have been using mongodb 2.2.3 but installed mongodb 2.4.9 when this problem arose

All had been working well with both mongod.exe and mongo.exe (2.2.3) for  3 weeks. Then suddenly, when firing up mongod.exe by double clicking  the icon in the directory , the console closes as soon as it starts up
.
Using the Windows command console starting  - mongo 2.2.3 I get immediate shutdown of mongo with this as the seeming diagnosis 
Sun Feb 23 20:46:16 [initandlisten] Unable to check for journal files due to: boost::filesystem::basic_directory_iterator constructor: The system cannot find the path specified: "\data\db\journal"
**************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
*************



 And using mongo 2.4.9 ,I get in the command console
Sun Feb 23 20:51:39.291 [initandlisten] allocator: system
Sun Feb 23 20:51:39.292 [initandlisten] options: {}
**************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
*************
Sun Feb 23 20:51:39.307 [initandlisten] exception in initAndListen: 12596 old lock file, terminating


The trouble now is at http://dochub.mongodb.org/core/repair redirected to https://wiki.mongodb.com/login.action........ I am expected to log in - but being new to Mongodb I have never registered so I cannot log in and there is no way to register!!

How should  i proceed?
Thanks for any help.

Stephen Steneker

unread,
Feb 23, 2014, 5:17:26 PM2/23/14
to mongod...@googlegroups.com

All had been working well with both mongod.exe and mongo.exe (2.2.3) for  3 weeks. Then suddenly, when firing up mongod.exe by double clicking  the icon in the directory , the console closes as soon as it starts up
.
Using the Windows command console starting  - mongo 2.2.3 I get immediate shutdown of mongo with this as the seeming diagnosis 
Sun Feb 23 20:46:16 [initandlisten] Unable to check for journal files due to: boost::filesystem::basic_directory_iterator constructor: The system cannot find the path specified: "\data\db\journal"

Hi Mario,

The error here ("cannot find the path specified... ") suggests that the directory c:\data\db\ doesn't exist or isn't readable by mongod.exe. Did you perhaps previously start mongod.exe with a different --dbpath for your data files? Can you confirm that c:\data\db exists and has your MongoDB data files?


The trouble now is at http://dochub.mongodb.org/core/repair redirected to https://wiki.mongodb.com/login.action........ I am expected to log in - but being new to Mongodb I have never registered so I cannot log in and there is no way to register!!

The dochub redirect is incorrect and will be fixed; you shouldn't be required to login. The intended destination page is: http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/.

Note: instead of clicking on mongod.exe to launch, a more convenient approach is to configure MongoDB as a Windows service:

Regards,
Stephen 
Reply all
Reply to author
Forward
0 new messages