MongoDB Error: exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: “/sys/devices/system/node/node1”

I found this error while installed
yum install mongo-10gen-2.2.3 mongo-10gen-server-2.2.3
in CentOS 6.4 64bit


Wed Oct 16 16:19:08 [initandlisten] MongoDB starting : pid=22457 port=27017 dbpath=/var/lib/mongo 64-bit host=xxxxxxx.net
Wed Oct 16 16:19:08 [initandlisten] exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: "/sys/devices/system/node/node1", terminating
Wed Oct 16 16:19:08 dbexit:
Wed Oct 16 16:19:08 [initandlisten] shutdown: going to close listening sockets...
Wed Oct 16 16:19:08 [initandlisten] shutdown: going to flush diaglog...
Wed Oct 16 16:19:08 [initandlisten] shutdown: going to close sockets...
Wed Oct 16 16:19:08 [initandlisten] shutdown: waiting for fs preallocator...
Wed Oct 16 16:19:08 [initandlisten] shutdown: lock for final commit...
Wed Oct 16 16:19:08 [initandlisten] shutdown: final commit...
Wed Oct 16 16:19:08 [initandlisten] shutdown: closing all files...
Wed Oct 16 16:19:08 [initandlisten] closeAllFiles() finished
Wed Oct 16 16:19:08 dbexit: really exiting now

To solve this problem temporally I make mongod have READ access to /sys/devices/system/node/node1
chmod 755 /sys/devices/system/node
This solved my problem.


[root@ns4007603 ~]# chmod 755 /sys/devices/system/node
[root@ns4007603 ~]# service mongod restart
Stopping mongod: [FAILED]
Starting mongod: forked process: 23540
all output going to: /var/log/mongo/mongod.log
child process started successfully, parent exiting
[ OK ]
[root@ns4007603 ~]# ls -la /sys/devices/system/node

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.