-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.2
-
Component/s: Shell
-
Labels:None
-
Environment:Oracle Linux 64-bit
Hi,
I have a Replica Set running on three Linux machines ssvm41, ssvm42, and ssvm43
The connection without specifying the default port from a remote machine another one that listed above aka “Client” over network fails
UNIX> mongo ssvm41
MongoDB shell version: 2.2.2
connecting to: ssvm41
Fri Dec 7 12:47:50 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91
exception: connect failed
If I run the same on a member machine ssvm42 it works
UNIX> mongo ssvm41
MongoDB shell version: 2.2.2
connecting to: ssvm41
aba:SECONDARY>
!!! Remember it says SECONDARY !!!
Specifying the default port makes it working from “Client”
UNIX> mongo ssvm41:27017
MongoDB shell version: 2.2.2
connecting to: ssvm41:27017/test
aba:PRIMARY>
it says now connected to PRIMARY now.
Would you please explain this behavior.
Thanks,
Edouard