Failure after Postgre migration
Hello!
Sorry, I'm a beginner and I had a Laravel application with Postgres running and when I did the recommended database migration, it apparently worked but it said I should delete Postgres Legacy and when I did it it stopped working.
On my PC I have access to Postgres data remotely despite being able to make a backup (this is the message: pg_dump: error: server version: 15.4 (Ubuntu 15.4-2.pgdg22.04+1); pg_dump version: 14.7 pg_dump: error: aborting because of server version mismatch)
The application is no longer running:
9 Replies
Project ID:
cf2b97ee-bbc7-4ebf-bcf3-aa15a45c6f72
project id: cf2b97ee-bbc7-4ebf-bcf3-aa15a45c6f72
sounds like you have the old database credentials hardcoded somewhere, please use reference variables https://docs.railway.app/guides/variables#reference-variables
As I said, I'm a beginner and I don't know how to do this.
The documentation seems confusing to me.
there is examples, please read over the docs carefully
The variables seem correct but the application continues referencing the old DB: SQLSTATE[08006] [7] connection to server at "containers-us-west-133.railway.app" (34.82.253.61), port 5641 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
sounds like you have the old database credentials hardcoded somewhere
the problem is finding out where
indeed