Worker cannot connect to the DB while the server can? [SELF-HOST]
Hi guys,
I am trying to deploy TwentyCRM to Dokploy using Docker Compsose. The server works perfect without any issues, but the worker cannot connect to the database? I assume it uses the same connection right?
I get the following error:
[Nest] 34 - 09/03/2025, 10:22:37 AM ERROR [TypeOrmModule] Unable to connect to the database (core). Retrying (3)...
Error: getaddrinfo EAI_AGAIN twenty-crm-postgresdb-uniqueid
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)
Would appreciate some help as I urgently need to deploy this.
2 Replies
Hello there, I assume you're self hosting latest twenty verison
1.4.10 ?
Is that the only thing you can see in your twenty-worker container logs ?
High chances this comes from your Dokploy configurationHi @Prastoin
Thanks for your answer, indeed I deploy the latest tag… However like I said the server works pretty fine and I mean the worker uses the same image with the same env variables so I don’t quite understand the issue. That is the only error in the logs however tomorrow I will check it more precised.