Mongodb fails to start in Openshift 3
Issue
- Why mongodb fails to start and gives below error :
2016-03-09T08:52:51.774-0500 [initandlisten] MongoDB starting : pid=26 port=27017 dbpath=/var/lib/mongodb/data 64-bit host=embed-mongodb-1-nhpcb
2016-03-09T08:52:51.775-0500 [initandlisten] db version v2.6.9
2016-03-09T08:52:51.775-0500 [initandlisten] git version: nogitversion
2016-03-09T08:52:51.775-0500 [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2016-03-09T08:52:51.775-0500 [initandlisten] build info: Linux x86-036.build.eng.bos.redhat.com 2.6.32-504.16.2.el6.x86_64 #1 SMP Tue Mar 10 17:01:00 EDT 2015 x86_64 BOOST_LIB_VERSION=1_53
2016-03-09T08:52:51.775-0500 [initandlisten] allocator: tcmalloc
2016-03-09T08:52:51.775-0500 [initandlisten] options: { config: "/etc/mongod.conf", net: { http: { enabled: false }, port: 27017 }, processManagement: { pidFilePath: "/var/lib/mongodb/mongodb.pid" }, replication: { oplogSizeMB: 64 }, storage: { dbPath: "/var/lib/mongodb/data", preallocDataFiles: false, smallFiles: true }, systemLog: { quiet: true } }
2016-03-09T08:52:51.783-0500 [initandlisten] journal dir=/var/lib/mongodb/data/journal
2016-03-09T08:52:51.785-0500 [initandlisten] recover : no journal files present, no recovery needed
2016-03-09T08:52:51.788-0500 [initandlisten] info preallocateIsFaster couldn't run due to: couldn't open file /var/lib/mongodb/data/journal/tempLatencyTest for writing errno:1 Operation not permitted; returning false
2016-03-09T08:52:51.791-0500 [initandlisten] exception in initAndListen: 13516 couldn't open file /var/lib/mongodb/data/journal/j._0 for writing errno:1 Operation not permitted, terminating
2016-03-09T08:52:51.791-0500 [initandlisten] dbexit:
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: going to close listening sockets...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: going to flush diaglog...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: going to close sockets...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: waiting for fs preallocator...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: lock for final commit...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: final commit...
2016-03-09T08:52:51.791-0500 [initandlisten] shutdown: closing all files...
2016-03-09T08:52:51.791-0500 [initandlisten] closeAllFiles() finished
2016-03-09T08:52:51.791-0500 [initandlisten] journalCleanup...
2016-03-09T08:52:51.791-0500 [initandlisten] removeJournalFiles
2016-03-09T08:52:51.795-0500 [initandlisten] shutdown: removing fs lock...
2016-03-09T08:52:51.796-0500 [initandlisten] dbexit: really exiting now
=> Waiting for MongoDB service startup ...
=> Waiting for MongoDB service startup ...
Environment
- Openshift Enterprise
- 3.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
