[SERVER-3221] mongod does not start if it does not have access to subdirectories of the dbpath directory Created: 08/Jun/11  Updated: 08/Mar/13  Resolved: 10/Jan/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 1.8.1
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Sridhar Nanjundeswaran Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Depends
Participants:

 Description   

mongod does not start in this situation. On startup mongod should ignore any directories it does not have access to.

Mon Jun 06 21:25:56 [initandlisten] build sys info: windows (6, 1, 7600, 2, '') BOOST_LIB_VERSION=1_42; TraceSource 'WaWorkerHost.exe' event

Mon Jun 06 21:25:57 [initandlisten] Assertion: 13294:caught boost exception: boost::filesystem::basic_directory_iterator constructor: Access is denied:
"F:\$RECYCLE.BIN\S-1-5-21-3034559387-672763103-1647238062-1001"; TraceSource 'WaWorkerHost.exe' event
Mon Jun 06 21:25:57 [initandlisten] exception in initAndListen std::exception: caught boost exception: boost::filesystem::basic_directory_iterator

constructor: Access is denied: "F:\$RECYCLE.BIN\S-1-5-21-3034559387-672763103-1647238062-1001", terminating; TraceSource 'WaWorkerHost.exe' event
Mon Jun 06 21:25:57 [initandlisten] shutdown: going to close listening sockets...; TraceSource 'WaWorkerHost.exe' event



 Comments   
Comment by Eliot Horowitz (Inactive) [ 10/Jan/13 ]

I think its reasonable for mongo to require all subdirectories, since it uses them in some cases.

Generated at Thu Feb 08 03:02:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.