-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.0.4, 2.1.1
-
Component/s: None
-
Environment:Solaris 10
-
Solaris
When starting mongod with bind_ip, cannot connect mongo shell to it (shell version 2.0.4 - shell version 2.1.1 has separate issue on Solaris)
bash-3.2$ ./bin/mongo
MongoDB shell version: 2.0.4
connecting to: test
Fri May 18 12:26:58 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
When starting with bind_ip and replSet there is "could not connect to localhost error"
bash-3.2$ ./mongod --dbpath ./data/ --bind_ip 10.7.100.36 --replSet rsnew
db level locking enabled: 1
Fri May 18 12:21:51 [initandlisten] MongoDB starting : pid=1923 port=27017 dbpath=./data/ 64-bit host=replica5
Fri May 18 12:21:51 [initandlisten]
Fri May 18 12:21:51 [initandlisten] ** NOTE: This is a development version (2.1.1) of MongoDB.
Fri May 18 12:21:51 [initandlisten] ** Not recommended for production.
Fri May 18 12:21:51 [initandlisten]
Fri May 18 12:21:51 [initandlisten] ** NOTE: your operating system version does not support the method that MongoDB
Fri May 18 12:21:51 [initandlisten] ** uses to detect impending page faults.
Fri May 18 12:21:51 [initandlisten] ** This may result in slower performance for certain use cases
Fri May 18 12:21:51 [initandlisten]
Fri May 18 12:21:51 [initandlisten] db version v2.1.1, pdfile version 4.5
Fri May 18 12:21:51 [initandlisten] git version: 6c1c98b332a4ebe2604462ccbf9f1af475734460
Fri May 18 12:21:51 [initandlisten] build info: SunOS fhm8e4dc.joyent.us 5.11 snv_89 i86pc BOOST_LIB_VERSION=1_49
Fri May 18 12:21:51 [initandlisten] options:
Fri May 18 12:21:51 [initandlisten] journal dir=./data/journal
Fri May 18 12:21:51 [initandlisten] recover : no journal files present, no recovery needed
Fri May 18 12:21:52 [initandlisten] preallocateIsFaster=true 2.62
Fri May 18 12:21:53 [initandlisten] preallocateIsFaster=true 7.58
Fri May 18 12:21:54 [initandlisten] waiting for connections on port 27017
Fri May 18 12:21:54 [websvr] admin web console waiting for connections on port 28017
Fri May 18 12:21:54 [rsStart] trying to contact localhost:27017
Fri May 18 12:21:54 [rsStart] couldn't connect to localhost:27017: couldn't connect to server localhost:27017
Fri May 18 12:21:54 [rsStart] replSet can't get local.system.replset config from self or any seed (yet)
^CFri May 18 12:22:00 got signal 2 (Interrupt), will terminate after current cmd ends
Fri May 18 12:22:00 [interruptThread] now exiting
Fri May 18 12:22:00 dbexit:
Fri May 18 12:22:00 [interruptThread] shutdown: going to close listening sockets...
Fri May 18 12:22:00 [interruptThread] closing listening socket: 5
Fri May 18 12:22:00 [interruptThread] closing listening socket: 6
Fri May 18 12:22:00 [interruptThread] shutdown: going to flush diaglog...
Fri May 18 12:22:00 [interruptThread] shutdown: going to close sockets...
Fri May 18 12:22:00 [interruptThread] shutdown: waiting for fs preallocator...
Fri May 18 12:22:00 [interruptThread] shutdown: lock for final commit...
Fri May 18 12:22:00 [interruptThread] shutdown: final commit...
Fri May 18 12:22:00 [interruptThread] shutdown: closing all files...
Fri May 18 12:22:00 [interruptThread] closeAllFiles() finished
Fri May 18 12:22:00 [interruptThread] journalCleanup...
Fri May 18 12:22:00 [interruptThread] removeJournalFiles
Fri May 18 12:22:00 dbexit: really exiting now
bash-3.2$
Also same problem with connecting with mongo shell.
When bind_ip not used, shell can connect as normal.
- duplicates
-
SERVER-5230 HostAndPort::me() should use bind_ip
- Closed