Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@flexiapp

Description

@flexiapp
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.