MongoDB Permission denied /data/db/mongod.lock errno:13
Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied
When running back my webapp on OS X 10.10, I encounter and error on my noSQL DB called Mongo. It could be the dependencies from 10.9 to 10.10 that occurs the error.
/mongo-1.6.0/lib/mongo/connection.rb:405:in `connect': Failed to connect to a master node at localhost:27017 (Mongo::ConnectionFailure)
I google around and what I did was to removed the mongod.lock at “/data/db/mongod.lock”, and it solves my problem.
Andre$ sudo chown -R `id -u` /data/db
Andre$ mongod