com.mongodb.MongoSocketOpenException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check for proxy misconfigurations and AWS issues.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • MongoDB not responding to Java Client
    via Stack Overflow by Muhammad Junaid
    ,
  • Socket timeout Mongodb java heroku mlab
    via Stack Overflow by Vegard
    ,
  • can't acces mongo from inside docker
    via Stack Overflow by Paul
    ,
    • com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.connection.SocketStream.open(SocketStream.java:63) at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114) at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:127) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50) at com.mongodb.connection.SocketStream.open(SocketStream.java:58) ... 3 more

    Users with the same issue

    andyglick
    19 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    pulse00
    1 times, last one,
    r1chjames
    1 times, last one,
    102 more bugmates