-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable IPv6 Support for Redis Database Connections Over a Private Netwoork #7421
Comments
I think that adding |
@ijreilly what do you think? |
I have too limited knowledge on this, maybe @Weiko knows better? |
LGTM, thanks for the technical input. Feel free to open a PR 👍 |
While it's true that you can pass the parameter through the URL, Twenty does not expose env vars for connection urls for redis, only for the |
@thomasmol that's a good point - I didn't see that, we should probably replace REDIS_HOST, REDIS_PORT, REDIS_USERNAME, REDIS_PASSWORD by a single REDIS_URL param to be consistent with what we do on Postgres. Re-opening the issue, PR welcome :)) |
Bug Description
When attempting to connect to a Redis database over a private network, I get the following error:
Error: getaddrinfo ENOTFOUND
. I think it is because currently the caching system utilizes BullMQ, which relies on ioredis internally, and ioredis by default is configured to work only with IPv4 addresses.Expected behavior
The expected behavior is for the
twenty-server
andtwenty-worker
to establish a successful connection to the Redis database over the private network, eliminating theENOTFOUND
error.Technical inputs
I think this would require a change in the connection options for
messageQueueModuleFactory
in message-queue.module-factoryand possibly the socket properties for
cacheStorageModuleFactory
in cache-storage.module-factoryThe text was updated successfully, but these errors were encountered: