I started a new mysql instance it not connecting
vouchh
PROOP

a year ago

I have an instance with django project running I added postgressql variables to it and but I am getting the following.

self.ensure_connection()

File "/opt/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner

return func(*args, **kwargs)

conn = _connect(dsn, connection_factory=connection_factory, **kwasync)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

       ^^^^^^^^^^^^^^^^^^^^^

django.db.utils.OperationalError: connection to server at "grid.railway.internal" (fd12:1d15:d2a:0:2000:8:7b36:24ed), port 5432 failed: Connection refused

Is the server running on that host and accepting TCP/IP connections?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

a year ago

Hello,

There is no MySQL service in the linked project.

Either way, grid.railway.internal is the private domain of your app, not the domain of any database.

Please make sure you are using reference variables to reference the variables exposed by the database service.

Best,
Brody


Loading...