Error connecting to postgres using private url
Hey mates,
I searched for this issue in the threads and realised a couple of other people has also face this issue. But the solutions didn't help.
I have a golang backend connecting to a pg db using private url. Everything was working fine till today I started seeing this error:
dial tcp: lookup postgres.railway.internal on 8.8.8.8:53: no such host
I tried the workaround by adding ENABLE_ALPINE_PRIVATE_NETWORKING=true
but it didn't solve the issue. I will get another error when I add this variable: lookup postgres.railway.internal on [fd12::10]:53: dial udp [fd12::10]:53: connect: cannot assign requested address
Postgres public URL works fine.
Would be grateful if you would help with this issue.
Project ID: 106a77b5-14f8-4c94-867b-653f2eca6df7
Solution:Jump to solution
please see this docs section - https://docs.railway.app/guides/private-networking#initialization-time
6 Replies
Project ID:
106a77b5-14f8-4c94-867b-653f2eca6df7
Solution
please see this docs section - https://docs.railway.app/guides/private-networking#initialization-time
thank you for quick reply @Brody , but why it happened suddenly, was working fine before π€
I dont know, the sleep has always been needed
thanks, this worked, although is not ideal π
use a health check and this wont pose any issues