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 installed mongodb on a ubuntu EC2 instance. I also configured EBS volume for the EC2 instance.

I did:

sudo apt-get install mongodb
sudo service mongodb stop
{ configured dbPath and logPath to EBS }
sudo service mongodb start
sudo service mongodb status        // Here I get stop/waiting
ps auxww | grep mongodb            // I see mongod running
sudo service mongodb stop          // I get "unknown:instance
ps auxww | grep mongo              // process still running
mongo                              // I can connect to mongodb

Why do I get inconsistent messages for status and stop?

I checked logs and I see no errors. I see warning about READ-AHEAD but that I think is un-related

* SERVER RESTARTED *

Fri Jul 26 07:44:20.741 [initandlisten] MongoDB starting : pid=9938 port=27017 dbpath=/mongodb/data 64-bit
Fri Jul 26 07:44:20.741 [initandlisten] db version v2.4.5
Fri Jul 26 07:44:20.741 [initandlisten] options: { config: "/etc/mongodb.conf", dbpath: "/mongodb/data", fork: "true", logappend: "true", logpath: "/mongodb/log/mongodb.log" }
Fri Jul 26 07:44:20.741 [initandlisten] 
Fri Jul 26 07:44:20.741 [initandlisten] ** WARNING: Readahead for /mongodb/data is set to 512KB
Fri Jul 26 07:44:20.741 [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less
Fri Jul 26 07:44:20.741 [initandlisten] **          http://dochub.mongodb.org/core/readahead
Fri Jul 26 07:44:20.759 [initandlisten] journal dir=/mongodb/data/journal
Fri Jul 26 07:44:20.759 [initandlisten] recover : no journal files present, no recovery needed
Fri Jul 26 07:44:20.778 [initandlisten] waiting for connections on port 27017
Fri Jul 26 07:44:20.778 [websvr] admin web console waiting for connections on port 28017
Fri Jul 26 07:45:30.022 [initandlisten] connection accepted from 127.0.0.1:46438 #1 (1 connection now open)
Fri Jul 26 07:46:11.467 [conn1] end connection 127.0.0.1:46438 (0 connections now open)
Fri Jul 26 07:53:43.362 [initandlisten] connection accepted from 127.0.0.1:46439 #2 (1 connection now open)
Fri Jul 26 07:53:44.971 [conn2] end connection 127.0.0.1:46439 (0 connections now open)
share|improve this question
    
Do you have mongodb in /etc/init.d and do you see mongodb in the output of service --status-all? –  attish Sep 13 '13 at 9:48

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.