Elixir app doesn't connect to db on internal network

adamfrejFREE

2 months ago

I have create a project for my elixir app. It uses ecto to connect to a db.

I have setup the DATABSE_URL to point to ${{Postgres.DATABASE_URL}} also I setup my connection to use ipv6: socket_options: [:inet6]

Yet I get:
12:24:55.758 [error] Postgrex.Protocol (#PID<0.292.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (postgres.railway.internal:5432): non-existing domain - :nxdomain

during ecto setup during deployment.

0 Replies

Elixir app doesn't connect to db on internal network - Railway Help Station