Skip to content

[Cache] Redis server redis:6379 went away #58727

Open
@flexiapp

Description

@flexiapp

Symfony version(s) affected

Description

Redis adapter won't work with redis sentinels.

How to reproduce

  1. Setup redis (password protected) with redis sentinels (password protected).
  2. Use DSN: redis:default:redisMasterPassword@?host[redis-sentinel:26379]&redis_sentinel=mymaster&auth=redisSentinelPassword
  3. Redis failed with error: Redis connection failed: Redis server redis:6379 went away

Possible Solution

The problem is here: https://github.com/symfony/symfony/blob/7.2/src/Symfony/Component/Cache/Traits/RedisTrait.php#L290
Should be: $extra['auth'] = $auth ?? $params['auth'];

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions