ERROR: child process failed, exited with error number 14(error number 1,error number 100)

created at 02-05-2022 views: 138

Problem Description

When starting mongodb, I get error: 14, looking at the mongodb.log prompts MongoDB – Unable to unlink socket file /tmp/mongodb-27017.


Cause Analysis:

Check /tmp/mongodb-27017.sock and find that the owner is root.

owner of .sock


Delete the /tmp/mongodb-27017.sock file and restart the mongod process. Check the /tmp/mongodb-27017.sock permissions again and change the ownership to the "mongodb" user.

change the owner

Also started successfully



  1. Check more logs, mongodb.log
  2. mongodb error columns such as 1, 100 are mostly incorrect data path and log path specified in the configuration file, the data path needs to be created in advance, it is a directory, the log path also needs to be created in advance, it is a file.

configure file

created at:02-05-2022
edited at: 02-05-2022: