[SERVER-20926] mongod.conf file is wrong in 3.0.7 Created: 14/Oct/15 Updated: 11/Dec/15 Resolved: 27/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 3.0.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | diego cordova | Assignee: | Wan Bachtiar |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | Bug | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Centos 6.6 |
||
| Attachments: |
|
| Operating System: | Linux |
| Participants: |
| Description |
|
mongo.conf is wrong.
|
| Comments |
| Comment by Elvinas Piliponis [ 11/Dec/15 ] |
|
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 |
| Comment by Ramon Fernandez Marina [ 11/Dec/15 ] |
|
elvinas_p, this issue was finally identified and fixed in Thanks, |
| Comment by Elvinas Piliponis [ 11/Dec/15 ] |
|
Mongo 3.0.7 start / stop console output sessions on CentOS 6.7 |
| Comment by Elvinas Piliponis [ 11/Dec/15 ] |
|
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. ' "$CONFIGFILE" | tr -d "[:blank:]\"'"` This results in an incorrect PID file value, containing comment. And subsequently process kill command does not work: 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. |
| Comment by Wan Bachtiar [ 27/Oct/15 ] |
|
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. |
| Comment by diego cordova [ 20/Oct/15 ] |
|
Attaching the images of a mongod.conf file from 3.0.7 and from 3.0.6 |
| Comment by diego cordova [ 20/Oct/15 ] |
|
Ramon I installed using: yum install mongodb-org -y Installing: When I try to start the service I get FAILED |
| Comment by Ramon Fernandez Marina [ 14/Oct/15 ] |
|
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, |