java.io.IOException

couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web11840

  • via JIRA by rengith manickam, 11 months ago
    couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out
  • via JIRA by rengith manickam, 1 year ago
    couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out
  • couldn't connect to [/xxx.xxx.xx.xxx:27017] bc:java.net.SocketTimeoutException: connect timed out
  • Stack trace

    • java.io.IOException: couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out at com.mongodb.DBPort._open(DBPort.java:214) at com.mongodb.DBPort.go(DBPort.java:107) at com.mongodb.DBPort.go(DBPort.java:88) at com.mongodb.DBPort.findOne(DBPort.java:143) at com.mongodb.DBPort.runCommand(DBPort.java:148) at com.mongodb.DBTCPConnector.initDirectConnection(DBTCPConnector.java:548) at com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:372) at com.mongodb.Mongo.isMongosConnection(Mongo.java:627) at com.mongodb.DB.wrapCommand(DB.java:294) at com.mongodb.DB.command(DB.java:272) at com.mongodb.DB.command(DB.java:256) at com.mongodb.DB.command(DB.java:313) at com.mongodb.DB.command(DB.java:211) at com.mongodb.DB.command(DB.java:326)

    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

    11 times, 1 day ago
    688 times, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago