[DOCS-11] Default db path is /data/db/ on Windows MongoDB Created: 09/Dec/10  Updated: 30/Oct/23  Resolved: 14/Feb/12

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Minor - P4
Reporter: Andrew Armstrong Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 64bit


Issue Links:
Related
related to SERVER-3632 dbpath should use windows syntax on w... Closed
is related to SERVER-2866 mongod startup output uses unix pathn... Closed
Participants:
Days since reply: 12 years, 1 week, 1 day ago

 Description   

I have attempted to run mongod.exe after downloading the 64bit Windows build; and immediately have this error:

...>mongod
mongod --help for help and startup options
Thu Dec 09 18:42:39 MongoDB starting : pid=13128 port=27017 dbpath=/data/db/ 64-bit
Thu Dec 09 18:42:39 db version v1.6.5, pdfile version 4.5
Thu Dec 09 18:42:39 git version: 0eb017e9b2828155a67c5612183337b89e12e291
Thu Dec 09 18:42:39 sys info: windows (6, 1, 7600, 2, '') BOOST_LIB_VERSION=1_42
Thu Dec 09 18:42:39 exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating
Thu Dec 09 18:42:39 dbexit:

Thu Dec 09 18:42:39 shutdown: going to close listening sockets...
Thu Dec 09 18:42:39 shutdown: going to flush oplog...
Thu Dec 09 18:42:39 shutdown: going to close sockets...
Thu Dec 09 18:42:39 shutdown: waiting for fs preallocator...
Thu Dec 09 18:42:39 shutdown: closing all files...
Thu Dec 09 18:42:39 closeAllFiles() finished

Thu Dec 09 18:42:39 dbexit: really exiting now

I'm reading through the 'MongoDB: The Definitive Guide' and it indicates that c:\data\db\ should be the default directory on Windows.

Trivial issue of course, just pointing it out!



 Comments   
Comment by Sam Kleinman (Inactive) [ 14/Feb/12 ]

I can't find any place in the documentation that still has an issue with Windows paths (I suspect that it's been fixed and this issue has grown stale), and it seems that SERVER-3632 will resolve any remaining confusion.

Feel free to reopen, if I've missed something here.

Comment by Eliot Horowitz (Inactive) [ 09/Dec/10 ]

We should remove c:\ from the docs as its really whatever drive you're on

Comment by Andrew Armstrong [ 09/Dec/10 ]

Ah, the message is a bit misleading - after mkdir C:\data\db\ mongodb does start up as intended.

I suppose the lack of C:/ at the front of the path made me assume it was thinking I was on Linux, when it was really alright to begin with.

Not really a bug now?

Generated at Thu Feb 08 07:37:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.