I’m trying to connect to a fresh Redis database created using the fly launch command. I get the correct URL but I cannot connect to the database. Trying with both the actual deployed container and from my computer. Both yield no results.
Thanks for replying! I’ve also followed the instructions when using fly.io link to “Visit the Upstash dashboard”, that contains this snippet you just shared.
It didn’t worked either. I also can’t connect to it using a client like redis-cli.
Tried the snippet and it doesn’t work either… Really not sure why.
I’ve tried spinning up a new fresh redis database using Upstash directly and it works just fine. The thing that I noticed is that on Upstash I get SSL support (or at least the option to make it work) and it connect with no problems, local or deployed on fly.io
Are you connecting from within the same Fly organization as your Redis deployment? You wouldn’t be able to connect from your local machine because your database is only available from within the same Fly org.
yes. I’ve tried both scenarios, both yield the same results, sadly. I’ve also double checked if the machine and the database are in the same organization and it is. I’ve created both using fly launch on the same prompt btw.
For now I’m using a separate instance on Upstash. It would be good to use the managed one, since I could simply use the provided ENV var.
Were you able to resolve this? I am running into the same issue. I can’t connect from my computer. Both from my application and redis CLI so this looks like a networking issue from the redis instance. fly redis connect works