sudo service mongodb status in terminal :

mongodb.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: 
   Active: failed (Result: exit-code) since جمعه 2017-08-25 14:47:16 IRDT; 6s ag
  Process: 17268 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (co
 Main PID: 17268 (code=exited, status=100)

mongod not start and show code :

mongod --help for help and startup options
2017-08-25T14:50:31.406+0430 [initandlisten] MongoDB starting : pid=17322 port=27017 dbpath=/data/db 64-bit host=mahdi-RC512
2017-08-25T14:50:31.406+0430 [initandlisten] db version v2.6.10
2017-08-25T14:50:31.406+0430 [initandlisten] git version: nogitversion
2017-08-25T14:50:31.406+0430 [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2017-08-25T14:50:31.406+0430 [initandlisten] build info: Linux lgw01-12 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 BOOST_LIB_VERSION=1_58
2017-08-25T14:50:31.406+0430 [initandlisten] allocator: tcmalloc
2017-08-25T14:50:31.406+0430 [initandlisten] options: {}
2017-08-25T14:50:31.448+0430 [initandlisten] journal dir=/data/db/journal
2017-08-25T14:50:31.448+0430 [initandlisten] recover : no journal files present, no recovery needed
2017-08-25T14:50:31.448+0430 [initandlisten] 
2017-08-25T14:50:31.448+0430 [initandlisten] ERROR: Insufficient free space for journal files
2017-08-25T14:50:31.448+0430 [initandlisten] Please make at least 3379MB available in /data/db/journal or use --smallfiles
2017-08-25T14:50:31.448+0430 [initandlisten] 
2017-08-25T14:50:31.448+0430 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
2017-08-25T14:50:31.448+0430 [initandlisten] dbexit: 
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: going to close listening sockets...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: going to flush diaglog...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: going to close sockets...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: waiting for fs preallocator...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: lock for final commit...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: final commit...
2017-08-25T14:50:31.448+0430 [initandlisten] shutdown: closing all files...
2017-08-25T14:50:31.448+0430 [initandlisten] closeAllFiles() finished
2017-08-25T14:50:31.448+0430 [initandlisten] journalCleanup...
2017-08-25T14:50:31.448+0430 [initandlisten] removeJournalFiles
2017-08-25T14:50:31.470+0430 [initandlisten] shutdown: removing fs lock...
2017-08-25T14:50:31.470+0430 [initandlisten] dbexit: really exiting now

The error states

journal dir=/data/db/journal
recover : no journal files present, no recovery needed
Insufficient free space for journal files.
Please make at least 3379MB available in /data/db/journal....

I assume that you don't have enough space on the disk, thus the daemon cannot create the necessary logs, so it stops. As the message states, you need 3379MB in /data/db/journal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.