Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy