mongodb 2.6 Windows 7 64 bit -- Unable to start the mongodb replication set

775 views
Skip to first unread message

Shibu Raj

unread,
Apr 16, 2014, 6:37:37 PM4/16/14
to mongod...@googlegroups.com
I am very new to mongo, so if this is something very basic please excuse me.

I am trying to start a new mongodb instance using the 6.6 version 64 bit bild.

I am using the following option mongod.exe --config mongod.cfg

These are the contents of the configuration file

systemLog:
destination:file
systemLog:
path:"E:\\mongodb\\rs0-0\\logs\\mongodb.log"
quiet:true
net:
bindIp:127.0.0.1
port:27017
replication:
oplogSizeMB:128
replSetName:rs0
storage:
dbpath:"E:\\mongodb\\rs0-0\\db\\"
smallFiles:true

I am getting the following error


E:\mongodb\rs0-0>E:\mongodb\mongodb-2.6.0\bin\mongod.exe --config mongod.cfg
Error parsing YAML config file: yaml-cpp: error at line 3, column 10: illegal ma
p value
try 'E:\mongodb\mongodb-2.6.0\bin\mongod.exe --help' for more information


Any one came across this error. Any clues as to what to change

Thanks
Shibu

David Hows

unread,
Apr 16, 2014, 9:42:56 PM4/16/14
to mongod...@googlegroups.com
Hi Shibu,

From my quick testing it appears that the problem is because you have two "systemLog" entries. The first on line #1 is okay, but the error is because of the extra systemLog entry on line #3 as noted in the output.

Regards,
David

Reply all
Reply to author
Forward
0 new messages