R
Railway11mo 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
Percy11mo ago
Project ID: 9f3342a4-de32-4423-89a7-34440a56ed23
Solution
Fragly
Fragly11mo ago
Could you try adding a 3 second sleep in your start command?
tfive
tfiveOP11mo ago
will try sleep 5s && npm run start
Brody
Brody11mo ago
I don't think 5s is going to be valid syntax but eh
tfive
tfiveOP11mo ago
seems to work now
Jose Ricardo
Jose Ricardo11mo 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
Brody11mo ago
not too sure what that has to do with this thread, please open your own
Want results from more Discord servers?
Add your server