java.io.IOException: couldn't connect to [ip-10-166-59-166/10.166.59.166:20000] bc:java.net.ConnectException: Connection refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Joseph Wang, 1 year ago
couldn't connect to [ip-10-166-59-166/10.166.59.166:20000] bc:java.net.ConnectException: Connection refused
via JIRA by Leif Mortenson, 1 year ago
couldn't connect to [io/192.168.0.10:27017] bc:java.net.ConnectException: Operation timed out
via JIRA by Leif Mortenson, 1 year ago
couldn't connect to [io/192.168.0.10:27017] bc:java.net.ConnectException: Operation timed out
via Stack Overflow by Jason
, 2 years ago
couldn't connect to [/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused: connect
via Stack Overflow by KumMas
, 2 years ago
couldn't connect to [/192.168.80.128:27017] bc:java.net.ConnectException: Connection refused: connect
via GitHub by knuthaug
, 1 year ago
couldn't connect to [nikopol.apress.local/32.10.8.124:27017] bc:java.net.ConnectException: Connection refused
java.io.IOException: couldn't connect to [ip-10-166-59-166/10.166.59.166:20000] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:205)
at com.mongodb.DBPort.go(DBPort.java:85)
at com.mongodb.DBPort.go(DBPort.java:66)
at com.mongodb.DBPort.call(DBPort.java:56)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:211)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:284)
at com.mongodb.DBCursor._check(DBCursor.java:297)
at com.mongodb.DBCursor._hasNext(DBCursor.java:420)
at com.mongodb.DBCursor.hasNext(DBCursor.java:445)
at com.mongodb.DBCursor.itcount(DBCursor.java:535)

Users with the same issue

11 times, 3 months ago
2172 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.