Reputation: 183
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:
data/
and recreate the path data/db
mongod.lock
But none of these worked.
Any idea of what I should do? Thanks
Upvotes: 0
Views: 177
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