com.mongodb.MongoSocketOpenException

Exception opening socket

Samebug tips9

Check if your MongoDB is available.

host port isnt set

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web88

  • via GitHub by shilpsl1
    , 6 months ago
    Exception opening socket
  • via JIRA by Attila Tőkés, 1 year ago
    Exception opening socket
  • via JIRA by Junwei Zhuge, 1 year ago
    Exception opening socket
  • Stack trace

    • com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.connection.SocketStream.open(SocketStream.java:63)[graylog.jar:?] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[graylog.jar:?] at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:116)[graylog.jar:?] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_101] Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[?:1.8.0_101] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[?:1.8.0_101] at java.net.Socket.connect(Socket.java:589)[?:1.8.0_101] at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)[graylog.jar:?] at com.mongodb.connection.SocketStream.open(SocketStream.java:58)[graylog.jar:?] ... 3 more

    Write tip

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

    Users with the same issue

    5 times, 7 months ago
    Unknown user
    Once, 1 year ago
    17 times, 1 week ago
    2 times, 1 week ago
    11 times, 2 weeks ago
    485 more bugmates