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

Most upvoted comments

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.

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 said NOAUTH Authentication required. The secondary password has no + sign in it.

object(Snc\RedisBundle\DependencyInjection\Configuration\RedisDsn)[1762]
  protected 'dsn' => string 'rediss://redacted+key=@cache:6380' (length=83)
  protected 'password' => string 'redacted key=' (length=44)
  protected 'host' => string 'cache' (length=5)
  protected 'port' => int 6380
  protected 'socket' => null
  protected 'tls' => boolean true
  protected 'database' => null
  protected 'weight' => null
  protected 'alias' => null