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
[root@server ]# 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] [root@server ]#
Log file details:
[root@server ]# tailf /var/log/mongo/mongod.log "ERROR: Insufficient free space for journal files"
Step 1: At first, you need to run the follwing command before editing the configuration file(/etc/mongod.conf).
[root@server ]# 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:
[root@server ]# service mongod restart