mongodb startup ERROR ERROR: child process failed, exited with ERROR number 1
is usually a problem of permissions, or there is no corresponding path
check step: add a parameter after startup to export the log to a writable directory :
./mongod –fork –logpath=/tmp/mongod.log
then check the problem as follows :
2017-02-22 T01:33:34. 229 + 0800 I CONTROL [main] ERROR: always write a pid file to/var/run/mongo/mongod. Pid: No to the file or directory
p>
means there is no such directory (/var/run/mongodb/)
and I’m just going to create a new mkdir -p /var/run/mongodb/
starts normally again as follows:
root@sz:~/soft/mongodb342/bin#./mongod -f /etc/mongodb/mongod. Conf
about to fork child process, waiting until server is ready for connections.
forked process: 7482
child process started successfully, parent exiting
Read More:
- Mongodb failed to start: child process failed, exited with error number 100
- Error: child process failed, exited with error number 1
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- Mongodb — startup exception, error report ERROR:NUMBER 100
- systemctl start docker Job for docker.service failed because the control process exited with error
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)
- The mongoDB service failed to start (exception: connect failed)
- Git bash here running error: failed to fork child process
- NPM compilation failed: can’t resolve ‘child_ process’
- socket.error : [errno 10048] and view PID process number and port number
- Net start mongodb failed to start: system error 5 has occurred. Access is denied
- Job for network.service Failed because the control process exited with error code. See “SystemC
- Solve the error in Ubuntu 18.04: called “net usershare info” but it failed: failed to execute child process “net”
- A child container failed during start
- A child container failed during start Tomcat error prompt
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- Splash fcgi: child exited with: 127 possible causes
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- Deploy mongodb fragment combined with replica set to realize distributed storage of MySQL database files (step 10)