[SERVER-31542] Unable to start up Mongodb Created: 13/Oct/17  Updated: 07/Dec/17  Resolved: 10/Nov/17

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

Type: Bug Priority: Major - P3
Reporter: George Lin Assignee: Mark Agarunov
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Capture.PNG     HTML File WiredTiger     File WiredTiger.lock     File WiredTiger.wt    
Operating System: ALL
Participants:

 Description   

I tried various repair options but none seems to be helping

2017-10-12T18:07:35.406-0700 I CONTROL [initandlisten] MongoDB starting : pid=5180 port=27017 dbpath=D:\MongoDB\data 64-bit host=PowerHouse
2017-10-12T18:07:35.406-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2017-10-12T18:07:35.406-0700 I CONTROL [initandlisten] db version v3.4.9
2017-10-12T18:07:35.406-0700 I CONTROL [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-10-12T18:07:35.406-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] allocator: tcmalloc
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] modules: none
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] build environment:
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] distarch: x86_64
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] target_arch: x86_64
2017-10-12T18:07:35.407-0700 I CONTROL [initandlisten] options: { repair: true, storage:

{ dbPath: "D:\MongoDB\data", engine: "wiredTiger" }

}
2017-10-12T18:07:35.407-0700 I STORAGE [initandlisten] Detected WT journal files. Running recovery from last checkpoint.
2017-10-12T18:07:35.407-0700 I STORAGE [initandlisten] journal to nojournal transition config: create,cache_size=3559M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-10-12T18:07:35.413-0700 E STORAGE [initandlisten] WiredTiger error (0) [1507856855:412881][5180:140719375921920], file:WiredTiger.wt, connection: D:\MongoDB\data\WiredTiger.turtle: handle-open: CreateFileW: Access is denied.
2017-10-12T18:07:35.414-0700 I - [initandlisten] Assertion: 28718:13: Permission denied src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp 253
2017-10-12T18:07:35.414-0700 I STORAGE [initandlisten] exception in initAndListen: 28718 13: Permission denied, terminating
2017-10-12T18:07:35.414-0700 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-10-12T18:07:35.414-0700 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-10-12T18:07:35.414-0700 I CONTROL [initandlisten] now exiting
2017-10-12T18:07:35.414-0700 I CONTROL [initandlisten] shutting down with code:100



 Comments   
Comment by Mark Agarunov [ 10/Nov/17 ]

Hello kingdech,

We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Thanks,
Mark

Comment by Mark Agarunov [ 16/Oct/17 ]

Hello kingdech,

Thank you for providing this information. As the log still states that the file cannot be opened due to permissions, I'm inclined to believe this is due to File and folder permissions. Could you please verify that the permissions set on the directory allow modification by setting the Full control permission to 'Allow' for the mongodb data directory for the relevant users?

Thanks,
Mark

Comment by George Lin [ 13/Oct/17 ]

I added the screenshot which shows I am running in Admin mode

Comment by George Lin [ 13/Oct/17 ]

Exact same issue

C:\WINDOWS\system32>mongod --dbpath d:\MongoDB\data
2017-10-13T13:54:55.417-0700 I CONTROL [initandlisten] MongoDB starting : pid=16848 port=27017 dbpath=d:\MongoDB\data 64-bit host=PowerHouse
2017-10-13T13:54:55.418-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2017-10-13T13:54:55.418-0700 I CONTROL [initandlisten] db version v3.4.9
2017-10-13T13:54:55.418-0700 I CONTROL [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-10-13T13:54:55.418-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] allocator: tcmalloc
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] modules: none
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] build environment:
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] distarch: x86_64
2017-10-13T13:54:55.419-0700 I CONTROL [initandlisten] target_arch: x86_64
2017-10-13T13:54:55.420-0700 I CONTROL [initandlisten] options: { storage:

{ dbPath: "d:\MongoDB\data" }

}
2017-10-13T13:54:55.421-0700 I - [initandlisten] Detected data files in d:\MongoDB\data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2017-10-13T13:54:55.422-0700 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3559M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-10-13T13:54:55.447-0700 E STORAGE [initandlisten] WiredTiger error (0) [1507928095:446563][16848:140725041312512], file:WiredTiger.wt, connection: d:\MongoDB\data\WiredTiger.turtle: handle-open: CreateFileW: Access is denied.
2017-10-13T13:54:55.448-0700 I - [initandlisten] Assertion: 28595:13: Permission denied src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp 269
2017-10-13T13:54:55.450-0700 I STORAGE [initandlisten] exception in initAndListen: 28595 13: Permission denied, terminating
2017-10-13T13:54:55.451-0700 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-10-13T13:54:55.453-0700 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-10-13T13:54:55.456-0700 I CONTROL [initandlisten] now exiting
2017-10-13T13:54:55.457-0700 I CONTROL [initandlisten] shutting down with code:100

Comment by Mark Agarunov [ 13/Oct/17 ]

Hello kingdech,

Thank you for the response. Windows generally has file and directory level permissions. Please try running MongoDB from a command prompt with administrative rights to see if this fixes the issue. If Mongod starts in the administrator command prompt, please adjust the permissions on the MongoDB directories and files so that you can launch mongod with the desired user.

Thanks,
Mark

Comment by George Lin [ 13/Oct/17 ]

I am running from cmd shell in windows, I doubt its permission related?

Comment by Mark Agarunov [ 13/Oct/17 ]

Hello kingdech,

Thank you for the report. Looking over the logs you've provided, this looks to be due to a permissions issue:

2017-10-12T18:07:35.413-0700 E STORAGE [initandlisten] WiredTiger error (0) [1507856855:412881][5180:140719375921920], file:WiredTiger.wt, connection: D:\MongoDB\data\WiredTiger.turtle: handle-open: CreateFileW: Access is denied.
2017-10-12T18:07:35.414-0700 I - [initandlisten] Assertion: 28718:13: Permission denied src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp 253

Please make sure the user you are running mongod as has permissions to write and create files in {{ D:\MongoDB\data}}, as per the logs. Please let me know if this resolves the issue for you.

Thanks,
Mark

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