[SERVER-17339] mongod.conf - YAML conversion question.... Created: 20/Feb/15  Updated: 02/Mar/15  Resolved: 02/Mar/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Aaron Clements Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

We were on 2.4.9 in a non-sharded 3-node cluster.I upgraded it to 2.6.7 by simply replacing the needfuls in /usr/bin.Everything worked fine, but it flagged me for --rest.So I tried flipping to YAML, but I had to flip back.

Here is our working configuration file:

logpath=/var/log/mongo/mongod.log
logappend=true
fork = true
dbpath=/data/db/mongo
replSet=Mongo-Radioedit-qa1-cloud
port=37017
rest=true
journal=true
pidfilepath=/var/run/mongod/mongod.pid
oplogSize=23552

Here is what I converted it to:

storage: 
dbPath: "/data/db/mongo" 
directoryPerDB: true
journal: 
enabled: true
systemLog: 
destination: file
path: "/var/log/mongo/mongod.log"
logAppend: true
timeStampFormat: iso8601-utc
processManagement: 
fork: true 
pidFilePath: "/var/run/mongod/mongod.pid"
net: 
bindIp: 127.0.0.1
port: 37017
http:
enabled: true
RESTInterfaceEnabled: true 
 #wireObjectCheck : false
 #unixDomainSocket: 
 #enabled : true
replication: 
oplogSizeMB: 23552 
replSetName: "Mongo-Radioedit-qa1-cloud" 

When I start up, the repl set is gone and the databases don't show up. I think the problem is that net:bindIP is where I was expecting to place the domain name of the server, but I can only use 127.0.0.1?

Anyway, when I put the old config file back in place, it works fine.



 Comments   
Comment by Ramon Fernandez Marina [ 02/Mar/15 ]

c.aaron.clements, the issue is indeed setting bindIP to 127.0.0.1, as that will prevent the members of your replica set from talking to each other. Please see the documentation for bindIp.

Also, 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.

Regards,
Ramón.

Comment by Aaron Clements [ 20/Feb/15 ]

My actual question was how we use an FQDN in the 2.6 config format?

Generated at Thu Feb 08 03:44:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.