DB connection

katapult1HOBBY

18 days ago

Id 1afaaacf-94b1-462f-9826-47e9e4cda75b
Hi. I've been working with Railway for several years, but this time I’m really stuck.
I'm unable to connect Strapi to the PostgreSQL database - there’s a problem with the environment variables on the hosting.
I need your help.

0 Replies

18 days ago

Can’t help with zero information


katapult1HOBBY

18 days ago

I don't have much information either, but I assume that as support, you at least have access to the log files — otherwise, what’s the point of the project ID?

Here are the cases:
Local build + local database → works
Local build + Railway database → works
Railway build + Railway database → doesn't work

strapi start

[2025-05-12 15:58:38.115] debug: ⛔️ Server wasn't able to start properly.
[2025-05-12 15:58:38.117] error: connect ECONNREFUSED 127.0.0.1:5432
Error: connect ECONNREFUSED 127.0.0.1:5432
at TCPConnectWrap.afterConnect as oncomplete


18 days ago

loudbook is not a Railway employee, so they only have the information you provide them.

Railway employees do not offer project help, we can only provide support for the Railway platform or product.


katapult1HOBBY

18 days ago

I don’t quite understand. My project isn’t working on your hosting.
Are you basically suggesting that I should run it on a different hosting provider?
I mean, I’ve actually been thinking about that, yes.


18 days ago

I'm sorry but we cannot provide support for application level issues or configuration errors, that is where our community comes in!


katapult1HOBBY

18 days ago

Railway was originally a product that made it easy to quickly deploy websites.
It’s really unfortunate that you’ve made the interface and configuration so complicated that I now have to move my projects off your hosting.


18 days ago

You where attempting to connect to Postgres via localhost (127.0.0.1)

I'd love feedback on how the platform could help you better understand those kinds of configuration errors.


katapult1HOBBY

18 days ago

First, please explain why DATABASEHOST=yamabiko.proxy.rlwy.net:54234 works, while DATABASEHOST=postgres.railway.internal causes an error.

1371733616240885800


katapult1HOBBY

18 days ago

Even deployments from templates are not working, and I’ve been waiting for 20 minutes just to find out it’s not working! What’s wrong with you guys?

1371746269944615000


DB connection - Railway Help Station