MongoDB loads but breaks, returning status=14

MongoDB loads but breaks, returning status=14


After googling around for a while. I found that that is because the permission settings on /var/lib/mongodb and /tmp/mongodb-27017.lock are wrong. You will have to change the owner to monogdb user

sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock

then

sudo service mongod restart



Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram