user862010
user862010

Reputation:

Mongo DB, mongod.lock

Folks, I have a question about MongoDB, is the following, MongoDB installed in Windows Service, for whenever I start the computer, start the service together, just that .. is not working .. checking the error logs says the mongod.lock already exists, and then to the service and starts, stops and starts .. looks like all the time .. until I disable and delete the file, how can I avoid this?

Upvotes: 0

Views: 2351

Answers (1)

milan
milan

Reputation: 12420

You typically end up with the mongodb.lock if you don't shutdown mongodb properly. In this case maybe you need to repair the database before mongo can successfully start. To avoid this, make sure mongodb gets properly shut down.

Upvotes: 1

Related Questions