-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
After 4.2.0 migration, using ioredis
, you must force IPv6 resolution for the streaming API
#27043
Comments
Does this impact the regular Mastodon process connections to Redis as well or just for the streaming API? |
Sidekiq was in a working state so it seems to only impact the streaming API. |
I'll try to write some code to easily reproduce the issue and eventually make a PR here or on |
@VictorBersy I think you'd be better filing this as an upstream issue in ioredis: https://github.com/redis/ioredis/issues By default ioredis assumes IPv4, per https://github.com/redis/ioredis/blob/main/lib/redis/RedisOptions.ts#L192, when it should probably not assume IPv4 (by passing |
Steps to reproduce the problem
Following the migration to
ioredis
(#26581) I had connection issues to my Redis instance on fly.io, using IPv6.I was using :
But now I need to force the IPv6 resolution using the
family
parameter :I found some occurrences of this parameter here and there:
Maybe we could add a warning to the administrator in the changelog about that? Ideally, a way to resolve the hostname, no matter if it's IPv4 or IPv6 on top of their library would be super cool to avoid any issues like this.
I'm creating this issue to help others mostly if they spot something similar.
Expected behaviour
ioredis
library should do the hostname IPv6 resolution "natively"Actual behaviour
ioredis
failed to connect to IPv6 Redis instances, except if you force it using thefamily
parameter inREDIS_URL
Detailed description
No response
Mastodon instance
3615.computer
Mastodon version
v4.2.0
Technical details
If this is happening on your own Mastodon server, please fill out those:
v3.2.2p53
v20.6.1
I did not save the log showing the issue, but from my search history it was something like
Error: getaddrinfo ENOTFOUND
.The text was updated successfully, but these errors were encountered: