Could not translate host name "postgres.railway.internal" to address: Name or service not known
curtis-gaye7
HOBBYOP

a year ago

I have been getting this error in my worker service for my Django application with no further ideas on how to resolve.

I have:

Checked environment variables. To my understanding, the reference variables for internal communication are correct, and the postgres.railway.internal is , indeed, the endpoint name.

I've changed multiple settings in settings.py to no avail, including making sure the DATABASES section was the same as the template example.

I've also tried using railway up from VS code, as well as railway client only deployments. Nothing seems to work regarding this error.

There have been other people with this error previously, but I am not able to understand any of their solutions

Solved

3 Replies

a year ago

Hello,

You would first need to step running celery as a build command.

Celery is meant to run only during runtime.

Best,
Brody


Status changed to Awaiting User Response Railway 12 months ago


brody

Hello,You would first need to step running celery as a build command.Celery is meant to run only during runtime.Best,Brody

curtis-gaye7
HOBBYOP

a year ago

Thanks! I moved the statement to the Deploy section and that fixed the issue.


Status changed to Awaiting Railway Response Railway 12 months ago


a year ago

Awsome!


Status changed to Awaiting User Response Railway 12 months ago


Status changed to Solved brody 12 months ago


Loading...