Closed kmahelona closed 4 years ago
Same thing is happening with us after upgrading to 3.0.0
What’s your Redis version? (Less than v5 is EOL according to Redis’ support policy)
Looks like we have version 3.2.4 in aws, that is most likely the culprit seeing as bzpopmin
is introduced in 5.0
(resolves my issue not sure about the OP)
Having this issue too. I have redis-server version 4.09. bzpopmin is introduced in 5, however redis_channels states that above 2.?.? works. This is the error: aioredis.errors.ReplyError: ERR unknown command 'BZPOPMIN'
Updated Readme in #204. Thanks all.
Ah sorry, I didn't think I installed redis then assumed django-channels did it for me 😅. So the preferred fix here is to upgrade the supported version of redis. Happy to close this if that's valid.
Ah sorry, I didn't think I installed redis then assumed django-channels did it for me 😅. So the preferred fix here is to upgrade the supported version of redis. Happy to close this if that's valid.
Only cost me about 4 hours of time😂
@rarenatoe its not your redis client version that needs to be updated, but your redis server version (where ever it is hosted)
(assuming you have redis-cli setup to connect to your redis host)
redis-cli INFO | grep version
redis_version:6.0.8 # <--- this needs to be 5.0 or higher
How did you guys fix this? How did you manage to install version 5 or 6? I only found this and this. Both of them don't go past 3.5
I changed to
redis3
but still no luck.
I just downgraded redis channels to something like 2.4 and kept my redis server and it worked fine Edit: I used 2.4.1 and it worked without error
Thanks guys. I figured it out shortly after. I had to go to AWS and update it there.
This is still happening for me.
Any ideas what I'm missing?
This is still happening for me.
- Redis version=6.2.0
- redis (lib)==3.5.3
- channels==3.0.3
- channels-redis==3.2.0
- Python 3.9.2
- macOS 10.15.7
Any ideas what I'm missing?
I dont know if this will help, but I had to use 2.4.1 on channels redis for it to work.
Thanks @Si1veR123. But that seems to conflict with channels 3 then so I can't upgrade.
Can someone confirm what the appropriate solution is for this? I have everything updated but can't get past this error.
Also the readme says This package is for Channels 2 projects only.
. Is that accurate or is channels_redis 3 supposed to work with channels 3?
Thanks.
Ok looks like upgrading aioredis
to the latest has fixed it for me.
I had the same issue for my Django project while using channels_redis and I just changed the CHANNEL_LAYERS inside settings.py
from
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("localhost", 6379)],
},
},
}
to
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.pubsub.RedisPubSubChannelLayer",
"CONFIG": {
"hosts": [("localhost", 6379)],
},
},
}
I had the same issue for my Django project while using channels_redis and I just changed the CHANNEL_LAYERS inside settings.py
from
CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { "hosts": [("localhost", 6379)], }, }, }
to
CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.pubsub.RedisPubSubChannelLayer", "CONFIG": { "hosts": [("localhost", 6379)], }, }, }
Thank you so much, this solved my problem for 'bzpopmin'
I came across this error with the latest channels_redis==3.0.0
Error Log
pip freeze I've redacted what I think isn't necessary
Fix Setting
channels-redis==2.4.2
fixes the problem. I checked thatchannels
is at the latest version and it is.settings.py These are my settings. Possibly when
channels_redis==3.0.0
there's another package that needs to be updated but only Django (and a few other non-related packages) is help back in my settingsOS etc.
exec daphne -v 1 -u $SOCKFILE --proxy-headers kaituhisite.asgi:application