ERROR: listen(): bind() failed errno:10049 The requested address is not valid in its context. for socket: 192.241.xxx.xx:27017

359 views
Skip to first unread message

Yaroslav Kyrpych

unread,
Dec 28, 2014, 9:18:26 PM12/28/14
to mongod...@googlegroups.com
Hello,

I was starting mongod.exe on local machine that is supposed to be member of replica set that also includes remote server located at 192.241.xxx.xx. I am getting the error message in the title of e-mail. Please see below log file. Any suggestions on how to troubleshoot this?

Additional detail: I edited /etc/hosts file on Windows machine to include both my local machine IP and the server IP.

Thanks in advance,

Yaroslav


2014-12-28T20:07:20.186-0600 ***** SERVER RESTARTED *****
2014-12-28T20:07:20.236-0600 [initandlisten] MongoDB starting : pid=5436 port=27017 dbpath=C:\RCI_data 64-bit host=aaaa
2014-12-28T20:07:20.236-0600 [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2014-12-28T20:07:20.236-0600 [initandlisten] db version v2.6.4
2014-12-28T20:07:20.236-0600 [initandlisten] allocator: system
2014-12-28T20:07:20.236-0600 [initandlisten] options: { config: "C:\RCI_data\mongodb.conf", net: { bindIp: "192.241.xxx.xx", port: 27017 }, replication: { replSet: "rs1" }, storage: { dbPath: "C:\RCI_data", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "C:\RCI_data\log\mongodb.log" } }
2014-12-28T20:07:20.406-0600 [initandlisten] journal dir=C:\RCI_data\journal
2014-12-28T20:07:20.406-0600 [initandlisten] recover : no journal files present, no recovery needed
2014-12-28T20:07:20.446-0600 [initandlisten] ERROR: listen(): bind() failed errno:10049 The requested address is not valid in its context. for socket: 192.241.xxx.xx:27017
2014-12-28T20:07:20.456-0600 [initandlisten] now exiting
2014-12-28T20:07:20.456-0600 [initandlisten] dbexit:
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: going to close listening sockets...
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: going to flush diaglog...
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: going to close sockets...
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: waiting for fs preallocator...
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: lock for final commit...
2014-12-28T20:07:20.456-0600 [initandlisten] shutdown: final commit...
2014-12-28T20:07:20.686-0600 [initandlisten] shutdown: closing all files...
2014-12-28T20:07:20.686-0600 [initandlisten] closeAllFiles() finished
2014-12-28T20:07:20.686-0600 [initandlisten] journalCleanup...
2014-12-28T20:07:20.686-0600 [initandlisten] removeJournalFiles
2014-12-28T20:07:20.686-0600 [initandlisten] shutdown: removing fs lock...
2014-12-28T20:07:20.686-0600 [initandlisten] dbexit: really exiting now

Yaroslav Kyrpych

unread,
Dec 28, 2014, 9:21:49 PM12/28/14
to mongod...@googlegroups.com
I also tried to start mongod file on the server - there I get the following error message:
"about to fork child process, waiting until server is ready for connections.
forked process: 31364
ERROR: child process failed, exited with error number 1"

I don't know why but log file is empty on server.
Reply all
Reply to author
Forward
0 new messages