R
Railway2mo ago
abed3k

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-var
GitHub
GitHub - twentyhq/twenty: Building a modern alternative to Salesfor...
Building a modern alternative to Salesforce, powered by the community. - twentyhq/twenty
11 Replies
Percy
Percy2mo ago
Project ID: 1f5270ce-3093-4e79-a5ae-cb50643f41a9
abed3k
abed3kOP2mo ago
1f5270ce-3093-4e79-a5ae-cb50643f41a9
Brody
Brody2mo ago
why is redis needed here?
abed3k
abed3kOP2mo ago
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 build
Brody
Brody2mo ago
are you using the twenty template? - https://railway.app/template/nAL3hA
abed3k
abed3kOP2mo ago
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
Brody
Brody2mo ago
i would recommend using the template
abed3k
abed3kOP2mo ago
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
Brody
Brody2mo ago
haven't looked into it, but the template likely works without issues so thats going to be my recommendation
abed3k
abed3kOP2mo ago
I tried deploying the template and got the error
ERROR [ExceptionHandler] connect ECONNREFUSED 127.0.0.1:6379

Error: connect ECONNREFUSED 127.0.0.1:6379

at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
ERROR [ExceptionHandler] connect ECONNREFUSED 127.0.0.1:6379

Error: connect ECONNREFUSED 127.0.0.1:6379

at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
Is the template supposed to work out of the box?
Brody
Brody2mo ago
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.
Want results from more Discord servers?
Add your server