Hide Forgot
Description of problem: The mongodb-server package uses /var/lib/mongodb to store database files by default, but it does not actually create the directory, causing the service to crash on startup, while reporting success to the initscript. Version-Release number of selected component (if applicable): mongodb-server-1.6.4-1.el5 How reproducible: 100% Steps to Reproduce: 1. Install mongodb-server on an el5 system that does not have a /var/lib/mongodb directory. 2. service mongod start Actual results: Initscript reports [ OK ] but mongodb is not actually running. The following appears in /var/log/mongodb/mongodb.log: Fri May 6 21:06:23 exception in initAndListen std::exception: dbpath (/var/lib/mongodb) does not exist, terminating Expected results: /var/lib/mongodb is created at install time and chowned to the mongodb user, and mongodb starts properly. Ideally the initscript should report failure instead of okay, but the asynchronous nature of the daemon startup may make that impossible. Additional info: Works fine on F14.
Closing, as EPEL 5 currently has mongodb 2.2.0 which does install the required empty directory.