...
mongo.conf is wrong. file has lines mixed up. [mongo.conf] # engine: # mmapv1: # wiredTiger: # how the process runs processManagement: fork: true # fork and run in background pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile # network interfaces net: port: 27017 bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces. #security: #operationProfiling:
elvinas_p commented on Fri, 11 Dec 2015 12:44:32 +0000: Hello, I have found next issue report only after I have already posted. As this should be easy fix, I suppose there should no issues with start/stop on 3.0.8 Thank you ramon.fernandez commented on Fri, 11 Dec 2015 12:33:51 +0000: elvinas_p, this issue was finally identified and fixed in SERVER-21209. It is part of MongoDB 3.0.8, to be released soon. A 3.0.8-rc0 release candidate is available for download, please give it a try and let us know if you run into any issues. Thanks, Ramón. elvinas_p commented on Fri, 11 Dec 2015 09:24:52 +0000: Mongo 3.0.7 start / stop console output sessions on CentOS 6.7 elvinas_p commented on Fri, 11 Dec 2015 09:23:22 +0000: Hello, I can confirm that problem exists on CentOS6.6. Problem is the following: New YAML configuration file contains values with comments ON THE SAME LINE, i.e. "pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile" Configuration parsing command for PID file reads whole line INCLUDING comment. I am not awk guru, but I do not see exclusion to skip anything after "#" symbol. >>PIDFILEPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]](processManagement\.)?pidfilepath[[:blank:]][:=][[:blank:]]*/ {print $2} ' "$CONFIGFILE" | tr -d "[:blank:]\"'"` This results in an incorrect PID file value, containing comment. + PIDFILEPATH=/var/run/mongodb/mongod.pid#locationofpidfile And subsequently process kill command does not work: + local pid_file=/var/run/mongodb/mongod.pid#locationofpidfile + local procname=/usr/bin/mongod + local -i delay=300 + local -i duration=10 ++ pidofproc -p /var/run/mongodb/mongod.pid#locationofpidfile /usr/bin/mongod ++ local RC pid pid_file= ++ '[' 3 = 0 ']' ++ '[' -p = -p ']' ++ pid_file=/var/run/mongodb/mongod.pid#locationofpidfile ++ shift 2 ++ fail_code=3 ++ __pids_var_run /usr/bin/mongod /var/run/mongodb/mongod.pid#locationofpidfile ++ local base=mongod ++ local pid_file=/var/run/mongodb/mongod.pid#locationofpidfile ++ pid= ++ '' -f /var/run/mongodb/mongod.pid#locationofpidfile '' ++ return 3 ++ RC=3 ++ '[' -n '' ']' ++ '' -n /var/run/mongodb/mongod.pid#locationofpidfile '' ++ return 3 + local pid= Attaching two console sessions. One default config file, having inline comments, second with comments on separate line. Inline comments prevents proper stop of mongod process. wan.bachtiar commented on Tue, 27 Oct 2015 00:38:09 +0000: Hi Diego, Thanks for the report. By following the installation steps listed in the MongoDB documentation , I can install MongoDB v3.0.7 through yum and start mongod as a service in CentOS-6.6. I would recommend you to check the log file in /var/log/mongodb/mongod.log for any specific error messages. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. If you have any follow-up questions on CentOS service mongod.conf, please post on the mongodb-user group. Regards, Wan. dcordova commented on Tue, 20 Oct 2015 15:11:22 +0000: Attaching the images of a mongod.conf file from 3.0.7 and from 3.0.6 dcordova commented on Tue, 20 Oct 2015 15:10:35 +0000: Ramon I installed mongo from yum. I added the repositor: [mongodb-org-3.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/ gpgcheck=0 enabled=1 I installed using: yum install mongodb-org -y Installing: mongodb-org x86_64 3.0.7-1.el6 mongodb-org-3.0 4.6 k Installing for dependencies: mongodb-org-mongos x86_64 3.0.7-1.el6 mongodb-org-3.0 3.9 M mongodb-org-server x86_64 3.0.7-1.el6 mongodb-org-3.0 8.3 M mongodb-org-shell x86_64 3.0.7-1.el6 mongodb-org-3.0 4.1 M mongodb-org-tools x86_64 3.0.7-1.el6 mongodb-org-3.0 32 M When I try to start the service I get FAILED If I copy mongod.conf from 3.0.6 and start the service it starts OK I tried in a few machines (4) and I have the same problem. I tested in CentOs 6.6 ramon.fernandez commented on Wed, 14 Oct 2015 22:16:47 +0000: dcordova, the file snippet contains an extraneous [mongo.conf] entry that doesn't belong there, and it doesn't match the full mongod.conf file that's uploaded in this ticket. I used that file to start up a mongod without problems. Can you please provide more details about the steps you're following to install and run mongod, and what exact error(s) you get? Thanks, Ramón.