Mongodb wont start ERROR: child process failed, exited with error number 100

Here is a fix for the error “Insufficient free space for journal files”. Before discussing about the error, I will give you a short information about Mongodb. Actually, Mongodb is a free and opensource software, also it’s a cross platform document-oriented database. A document-oriented database is a computer program designed for storing, retrieving, and managing document-oriented information, also known as semi-structured data.

Here I got this error after successfully completing the installation process of MongoDB on my VPS. This document will be a helpful one, if you are also in the middle of this error. 🙂

After complete the installation successfully, the ‘Mongodb’ shows some error with its restart. The error details are pasted below:

Starting mongod: about to fork child process, waiting until server is ready for connections.
ERROR: child process failed, exited with error number 100

Example:

[[email protected] ]# service mongod restart
Stopping mongod: [FAILED]
Starting mongod: about to fork child process, waiting until server is ready for connections.
forked process: 15602
all output going to: /var/log/mongo/mongod.log
ERROR: child process failed, exited with error number 100
[FAILED]
[[email protected] ]#

Log file details:

[[email protected] ]# tailf /var/log/mongo/mongod.log
"ERROR: Insufficient free space for journal files"

Solution:
Step 1: At first, you need to run the follwing command before editing the configuration file(/etc/mongod.conf).

[[email protected] ]# mongod --smallfiles

Step 2: Change/Add/uncomment the value for the directive ‘nojournal’ in the configuration file(/etc/mongod.conf) to true

vi /etc/mongod.conf
-----
nojournal = true
-----

Step 3: Save and restart the service:

[[email protected] ]# service mongod restart

That’s all.

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

9 Responses

  1. Anil Kumar says:

    Thanks

    • admin says:

      Thanks for your feedback. 🙂

      • senthilkumaran says:

        Hi Arun Lal,

        We have faced the problem like(Starting mongod: about to fork child process, waiting until server is ready for connections.
        forked process),so we are followed the step 1 and step 2 like that ,but did not working this command ,so please help me ?

        Thanks
        senthilkumaran

        • Arun Lal says:

          Please do check the log file for Mongodb. Is the error same as before?

          • senthilkumaran says:

            Hi,

            We are facing error follwoing this,

            Mon Aug 18 10:36:46.976 [initandlisten] MongoDB starting : pid=3547 port=27017 dbpath=/var/lib/mongo 32-bit host=srv01.nayasoft.local
            Mon Aug 18 10:36:46.976 [initandlisten]
            Mon Aug 18 10:36:46.976 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
            Mon Aug 18 10:36:46.976 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with –journal).
            Mon Aug 18 10:36:46.976 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.
            Mon Aug 18 10:36:46.976 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
            Mon Aug 18 10:36:46.976 [initandlisten]
            Mon Aug 18 10:36:46.976 [initandlisten] db version v2.4.9
            Mon Aug 18 10:36:46.976 [initandlisten] git version: 52fe0d21959e32a5bdbecdc62057db386e4e029c
            Mon Aug 18 10:36:46.976 [initandlisten] build info: Linux bs-linux32.10gen.cc 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 BOOST_LIB_VERSION=1_49
            Mon Aug 18 10:36:46.976 [initandlisten] allocator: system
            Mon Aug 18 10:36:46.976 [initandlisten] options: { config: “/etc/mongod.conf”, dbpath: “/var/lib/mongo”, fork: “true”, logappend: “true”, logpath: “/var/log/mongo/mongod.log”, nojournal: “true”, pidfilepath: “/var/run/mongodb/mongod.pid” }

            thanks
            senthilkumaran

  2. Dimple says:

    Works perfect now. Thank you so much.

  3. suvarna addanki says:

    hello sir,
    we are facing the errors on setting the replica set to the local server

    rsconf
    {
    “_id” : “rs0”,
    “members” : [
    {
    “_id” : 0,
    “host” : “system10:27017”
    }
    ]
    }
    > rs.initiate(rsconf)
    { “ok” : 0, “errmsg” : “server is not running with –replSet” }
    >

  1. January 5, 2014

    […] [Solved]1045 Cannot log in to the MySQL server : PhpMyAdmin error Mongodb wont start ERROR: child process failed, exited with error number 100 […]

Leave a Reply

Your email address will not be published. Required fields are marked *