Get RedisConnectionFailureException

I get the following error when I try to save something in Redis db from a java spring project.

Nested in org.springframework.data.redis.RedisConnectionFailureException: unable to get Jedis connection; The nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Failed to get resource from pool

Has anyone encountered the same error? Any solutions available?

Thanks in advance.

+4
source share
3 answers

The redis server is down correctly. just restart the redis server.

+1
source

It seems that jedis is not connecting to localhost, try connecting to a real IP. I had the same problem and I found that although redis-cli connects to localhost and 127.0.0.1, Jedis can only connect to a real IP.

0
source

I had the same problem as because of the windows firewall. Try disabling it or adding an inbound rule.

0
source

Source: https://habr.com/ru/post/1489115/


All Articles