R
Railwayβ€’8mo ago
IlikeGoogle

Database connection failed

Hey team I am getting an issue connecting to my new migrated postgres DB. Project ID: 32337fdc-fe2a-42f0-a2be-bf2ec7720827 πŸ™‚ thanks in advance
No description
Solution:
Problem solved, I had to destroy everything and recreate new db and volume.
Jump to solution
15 Replies
Percy
Percyβ€’8mo ago
Project ID: 32337fdc-fe2a-42f0-a2be-bf2ec7720827
IlikeGoogle
IlikeGoogleβ€’8mo ago
Info when I try to CLI connect: psql: error: connection to server at "monorail.proxy.rlwy.net" (35.213.165.89), port 56612 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
Brody
Brodyβ€’8mo ago
firstly can you show a screenshot of your railway project so i know whats going on
IlikeGoogle
IlikeGoogleβ€’8mo ago
No description
Brody
Brodyβ€’8mo ago
can you try re-deploying the database
IlikeGoogle
IlikeGoogleβ€’8mo ago
I did - same issue I also tried restarting I also made sure the port for the proxy was the same as the db port
Brody
Brodyβ€’8mo ago
show me the public networking section please
IlikeGoogle
IlikeGoogleβ€’8mo ago
No description
Brody
Brodyβ€’8mo ago
that's wrong, you should set the proxy to port 5432
IlikeGoogle
IlikeGoogleβ€’8mo ago
Same message: psql: error: connection to server at "monorail.proxy.rlwy.net" (35.213.165.89), port 16989 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. See screenshot of my new settings
No description
Brody
Brodyβ€’8mo ago
redeploy?
IlikeGoogle
IlikeGoogleβ€’8mo ago
psql: error: connection to server at "monorail.proxy.rlwy.net" (35.213.165.89), port 16989 failed: FATAL: password authentication failed for user "postgres" connection to server at "monorail.proxy.rlwy.net" (35.213.165.89), port 16989 failed: FATAL: password authentication failed for user "postgres" @Brody Is this because maybe the old volume was attached to the new DB?
Brody
Brodyβ€’8mo ago
if you're passing volumes around then you've likely broken something
Solution
IlikeGoogle
IlikeGoogleβ€’7mo ago
Problem solved, I had to destroy everything and recreate new db and volume.
Brody
Brodyβ€’7mo ago
makes sense
Want results from more Discord servers?
Add your server