Filip Eriksson
Filip Eriksson

Reputation: 977

Unable to create/open lock file: \data\db\mongod.lock

I am follwing this tutorial: I am using 64-bit Windows 7 computer. http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

I have installed MongoDB and starts the MongoDB file from the command prompt. Then I get the following error message:

Unable to create/open lock file: \data\db\mongod.lock

I don't know how to solve that problem.

Upvotes: 3

Views: 9498

Answers (2)

Chikondi
Chikondi

Reputation: 11

I was experiencing a similar problem and i noted that some MongoDB processes were running in the background when i opened the task manager. so after i terminated the tasks and went to the mongod.lock file i was now able to delete it.

Upvotes: 1

Kanmani
Kanmani

Reputation: 141

Delete the mongod.lock file in the /data/db folder

Restart mongodb

Upvotes: 4

Related Questions