/etc/init.d/mongod: line 58: ulimit: open files: cannot modify limit: Operation not permitted

Hi All,

I have installed MongoDB on Linux Centos, earlier it was working fine, but now when I am trying to start it. I am getting following error. does anyone know what this error is and how to fix it. I am pretty much sure that I am login as root user.
 

[/home/admin/mondodb_3.x]$ service mongod start
/etc/init.d/mongod: line 58: ulimit: open files: cannot modify limit: Operation not permitted
/etc/init.d/mongod: line 60: ulimit: max user processes: cannot modify limit: Operation not permitted
Starting mongod: runuser: using restricted shell /bin/false
runuser: cannot set groups: Operation not permitted

 
Thanks in advance !!

Posted by Andy on 2015-03-28 07:11:14.0


Hi Andy,

Although you are starting MongoDB with root user, but serverice will start MongoDB server with mondod user. actually at the time of MongoDB installation mongod user get created and service try to start MongoDB server with mongod user.

Now come to your problem. it means that there are few temporaty files which MondoDB server needed are already exist with other users name. these file names you can find in MongoDB log file.  or you can clean the temp folder and delete the MongoDB log file.  I am sure it will fix your problem.

Good Luck !!

Posted by Navdeep on 2015-05-17 17:10:39.0