[SERVER-20440] Mongod service not starting after updating config with yaml format Created: 16/Sep/15 Updated: 19/Dec/15 Resolved: 19/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Dharminder Singh | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
I am running mongod version 3.0 currently i am going to post my mongod.conf and the error i am getting. I am using the default mongod script that comes with the rpm with no changes being made. All the permissions are correct from what i see. Not getting a permissions error.
Error:
|
| Comments |
| Comment by Valery Khamenya [ 19/Dec/15 ] | ||||||||||||||||||||
|
while trying to hook up the mongodb2 data from mongodb3.2 I am getting similar problems with directoryPerDB:true on mongod start:
any ideas? | ||||||||||||||||||||
| Comment by Dharminder Singh [ 22/Sep/15 ] | ||||||||||||||||||||
|
figured it out it was my yaml config, here is the correct way to write a yaml config:
| ||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 19/Sep/15 ] | ||||||||||||||||||||
|
dsrakkar, there's is not sufficient information in this ticket to determine of there's a bug in the server. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources. Regards, | ||||||||||||||||||||
| Comment by Dharminder Singh [ 18/Sep/15 ] | ||||||||||||||||||||
|
Can someone help me with this? | ||||||||||||||||||||
| Comment by Dharminder Singh [ 16/Sep/15 ] | ||||||||||||||||||||
|
Another thing the service stopped working after i changed the conf file format to yaml. | ||||||||||||||||||||
| Comment by Dharminder Singh [ 16/Sep/15 ] | ||||||||||||||||||||
|
/var/log/mongo/mongod:
I have resolved the issue above with " directoryPerDB", but no new errors about" pam_unix(runuser:session): session closed for user mongod" | ||||||||||||||||||||
| Comment by Dharminder Singh [ 16/Sep/15 ] | ||||||||||||||||||||
|
Config File:
Permissions for the /var/run/mongodb
Error i am getting:
| ||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 16/Sep/15 ] | ||||||||||||||||||||
|
dsrakkar, can you please post the output of /var/log/mongodb/mongo.log? Also, what are the permissions of /var/run/mongodb? Note that this directory is used by the system, so even if the user that runs mongod can write there it probably shouldn't. |