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

,
Expert tip

spring-data-redis requires redis 2.6+ to work properly.

,
Expert tip

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

Solutions on the web

via Stack Overflow by Paul Verest
, 1 year ago
java.net.ConnectException: Connection refused: connect
via GitHub by zongwu233
, 1 year ago
java.net.ConnectException: Connection refused
via Stack Overflow by AK-DSPL
, 2 years ago
via GitHub by fabiangebert
, 2 years ago
java.net.SocketTimeoutException: connect timed out
via GitHub by str3tch
, 1 year ago
java.net.ConnectException: Connection refused
via Google Groups by Zhenzhong Pan, 1 year ago
java.net. ConnectException: Connection refused [0m
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:345)
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 redis.clients.jedis.Connection.connect(Connection.java:158)
at redis.clients.jedis.Connection.connect(Connection.java:164)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:80)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1677)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)

Users with the same issue

909 times, 15 hours ago
Once, 2 days ago
Once, 6 days ago
39 times, 6 days ago
14 times, 1 week ago

Write tip

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