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
Percy3y ago
Project ID: 9a8cdddf-87aa-4caf-848a-69fb07710946
Niccolò
NiccolòOP3y ago
9a8cdddf-87aa-4caf-848a-69fb07710946
jackson
jackson3y ago
double check the port and hostname, should also make sure that the database is running
Niccolò
NiccolòOP3y ago
Where should that be checked? The deploy I am triggering does not include any of such changes.
jackson
jackson3y 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òOP3y 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
jackson3y ago
unsure, i don't work here so i cannot say much about the uptime
Niccolò
NiccolòOP3y ago
What's it got to do with the uptime?
jackson
jackson3y 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òOP3y ago
I hope this is not true
jackson
jackson3y 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òOP3y 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
jackson3y ago
anguish
Niccolò
NiccolòOP3y ago
I cannot believe this.
jackson
jackson3y ago
are you in the right environment if you have multiple?
Niccolò
NiccolòOP3y ago
It's the only environment there is. This is crazy And there is nothing in the logs saying anything about this.
Niccolò
NiccolòOP3y ago
jackson
jackson3y ago
django doesn't tend to just nuke dbs
Niccolò
NiccolòOP3y ago
I was on the website yesterday and all was fine.
jackson
jackson3y ago
talked with some other people and apparently it's a known issue
Niccolò
NiccolòOP3y ago
What issue?
angelo
angelo3y ago
Your data is still there, going to reboot the DB
jackson
jackson3y ago
🙏
Niccolò
NiccolòOP3y ago
oh thank god
angelo
angelo3y ago
angelo
angelo3y ago
did you delete the service? I am not seeing anything in your project
Niccolò
NiccolòOP3y ago
I did not, for sure I am on the dashboard and see everything
angelo
angelo3y ago
are you sure this is the correct project Id?
Niccolò
NiccolòOP3y ago
0e69e8c1-1752-4f08-bcdf-c624b1d6ae93 this is the db
angelo
angelo3y ago
why is your DB in a separate project? restarting
Niccolò
NiccolòOP3y 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
angelo3y ago
data is back
Niccolò
NiccolòOP3y ago
Thank you, the website is reachable again Is there a way to download the db data from the dashboard?
jackson
jackson3y ago
no but you could just connect with psql yourself and export it
Niccolò
NiccolòOP3y ago
Alright, thank you
Want results from more Discord servers?
Add your server