R
Railwayβ€’10mo 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β€’10mo ago
Project ID: 32337fdc-fe2a-42f0-a2be-bf2ec7720827
IlikeGoogle
IlikeGoogleOPβ€’10mo 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β€’10mo ago
firstly can you show a screenshot of your railway project so i know whats going on
IlikeGoogle
IlikeGoogleOPβ€’10mo ago
No description
Brody
Brodyβ€’10mo ago
can you try re-deploying the database
IlikeGoogle
IlikeGoogleOPβ€’10mo 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β€’10mo ago
show me the public networking section please
IlikeGoogle
IlikeGoogleOPβ€’10mo ago
No description
Brody
Brodyβ€’10mo ago
that's wrong, you should set the proxy to port 5432
IlikeGoogle
IlikeGoogleOPβ€’10mo 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β€’10mo ago
redeploy?
IlikeGoogle
IlikeGoogleOPβ€’10mo 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β€’10mo ago
if you're passing volumes around then you've likely broken something
Solution
IlikeGoogle
IlikeGoogleβ€’10mo ago
Problem solved, I had to destroy everything and recreate new db and volume.
Brody
Brodyβ€’10mo ago
makes sense
Want results from more Discord servers?
Add your server