-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Redis connection failed: Redis server went away #48813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue with update from
Reverting changes like above fixes it. |
6.2.3 is also broken for me. Connection without authentication cannot be established anymore. the 'auth' context now defaults to an empty string which tries to authenticate to Redis with an empty authentication string. When having authentication disabled this now fails. Removing this line seems to fix it:
the auth part needs to be fully gone in order to work without authentication in Redis. |
For me too..... I'm using UNIX socket. {"message":"Failed to save key "test_key" of type array: Redis connection "redis:///var/redis/redis.sock" failed: Redis server went away","context":{"key":"test_key","exception":{"class":"Symfony\Component\Cache\Exception\InvalidArgumentException","message":"Redis connection "redis:///var/redis/redis.sock" failed: Redis server went away","code":0,"file":"vendor/symfony/cache/Traits/RedisTrait.php:244"},"cache-adapter":"Symfony\Component\Cache\Adapter\RedisTagAwareAdapter"},"level":300,"level_name":"WARNING","channel":"cache","datetime":"2022-12-28T18:41:22.134825+01:00","extra":{}} |
Same issue upgrading from
|
This also impacts me on @nicolas-grekas Could you please take a look at this? Because it has also been merged back into |
Same issue after updating from |
Same issue after updating from |
* 6.1: fix for caching without auth parameter, broken by #48711, fix for #48813 Bump Symfony version to 6.1.10 Update VERSION for 6.1.9 Update CHANGELOG for 6.1.9 Bump Symfony version to 6.0.18 Update VERSION for 6.0.17 Update CHANGELOG for 6.0.17 Bump Symfony version to 5.4.18 Update VERSION for 5.4.17 Update CONTRIBUTORS for 5.4.17 Update CHANGELOG for 5.4.17
* 6.2: fix for caching without auth parameter, broken by #48711, fix for #48813 Bump Symfony version to 6.2.4 Update VERSION for 6.2.3 Update CHANGELOG for 6.2.3 Bump Symfony version to 6.1.10 Update VERSION for 6.1.9 Update CHANGELOG for 6.1.9 Bump Symfony version to 6.0.18 Update VERSION for 6.0.17 Update CHANGELOG for 6.0.17 Bump Symfony version to 5.4.18 Update VERSION for 5.4.17 Update CONTRIBUTORS for 5.4.17 Update CHANGELOG for 5.4.17 [DependencyInjection] Fix resolving parameters when dumping lazy proxies
Fixed in #48816. |
Symfony version(s) affected
6.2.3
Description
Pull request 48711 breaks symfony/cache with Redis at least for me
How to reproduce
Update symfony from 6.2.2 to 6.2.3
I have set this
REDIS_PROVIDER=redis://localhost/2
in my .env, after Upgrade to 6.2.3 i get the error:Redis connection "redis://localhost/2" failed: Redis server went away. Revert to 6.2.2 and everything works again.
When i revert the change from row 222 of this pull request:
back to before pull request:
everything works again.
The value of
Redis::SCAN_PREFIX
is (int) 2And the content of the last array is
For me it works only, when this array is empty.
And this is the content of $params:
Trace Stack:
The text was updated successfully, but these errors were encountered: