redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: connect

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

Samebug tips

,

Make sure your server started correctly and is listening correctly on the correct port.

,
Expert tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Solutions on the web

via GitHub by SergioMendes93
, 5 months ago
java.net.ConnectException: Connection refused (Connection refused)
via GitHub by SergioMendes93
, 4 months ago
java.net.ConnectException: Connection refused (Connection refused)
via Stack Overflow by Burujia Bartoli
, 1 year ago
java.net.ConnectException: Connection refused
via Stack Overflow by Rhea
, 9 months ago
java.net.ConnectException: Connection timed out (Connection timed out)
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at redis.clients.jedis.Connection.connect(Connection.java:119)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:54)
at redis.clients.jedis.Connection.sendCommand(Connection.java:84)
at redis.clients.jedis.BinaryClient.ping(BinaryClient.java:67)
at undefined.rediscon.simplecon(rediscon.java:35)
at undefined.rediscon.main(rediscon.java:15)

Users with the same issue

935 times, 1 day ago
Once, 5 days ago
Once, 1 week ago
39 times, 1 week ago
14 times, 1 week ago

Write tip

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