devopsfun icon indicating copy to clipboard operation
devopsfun copied to clipboard

Weird error when Mongo starts up

Open philipbrown opened this issue 10 years ago • 3 comments

2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] MongoDB starting : pid=7462 port=27017 dbpath=/data/db 64-bit host=dhcp-892b9eed.ucd.ie
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] db version v3.2.4
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] git version: e2ee9ffcf9f5a94fad76802e28cc978718bb7a30
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] allocator: system
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] modules: none
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] build environment:
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten]     distarch: x86_64
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten]     target_arch: x86_64
2016-05-07T09:32:14.718+0100 I CONTROL  [initandlisten] options: {}
2016-05-07T09:32:14.719+0100 E NETWORK  [initandlisten] listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017
2016-05-07T09:32:14.719+0100 E NETWORK  [initandlisten]   addr already in use
2016-05-07T09:32:14.719+0100 E STORAGE  [initandlisten] Failed to set up sockets during startup.
2016-05-07T09:32:14.719+0100 I CONTROL  [initandlisten] dbexit:  rc: 48

I tried following this... http://stackoverflow.com/questions/14428123/mongodb-wont-start

But there wasn't another process.

Mongo did start through 😄

philipbrown avatar May 07 '16 08:05 philipbrown

Thanks for reporting this @philipbrown!

From the error log, looks like something is using port 27027: listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017. Do you already have a mongo instance running on this machine?

ritazh avatar May 07 '16 22:05 ritazh

I tried running the following command but it didn't show anything:

ps wuax | grep mongo

But Mongo did start though, so I'm not really sure what caused the error 😖

philipbrown avatar May 08 '16 11:05 philipbrown

i am getting same thing NETWORK [initandlisten] listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017

Awadhesh31 avatar Jan 05 '18 16:01 Awadhesh31