[Solved] ERROR: child process failed, exited with error number 100To see additional information in this …

The error below occurs when mongodb is started. Check the log file and find:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
exception in initAndListen std::exception: listen: Address already in use, terminating,
exception in initAndListen std::exception: listen: Address already in use, terminating,
exception in initAndListen std::exception: listen: Address already in use, terminating

 

Possible errors:

1. Your conf file is incorrectly written, format or code, etc

2. Bindip binds both the localhost and the internal and external addresses of the server

Solution: check and write the file format, and pay attention to yaml format. Then, bindip directly accesses 0.0.0.0, allowing all access. It should be OK.

If viewing the log is this error:

Failed to set up listener: SocketException: Address already in use

ps aux | grep mongod
sudo kill -9 {port-number}

Read More: