Postgres DATABASE_URL either invalid or internal networking is down, application connected to DB crashing
zennoia
HOBBYOP

2 months ago

Have deployed a Postgres database image and a service attached to it. The service that connects to the database crashed complaining about the "DATABASE_URL", I'm assuming there's some issue with either the internal networking, or the DATABASE_URL provided is invalid.

External networking works, I was able to take a backup of the database using the public database url.

The "Database" tab in the postgres service where we can usually see the database tables itself complains about an invalid database_url

Solved

13 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


zennoia
HOBBYOP

2 months ago

Attaching image of Postgres service database tab complaining about an invalid database url

Attachments


zennoia
HOBBYOP

2 months ago

Everything was working fine until today evening during the control plane issue https://status.railway.com/cmfv2ciuy00krz1jvwfghr4gz, since then, all new deployments/redeployments of the previously working code are crashing because of being unable to connect to the database.


slavcetrajkovski
PRO

2 months ago

I have the same exact issue


ray-chen
EMPLOYEE

2 months ago

This should be fixed now. Could you try again?


Status changed to Awaiting User Response Railway 3 months ago


nizian
PRO

2 months ago

Postgress and Redis with the same problems

"Database Connection

We are unable to connect to the database over the public network.

Invalid database URL"


Status changed to Awaiting Railway Response Railway 3 months ago


slavcetrajkovski
PRO

2 months ago

we are still experiencing problems


pedro-shopinfo
PRO

2 months ago

me too, cannot redeploy any of my services


pedro-shopinfo
PRO

2 months ago

i checked my variables and saw that some of then was empty, but i didnt edit anything


tonkotsu
PRO

2 months ago

Jumping in here from another thread. I was able to get everything working again by re-enabling private networking.

Attachments


Railway
BOT

2 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


echohack
EMPLOYEE

2 months ago

Hi there! Looks like your service is redeployed and working again. Sorry for the inconvenience!


Status changed to Awaiting User Response Railway 3 months ago


Status changed to Solved echohack 3 months ago


Railway
BOT

2 months ago

✅ The ticket Database Connection Issue has been marked as completed.


Loading...