strapi connection refused? Can not connect to instance.

Hello, I have successfully migrated to new postgres plugin (one week ago). I have the new properties configured to use "DATABASE_URL" and "DATABASE_PRIVATE_URL". But from today i get the following error when trying to connecto from localhost: [2024-02-02 11:34:13.906] debug: ⛔️ Server wasn't able to start properly. [2024-02-02 11:34:13.908] error: connect ECONNREFUSED 34.145.89.121:5796 Error: connect ECONNREFUSED 34.145.89.121:5796 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) error Command failed with exit code 1. Project id: 9648ebed-8dec-4670-8188-b0ecee70a969
Solution:
you likely have a hardcoded database url somewhere, hardcoded to the shut down legacy database, please update that to use reference variables for the new database https://docs.railway.app/guides/variables#referencing-another-services-variable
Jump to solution
4 Replies
Percy
Percy10mo ago
Project ID: 9648ebed-8dec-4670-8188-b0ecee70a969
Solution
Brody
Brody10mo ago
you likely have a hardcoded database url somewhere, hardcoded to the shut down legacy database, please update that to use reference variables for the new database https://docs.railway.app/guides/variables#referencing-another-services-variable
JeppePepp
JeppePepp10mo ago
Correct it was a vaiable name that was not in sync with new settings.
Brody
Brody10mo ago
just make sure you are using a reference variable, that way it can't go out of sync
Want results from more Discord servers?
Add your server