-
Notifications
You must be signed in to change notification settings - Fork 197
Username support when connecting to REDIS #295
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
Comments
#285 would be required for this afaict |
It looks like it is trying to connect:
… but I don't know the details of what's possible or not.
I'm not seeing the connection 100% from the information given. (Is it clear aioredis doesn't support passwords?)
Is there another fix needed?
I'd rather link to the right place than reproduce the connection docs TBH. It's just a pass-through to the underlying library. |
My read is that the underlying library doesn't support it. It was added here, but never made it into an official release afaict. The underlying library is now unsupported/unmaintained, so I think #285 is the blocker. |
@ipmb and @carltongibson, Thank you for looking into this. On a second pass, I can confirm channels-redis is just passing the address on to aioredis. If you put a break on here, you'll see that
|
Yes, that's true, but it doesn't matter. Even if you passed the username down, aioredis wouldn't accept it or do the right thing with it. |
I created a simple "hello world" chat application running locally using docker-compose which is running
redis:6
. However, when I deployed to a production environment on AWS it didn't work because our ElastiCache Redis Cluster using the6.2.5
requires a username and password in order to connect.If you are using docker-compose for development, you can reproduce the error if you configure your Redis service in the following way.
Then in your
redis.conf
in your project add the following:Then in your Django settings try the following:
Relevant package versions:
In production, I'm running Channels with gunicorn/uvicorn.
This is a traceback of what is happening locally, which leads me to believe that Channels will need to be upgraded to using aioredis 2.0 as well as a fix to this package. It would also be good if the README and docs could be upgraded to show how you're supposed to configure a Redis host that needs a username and/or password.
The text was updated successfully, but these errors were encountered: