6 months ago
I'm trying to deploy a phoenix application and connect it to my postgresql instance via the private network. I keep getting this error:Postgrex.Protocol (#PID<0.287.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (postgres.railway.internal:5432): non-existing domain - :nxdomain
things i've tried/checked so far:
I followed the guide on how to deploy a Phoenix app in railway. I added all the env vars described in the article, including
ECTO_IPV6with true as valueMade sure private internal network is enabled for my postgres instance.
I tried deploying a Phoenix app from Railway's template on a separate project and that worked. I compared that one with mine to see where was the difference in setup. I found no difference between mine and the project i deployed using the template. Still can't connect to postgres on my project, though.
Is there anything else I'm not checking? My service is also a folder from a monorepo but I have my root directory correctly set up. Plus, I wouldn't get the DB connection error if that had anything to do with the issue.
Appreciate any help!
1 Replies
6 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!