Redis Connection Issues

Cannot seem to get connected to my Upstash Redis instance no matter what I try. Is anyone else having troubles with this?

This is the error that my app which is also on is throwing when attempting to connect to redis.

"2022-12-30T21":"24":38.176 app[
      "message":"Reached the max retries per request limit (which is 20). Refer to \"maxRetriesPerRequest\" option for details.",
      "stack":"MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to \"maxRetriesPerRequest\" option for details.\n at Socket.<anonymous> (/app/node_modules/ioredis/built/redis/event_handler.js:175:37)\n at Object.onceWrapper (node:events:628:26)\n at Socket.emit (node:events:513:28)\n at Socket.emit (node:domain:489:12)\n at TCP.<anonymous> (node:net:301:12)"
   "msg":"connect to REDIS failed"

Additionally if I attempt to connect via shell using fly redis connect it finds the list of redis instances to select from but when I select either of my production or staging instances it won’t connect.

Any ideas?

I am having the same issue. I had an Upstash Redis instance that was working but then my app stopped being able to connect. Now I can’t connect to any Upstash Redis instances, even new ones I create.

I have created them in the same organization and region. I can resolve the IPv6 address but I’m not able to connect. I’m using the Python redis-py library which does support IPv6 (and was working before).

It seems there might be something wrong with the network connection between Fly and Upstash but I can’t diagnose it.

Hey @snopoke, we were seeing some issues with Upstash Redis in ord region yesterday. What region is your redis instance in?

It was in ‘ord’ but it’s still happening today. Is there anything I can do to ‘reset’ it? I could restart the app or create a new redis instance?

Update: I checked again now and it appears to be working.