R
Railway5mo ago
tfive

Unable to connect to database

Intermittent connection errors, tried both private and public.
Datasource "db": PostgreSQL database "railway", schema "public" at "postgres-chcx.railway.internal:5432"

Error: P1001: Can't reach database server at `postgres-chcx.railway.internal`:`5432`

Please make sure your database server is running at `postgres-chcx.railway.internal`:`5432`.
Datasource "db": PostgreSQL database "railway", schema "public" at "postgres-chcx.railway.internal:5432"

Error: P1001: Can't reach database server at `postgres-chcx.railway.internal`:`5432`

Please make sure your database server is running at `postgres-chcx.railway.internal`:`5432`.
project id: 9f3342a4-de32-4423-89a7-34440a56ed23
Solution:
Could you try adding a 3 second sleep in your start command?
Jump to solution
7 Replies
Percy
Percy5mo ago
Project ID: 9f3342a4-de32-4423-89a7-34440a56ed23
Solution
Fragly
Fragly5mo ago
Could you try adding a 3 second sleep in your start command?
tfive
tfive5mo ago
will try sleep 5s && npm run start
Brody
Brody5mo ago
I don't think 5s is going to be valid syntax but eh
tfive
tfive5mo ago
seems to work now
Jose Ricardo
Jose Ricardo5mo ago
Hey @Brody I have a question regarding my DNS, because when I enter the DNS details from Railway onto GoDaddy it says Invalid Data
Brody
Brody5mo ago
not too sure what that has to do with this thread, please open your own