Problem starting up mongod on Windows, C:/data/db exists, running as admin

729 views
Skip to first unread message

Meai

unread,
Mar 21, 2011, 7:49:31 AM3/21/11
to mongodb-user
What could be the problem? Here is the log:

B:\Programmierung\Bibliotheken\mongo\bin>mongod
mongod --help for help and startup options
Mon Mar 21 12:48:15 [initandlisten] MongoDB starting : pid=3732
port=27017 dbpath=/data/db/ 64-bit
Mon Mar 21 12:48:15 [initandlisten] db version v1.8.0, pdfile version
4.5
Mon Mar 21 12:48:15 [initandlisten] git version:
9c28b1d608df0ed6ebe791f63682370082da41c0
Mon Mar 21 12:48:15 [initandlisten] build sys info: windows (6, 1,
7600, 2, '') BOOST_LIB_VERSION=1_
42
Mon Mar 21 12:48:15 [initandlisten] exception in initAndListen
std::exception: dbpath (/data/db/) do
es not exist, terminating
Mon Mar 21 12:48:15 dbexit:
Mon Mar 21 12:48:15 [initandlisten] shutdown: going to close listening
sockets...
Mon Mar 21 12:48:15 [initandlisten] shutdown: going to flush
diaglog...
Mon Mar 21 12:48:15 [initandlisten] shutdown: going to close
sockets...
Mon Mar 21 12:48:15 [initandlisten] shutdown: waiting for fs
preallocator...
Mon Mar 21 12:48:15 [initandlisten] shutdown: closing all files...
Mon Mar 21 12:48:15 closeAllFiles() finished
Mon Mar 21 12:48:15 dbexit: really exiting now

Nat

unread,
Mar 21, 2011, 7:51:52 AM3/21/11
to mongod...@googlegroups.com
Well you run it on b: drive. You need to have b:/data/db or set up --dbpath explicitly.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Gaetan Voyer-Perrault

unread,
Mar 21, 2011, 12:43:55 PM3/21/11
to mongod...@googlegroups.com
@Meai: the error is the following line

std::exception: dbpath (/data/db/) does not exist, terminating

You will need to set
 a) create that path OR
 b) --dbpath when you run

Please see here for more details on command line parameters:

- Gates

Alvin Richards

unread,
Mar 21, 2011, 12:51:03 PM3/21/11
to mongod...@googlegroups.com
You also need to check that the user that starts mongod also has permissions to read and write into this directory.

-Alvin

Reply all
Reply to author
Forward
0 new messages