[SERVER-36378] Cannot Repair MongoDB Database/Won't run mongod Created: 31/Jul/18  Updated: 04/Sep/18  Resolved: 31/Jul/18

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

Type: Bug Priority: Major - P3
Reporter: Kevin Grastorf [X] Assignee: Nick Brewer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac Sierra, node.js, mongo installed with homebrew


Attachments: PNG File Screen Shot 2018-07-31 at 11.15.57 AM.png     PNG File Screen Shot 2018-07-31 at 11.17.30 AM.png     PNG File Screen Shot 2018-07-31 at 11.17.46 AM.png     PNG File Screen Shot 2018-07-31 at 11.17.53 AM.png     PNG File image-2018-07-31-11-18-47-991.png    
Operating System: OS X
Participants:

 Description   

I cannot get mongod to run. I have uninstalled and reinstalled mongo twice, tried to remove the socket file mongodb-27017.lock, emptied the folder in usr/local/var/mongodb. I am not sure what else I can do.



 Comments   
Comment by Kevin Grastorf [X] [ 31/Jul/18 ]

Thank you, Nick. I will try those options and move to the mongodb-user group if I need further assistance.

 

Comment by Nick Brewer [ 31/Jul/18 ]

KGrastorf The error in your screenshot indicates that mongod is finding WiredTiger storage engine files within the /data/db directory. This is the default dbpath that is used if one is not specified. To use the config file that is created as part of a Homebrew install, you would need to run:

mongod --config /usr/local/etc/mongod.conf

To start from scratch, you could simply create a new folder in your home directory, and start mongod manually with the --dbpath option:

mongod --dbpath ~/data

From your responses, I do not see anything to indicate a bug in the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

-Nick

Comment by Kevin Grastorf [X] [ 31/Jul/18 ]

Nick, there is nothing in the mongodb folder. I cleared it out. As for directory being manipulated by another program while mondog was running, I don't think so. 

 

Thanks,

 

Kevin

Comment by Nick Brewer [ 31/Jul/18 ]

KGrastorf If you can upload the WiredTiger.wt and WiredTiger.turtle files from your /data/db directory, we can attempt to repair them. Additionally, I'd like to confirm:

  • Did the mongod / local machine experience an unexpected shutdown? 
  • Were the files in the /data/db directory manipulated by another program while the mongod was running?

Thanks,

Nick

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