DEPLOY logs showing Error: getaddrinfo ENOTFOUND redis.railway.internal
Use case: I am trying to deploy the backend server from an open-source project. One of the server requirements is a Redis host. I deployed a Redis project in the same environment and followed the guide (adding the
REDISHOST, REDISUSER, REDISPORT, REDISPASSWORD, REDIS_URL
environment variables). The build works but my deploy logs keep showing the error getaddrinfo ENOTFOUND redis.railway.internal
. I tried adding a sleep 3
to my start command and that did not work. I also tried adding ?family=0
to my redis_url environment variable but that did not work. What is causing this deploy log issue and how can I fix it?
For reference if needed: the open source project is https://github.com/twentyhq/twenty and the backend server is in the directorypackages/twenty-server.
This is the website where they mention the required environment variables for self hosting https://twenty.com/developers/section/self-hosting/self-hosting-varGitHub
GitHub - twentyhq/twenty: Building a modern alternative to Salesfor...
Building a modern alternative to Salesforce, powered by the community. - twentyhq/twenty
11 Replies
Project ID:
1f5270ce-3093-4e79-a5ae-cb50643f41a9
1f5270ce-3093-4e79-a5ae-cb50643f41a9
why is redis needed here?
The backend server requires a cache storage in the code implementation. Without it I get
Error: connect ECONNREFUSED 127.0.0.1:6379
during my buildare you using the twenty template? - https://railway.app/template/nAL3hA
No I am not using the template, because I am deploying the frontend elsewhere separately and using an already existing postgres database
So I am just trying to deploy the twent-server only
i would recommend using the template
It might be difficult since the rest of the services are deployed elsewhere.
I'm curious though why not using the template would give me the error I mentioned since I have a redis server deployed
haven't looked into it, but the template likely works without issues so thats going to be my recommendation
I tried deploying the template and got the error
Is the template supposed to work out of the box?
i would hope so
i see you already let the maintainer know, so i will close out this thread and let the template maintainer assist you.