7 months 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
7 months 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 • 7 months ago
7 months 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
7 months 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
7 months ago
by the way, thanks for the quick response, I really appreciate it.
7 months 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
7 months ago
Please see my last message.
You have not removed the incorrect start command.
7 months ago
YESSSS, yo are totattly right thanks you so much, its works now
Status changed to Solved brody • 7 months ago