SncRedisBundle: [v2.1.3] Unable to connect to Redis Resource in Azure
Hello,
Yesterday I updated the Bundle in my Azure webapp and it seems there is a problem with the last version changes. It’s unable to connect to the Redis Resource in Azure showing this message:
predis SELECT failed: NOAUTH Authentication required.
The REDIS_URL is well defined and installing the version 2.1.2 it works properly.
Kind regards.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17
Commits related to this issue
- Use RedisDsn to build connection options for env based config fix #425 - Always use PredisParametersFactory to build connection options so that it creates consistency between env/non-env based confi... — committed to B-Galati/SncRedisBundle by B-Galati 6 years ago
- Use RedisDsn to build connection options for env based config fix #425 - Always use PredisParametersFactory to build connection options so that it creates consistency between env/non-env based confi... — committed to B-Galati/SncRedisBundle by B-Galati 6 years ago
- Use RedisDsn to build connection options for env based config fix #425 - Always use PredisParametersFactory to build connection options so that it creates consistency between env/non-env based confi... — committed to B-Galati/SncRedisBundle by B-Galati 6 years ago
- Use RedisDsn to build connection options for env based config fix #425 - Always use PredisParametersFactory to build connection options so that it creates consistency between env/non-env based confi... — committed to B-Galati/SncRedisBundle by B-Galati 6 years ago
- Use RedisDsn to build connection options for env based config (#439) fix #425 - Always use PredisParametersFactory to build connection options so that it creates consistency between env/non-env ba... — committed to snc/SncRedisBundle by B-Galati 6 years ago
Yeah I know, it’s one of those classic “oh DUH” moments that I’m not sure we can do anything to alleviate. Best thing I could think of indeed was doing the Symfony DX thing and extend the access denied exception with some remarks about this. Theoretically we could even only do it when auth is denied and
urldecode($pass) !== $pass.Has been there since 2016 actually 😉
https://github.com/snc/SncRedisBundle/commit/9ffce08d73b294e711287831cd83ad46cd2e7465
If anyone should stumble upon this issue… I sure hope this will help someone save time.
I had the same problem today and I was going nuts. Then, I used the secondary key just to be sure I tried everything, and it worked! It was a freakishly dumb error: the password (key) is run through
urldecode()by SncRedis and my primary password has a+sign in it, which is converted to space and Azure Redis saidNOAUTH Authentication required.The secondary password has no+sign in it.