Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB: ERROR: child process failed, exited with error number 14

Tags:

mongodb

I run MongoDB on Mac:

Shave:mongodb_simple Logan$ ./bin/mongod -f conf/mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 5110
ERROR: child process failed, exited with error number 14

Is that because I shutdown it in wrong way?

like image 626
Luster Avatar asked May 27 '15 07:05

Luster


2 Answers

Check the ownership of the file /tmp/mongodb-27017.sock

It should be mongod. I got same error since it was root:root

like image 151
Lithin Joseph Avatar answered Oct 21 '22 08:10

Lithin Joseph


By changing owner to mongodb for all files under /var/lib/mongodb/ it started working for me:

chown mongodb:mongodb -R /var/lib/mongodb/
like image 26
Debashis Prusty Avatar answered Oct 21 '22 08:10

Debashis Prusty