Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

RDO Installation problem on CentOS 7 because of MongoDB

Hi, I`m trying to install RDO on CentOS 7 laptop and the installation is failing because of MongoDB service
The installation fails on because the command /usr/bin/systemctl start mongod fails to execute.

This is the status of the mongod.service:

mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongod.service; disabled)
Active: failed (Result: timeout) since Fri 2014-11-21 16:29:05 BRT; 5min ago
Process: 29369 ExecStart=/usr/bin/mongod $OPTIONS run (code=exited, status=0/SUCCESS)Nov 21 16:27:35
localhost.localdomain mongod[29369]: about to fork child process, waiting until server is ready for connections.
Nov 21 16:27:35 localhost.localdomain mongod[29369]: forked process: 29371
Nov 21 16:27:36 localhost.localdomain mongod[29369]: child process started successfully, parent exiting
Nov 21 16:27:36 localhost.localdomain systemd[1]: PID file /var/run/mongodb/ not readable (yet?) after start.
Nov 21 16:29:05 localhost.localdomain systemd[1]: mongod.service operation timed out. Terminating.
Nov 21 16:29:05 localhost.localdomain systemd[1]: Failed to start High-performance, schema-free document-oriented database.
Nov 21 16:29:05 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.

This is the mongodb log:

2014-11-21T16:40:19.811-0300 [initandlisten]
2014-11-21T16:40:19.811-0300 [initandlisten] * WARNING: Readahead for /var/lib/mongodb is set to 4096KB
2014-11-21T16:40:19.811-0300 [initandlisten] *
We suggest setting it to 256KB (512 sectors) or less
2014-11-21T16:40:19.811-0300 [initandlisten] **
2014-11-21T16:40:19.845-0300 [initandlisten] journal dir=/var/lib/mongodb/journal
2014-11-21T16:40:19.845-0300 [initandlisten] recover : no journal files present, no recovery needed
2014-11-21T16:40:19.910-0300 [initandlisten] waiting for connections on port 27017
2014-11-21T16:41:49.728-0300 [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2014-11-21T16:41:49.728-0300 [signalProcessingThread] now exiting

look likes its because the PID file is not readable after a time the service startup times out
but MongoDB actually starts as can be saw in the highlighted line of mongodb.log
Its not a problem of MongoDB with CentOS 7 because outside of the installation process it`s works fine.
Anyone can help?