Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had tried to start the mongodb service using the following command in linux machine.

service mongod restart

I am getting the following error

Stopping mongod:                                           [FAILED]
Starting mongod: about to fork child process, waiting until server is ready for connections.
forked process: 1428
all output going to: /data/log/mongod.log
child process started successfully, parent exiting

I am having the config file as follows

dbpath = /data/db/
logpath = /data/log/mongod.log
logappend = true
fork = true
port = 27017
pidfilepath = /var/run/
rest = true
maxConns = 12000
oplogSize = 10000
directoryperdb = true
keyFile = /etc/mongod.key
master = true
smallfiles = true


 service mongod status
 mongod dead but subsys locked

Any suggestion will be helpful.

share|improve this question
I'm not familiar with MongoDB myself, but I'm pretty sure you're going to end up needing to post the contents of /data/log/mongod.log before anybody is going to be able to help you troubleshoot. – Avarkx Jan 20 '14 at 13:32
definitely going to need the contents of the logs to make an accurate diagnosis here - the common cases (permissions, disk issues, running as root previously etc.) have been covered several times, so best to check the logs and then see if your issue has already been answered – Adam C Jan 25 '14 at 3:28

$ rm -f /var/lock/subsys/mongod

$ rm -f /var/lib/mongodb/mongod.lock

share|improve this answer
Giving commands without comments is a dangerous thing to do. Please explain what the above commands do, even if it will be obvious to many readers. – KookieMonster Jan 28 '15 at 8:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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