Deploy failed and it's weird

Hi, for some reason I am getting this when deploying:
#13 1.852 django.db.utils.OperationalError: connection to server at "containers-us-west-65.railway.app" (x.x.x.x), port 7892 failed: Connection refused
#13 1.852 Is the server running on that host and accepting TCP/IP connections?
#13 1.852 django.db.utils.OperationalError: connection to server at "containers-us-west-65.railway.app" (x.x.x.x), port 7892 failed: Connection refused
#13 1.852 Is the server running on that host and accepting TCP/IP connections?
Why is it refusing connection to that host?
35 Replies
Percy
Percy2y ago
Project ID: 9a8cdddf-87aa-4caf-848a-69fb07710946
Niccolò
Niccolò2y ago
9a8cdddf-87aa-4caf-848a-69fb07710946
jackson
jackson2y ago
double check the port and hostname, should also make sure that the database is running
Niccolò
Niccolò2y ago
Where should that be checked? The deploy I am triggering does not include any of such changes.
jackson
jackson2y ago
in the database itself, your app is likely fine if you've checked that the environment variables in the deployment are correct
Niccolò
Niccolò2y ago
This kind of concerns me. I haven't touched those variables at all since the last deploy. Does it mean such a problem is bound to occur suddenly in the future?
jackson
jackson2y ago
unsure, i don't work here so i cannot say much about the uptime
Niccolò
Niccolò2y ago
What's it got to do with the uptime?
jackson
jackson2y ago
well i think the problem here is the db you have on railway broke or something since your django app cannot connect to it
Niccolò
Niccolò2y ago
I hope this is not true
jackson
jackson2y ago
ideally not but i poked around in a few other threads and i saw something about db's going down/needing to be restarted might just be a temporary issue
Niccolò
Niccolò2y ago
Well I just went on the postgresql service we're talking about and it says there are no tables I REALLY hope this is not true. Else it means I have lost freaking everything
jackson
jackson2y ago
anguish
Niccolò
Niccolò2y ago
I cannot believe this.
jackson
jackson2y ago
are you in the right environment if you have multiple?
Niccolò
Niccolò2y ago
It's the only environment there is. This is crazy And there is nothing in the logs saying anything about this.
Niccolò
Niccolò2y ago
jackson
jackson2y ago
django doesn't tend to just nuke dbs
Niccolò
Niccolò2y ago
I was on the website yesterday and all was fine.
jackson
jackson2y ago
talked with some other people and apparently it's a known issue
Niccolò
Niccolò2y ago
What issue?
angelo
angelo2y ago
Your data is still there, going to reboot the DB
jackson
jackson2y ago
🙏
Niccolò
Niccolò2y ago
oh thank god
angelo
angelo2y ago
angelo
angelo2y ago
did you delete the service? I am not seeing anything in your project
Niccolò
Niccolò2y ago
I did not, for sure I am on the dashboard and see everything
angelo
angelo2y ago
are you sure this is the correct project Id?
Niccolò
Niccolò2y ago
0e69e8c1-1752-4f08-bcdf-c624b1d6ae93 this is the db
angelo
angelo2y ago
why is your DB in a separate project? restarting
Niccolò
Niccolò2y ago
It's always been and it's not the first time I am reaching out for help it was never an issue Thank you.
angelo
angelo2y ago
data is back
Niccolò
Niccolò2y ago
Thank you, the website is reachable again Is there a way to download the db data from the dashboard?
jackson
jackson2y ago
no but you could just connect with psql yourself and export it
Niccolò
Niccolò2y ago
Alright, thank you