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

a year 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

a year 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

a year ago

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

Attachments


zennoia
HOBBYOP

a year 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

a year ago

I have the same exact issue


This should be fixed now. Could you try again?


Status changed to Awaiting User Response Railway 11 months ago


nizian
PRO

a year 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 11 months ago


slavcetrajkovski
PRO

a year ago

we are still experiencing problems


pedro-shopinfo
PRO

a year ago

me too, cannot redeploy any of my services


pedro-shopinfo
PRO

a year ago

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


tonkotsu
PRO

a year ago

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

Attachments


Railway
BOT

a year 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

a year ago

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


Status changed to Awaiting User Response Railway 11 months ago


Status changed to Solved echohack 11 months ago


Railway
BOT

a year ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...