a year ago
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/12924e2d-955d-4ec2-97f4-5055c4a70b24/vol_asgrng7kcerv5oey
psql: error: connection to server at "postgres.railway.internal" (fd12:b011:1375::ad:ad79:bd7c), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/12924e2d-955d-4ec2-97f4-5055c4a70b24/vol_asgrng7kcerv5oey
I can't connect to my database, I can't make backups or anything, I already did restart but I keep getting the same error, I just want to recover my data at least.
8 Replies
a year ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • over 1 year ago
a year ago
Hello,
Your app and database need to be in the same project.
Please see these docs that elaborate further on this -
https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project
brody
Hello,Your app and database need to be in the same project.Please see these docs that elaborate further on this -https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project
a year ago
i put the backend in the same project but the bd is still getting the same error and so the backend is now crashed, is there another solution pls
Attachments
a year ago
by the way, thanks for the quick response, I really appreciate it.
a year ago
thanks but still with the same error, the backend can not connect to the postgres bd but with other new bd that I created in other projects the backend connects normally, but this postgres bd I had created months ago, and it was stopped for a long time and now that I want to reconnect with the backend it does not let me, I just want to recover the data from that db.
Attachments
a year ago
YESSSS, yo are totattly right thanks you so much, its works now
Status changed to Solved brody • over 1 year ago