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

curtis-gaye7
HOBBY

4 months 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

4 months 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 4 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
HOBBY

4 months ago

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


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

Awsome!


Status changed to Awaiting User Response Railway 4 months ago


Status changed to Solved brody 4 months ago


Could not translate host name "postgres.railway.internal" to address: Name or service not known - Railway Help Station