INFORMATION
Relevant information to this issue:
- databases: Redis version 7
- Programming language and version: Ruby 3.1.2
ISSUE
We have preview deployments configured in qovery that were working without issue up until 10/12. Then any new deployments after that failed to connect to the redis database container in qovery. We have the alias setup for the internal redis database url and are receiving the following error.
__connect_nonblock': Address not available - connect(2) for [::1]:6379 (RedisClient::CannotConnectError)
Things we have tried to fix that did not work:
- making redis public and switching to the public url for the env.
- hard coding a connection
- redeploying the entire application
Describe step by step how to reproduce the issue
Try manually connect to the redis container
irb(main):003:0> redis.set("testkey", "hello world")
/usr/local/lib/ruby/3.1.0/socket.rb:61:in `connect_internal': Operation timed out - user specified timeout (Redis::CannotConnectError)
/usr/local/lib/ruby/3.1.0/socket.rb:61:in `connect_internal': Operation timed out - user specified timeout (RedisClient::CannotConnectError)
/usr/local/lib/ruby/3.1.0/socket.rb:61:in `connect_internal': Operation timed out - user specified timeout (RedisClient::CannotConnectError)
/usr/local/lib/ruby/3.1.0/socket.rb:61:in `connect_internal': Operation timed out - user specified timeout (Errno::ETIMEDOUT)
irb(main):004:0>