postgres.railway.internal:5432
7 months ago
I'm using Railway with SvelteKit to deploy an app, and I got this error during build time : Error: P1001: Can't reach database server at postgres.railway.internal:5432
Please make sure your database server is running at postgres.railway.internal:5432
The database is running successfully.
I've read on this thread : https://station.railway.com/questions/can-t-reach-database-server-at-postgres-153e5903 that the private network is not available during build time, but I can't run the database migration & generation in pre-deploy because the build command depend on it, Is there a solution?
3 Replies
7 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 P1001: Can't reach database server at
postgres.railway.internal:5432🧵 Error: P1001: Can't reach database server at
postgres.railway.internal:5432(During build)
If you find the answer from one of these, please let us know by solving the thread!
7 months ago
You have to use the DATABASE_URL of the deployed PG instance so that the correct internal URI could be used by your server/file!
Attachments
clashing
You have to use the DATABASE_URL of the deployed PG instance so that the correct internal URI could be used by your server/file!
6 months ago
lukkyz, any update?
If that hepled, do mark that reply as the solution