baldychristophe
baldychristophe

Reputation: 183

Mongod starting error (errno 45) : Unable to lock file

When I try to start mongod with the following command:

mongod --dbpath data/db

I get the following error:

    [initandlisten] exception in initAndListen: 98 Unable to lock file: 
data/db/mongod.lock errno:45 Operation not supported. Is a mongod instance 
already running?, terminating

but when I use the ps command line, I don't see any running mongod instance.

I have tried to:

But none of these worked.

Any idea of what I should do? Thanks

Upvotes: 0

Views: 177

Answers (1)

cohenjo
cohenjo

Reputation: 586

Not All File systems support locking, Are you by any chance using NFS? could you add FS type, mount options and permissions for your data folder?

Upvotes: 1

Related Questions