Mongodb recovery problems

Mongodb, running on the Ubuntu 12.04 kernel, decided to reset the kernel because it opened too many files (applause). After running mongod --repair as root http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/ which is referenced (but not indicated), now I found that mongo, apparently deleted his own file permissions - every time I try to start, I get

 Mon Apr 1 15:10:08 [initandlisten] options: { bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", dbpath: "/var/lib/mongodb", logappend: "true", logpath: "/var/log/mongodb/mongodb.log", nojournal: "true" } Mon Apr 1 15:10:09 [initandlisten] couldn't open /var/lib/mongod/cerebro_test_import_ayp_part2.ns errno:1 Operation not permitted Mon Apr 1 15:10:09 [initandlisten] error couldn't open file /var/lib/mongodb/cerebro_test_import_ayp_part2.ns terminating 

"Operation not allowed"? Indeed? Even after

 $ sudo chmod -R 777 /var/lib/mongodb 

? I’m a few millimeters from just blowing out this whole base and crossing it out with another reason when Mongo sucks. What can I do to return the mongo again, so I don’t need to do this? What have I not tried? What gives?

+6
source share
1 answer

Have you tried sudo chown -Rh mongodb:mongodb /var/lib/mongod* ?

This has all the hallmarks of a Linux permissions problem, chmod'ding 777 is always a bad idea.

+9
source

All Articles