Error: P1001: Can't reach database server at
postgres.railway.internal:5432
(During build)

arnorhs
PRO

2 months ago

This has been working flawlessly for the past year after I switched to private networking and V2 build thing..

The private connection to the db is still working in the deployed service but I don't seem to be able to connect to it during the build process.

I run DB migrations during the build.

Both services are running on a metal instance in the same region

Project ID: 58cd7410-04d6-4c6e-a74d-fa7c78455231

Solved

0 Replies

arnorhs
PRO

2 months ago

Error: P1001: Can't reach database server at postgres.railway.internal:5432 (During build)


2 months ago

hello,

we have disabled the v2 builder, going forward you will need to do migrations during pre-deploy instead -


arnorhs
PRO

2 months ago

I see.. can I define it in the Dockerfile, or do I have to use the UI?


2 months ago

you can use the UI or a railway.json file


arnorhs
PRO

2 months ago

do messages from the pre-deploy command show up in deploy logs or in build logs?


arnorhs
PRO

2 months ago

i see them in the deploy logs.. looks like that worked, thanks


2 months ago

no problem!


2 months ago

!s


Status changed to Solved brody 2 months ago