Connectivity error

273 views
Skip to first unread message

Pablo Molnar

unread,
Aug 7, 2013, 9:40:56 PM8/7/13
to mongod...@googlegroups.com
Hi,

My linux boxes connects fine to my mongodb server (2.4.1 linux 64 bits replicaset of only one member), but the windows server is having trouble:

C:\>c:/mongodb-win32-x86_64-2008plus-2.4.5/bin/mongo 10.10.10.131 --verbose
MongoDB shell version: 2.4.5
Wed Aug 07 18:30:27.390 versionArrayTest passed
connecting to: 10.10.10.131/test
Wed Aug 07 18:30:27.437 creating new connection to:10.10.10.131:27017
Wed Aug 07 18:30:27.437 BackgroundJob starting: ConnectBG
Wed Aug 07 18:30:27.452 connected connection!
Wed Aug 07 18:30:27.764 Socket recv() errno:10054 An existing connection was forcibly closed by the remote host. 10.10.10.131:27017
Wed Aug 07 18:30:27.764 SocketException: remote: 10.10.10.131:27017 error: 9001 socket exception [1] server [10.10.10.131:27017]
Wed Aug 07 18:30:27.764 DBClientCursor::init call() failed
Wed Aug 07 18:30:27.764 User Assertion: 10276:DBClientBase::findN: transport error: 10.10.10.131:27017 ns: admin.$cmd query: { whatsmyuri: 1 }
Wed Aug 07 18:30:27.764 JavaScript execution failed: Error: DBClientBase::findN: transport error: 10.10.10.131:27017 ns: admin.$cmd query: { whatsmyuri: 1 } at src/mongo/shell/mongo.js:L114
Wed Aug 07 18:30:27.764 User Assertion: 12513:connect failed
Wed Aug 07 18:30:27.764 freeing 1 uncollected class mongo::DBClientWithCommands objects
exception: connect failed


The java app on the same windows server also refuse to connect:

...
WARNING: Exception executing isMaster command on trunk.mongodb1.mashon.internal/10.10.10.131:27017
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    at org.bson.io.Bits.readFully(Bits.java:46)
    at org.bson.io.Bits.readFully(Bits.java:33)
    at org.bson.io.Bits.readFully(Bits.java:28)
    at com.mongodb.Response.<init>(Response.java:40)

...

Telnet the host and ports works fine.

Any thoughts?

Asya Kamsky

unread,
Aug 8, 2013, 5:46:19 AM8/8/13
to mongodb-user
My thought is that this is some Windows firewall working - maybe check
and see if there are exceptions there allowing telnet but not other
processes?
> --
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
>
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mongodb-user...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages