Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongo db (mongodb.service) failed, status 14

I am experiencing the following problem using mongodb.

This is the error, when I check the status:

Screenshot of the error (mongodb.service, status 14)

Screenshot of code in the mongod.config file

Screenshot of the log file

I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error. I am using MacBook pro if this matters.

Would really appreciate, if someone can help me fix this.

like image 880
Ivan C Avatar asked Nov 25 '18 16:11

Ivan C


Video Answer


1 Answers

By changing the owner to monogdb user of /var/lib/mongodb and /tmp/mongodb-27017.lock has worked for me.

sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock
like image 85
Roshan Avatar answered Sep 30 '22 14:09

Roshan