Jedis pool was unable to create a new Redis connection since Redis is unavailable

java.net.ConnectException
Javadoc
Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port). @since JDK1.1
at java.net.DualStackPlainSocketImpl.waitForConnect
(Source)
at java.net.DualStackPlainSocketImpl.socketConnect
(Source)
at java.net.AbstractPlainSocketImpl.doConnect
(Source)
at java.net.AbstractPlainSocketImpl.connectToAddress
(Source)
at java.net.AbstractPlainSocketImpl.connect
(Source)
at java.net.PlainSocketImpl.connect
(Source)
at java.net.SocksSocketImpl.connect
(Source)
at java.net.Socket.connect
(Source)
at redis.clients.jedis.Connection.connect
(Source)
redis.clients.jedis.exceptions.JedisConnectionException
at redis.clients.jedis.Connection.connect
(Source)
at redis.clients.jedis.BinaryClient.connect
(Source)
at redis.clients.jedis.BinaryJedis.connect
(Source)
at redis.clients.jedis.JedisFactory.makeObject
(Source)
at org.apache.commons.pool2.impl.GenericObjectPool.create
(Source)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
(Source)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
(Source)
at redis.clients.util.Pool.getResource
(Source)
redis.clients.jedis.exceptions.JedisConnectionException
at redis.clients.util.Pool.getResource
(Source)
at redis.clients.jedis.JedisPool.getResource
(Source)
19 frames hidden

Typical Exception Messages

  1. Could not get a resource from the pool

Origin

Specific cases

We have seen this error pattern in the following webpages (17)

  1. ElMohMohvia GitHub3 weeks ago
    Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
  2. 17377314881via GitHub2 months ago
    Could not get a resource from the pool
  3. sakura-hlyvia GitHub3 months ago
    Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
  4. keai316via GitHub7 months ago
    Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
  5. WonMevia GitHub1 year ago
    Could not get a resource from the pool
  6. DegHuegvia Stack Overflow1 year ago
    No message found for this stack trace.
  7. xenoterracidevia GitHub1 year ago
    Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
  8. ravan34via GitHub1 year ago
    Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
  9. JarvisZhuvia GitHub1 year ago
    Could not get a resource from the pool