Take the 2-minute tour ×
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. It's 100% free, no registration required.

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/mongod.pid
rest = true
maxConns = 12000
oplogSize = 10000
directoryperdb = true
keyFile = /etc/mongod.key
master = true
smallfiles = true

Note

 service mongod status
 mongod dead but subsys locked

Any suggestion will be helpful.

share|improve this question
1  
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 at 13:32
1  
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 at 3:28
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.