[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: |
|
| 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 } |
| 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, | ||
| 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, | ||
| 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 } | ||
| 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, | ||
| 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:
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, |