symfony: Redis TagAwareCacheInterface stopped working after upgrade to 5.4.2
Symfony version(s) affected
5.4.2
Description
Hello,
After upgrading to version 5.4.2 the cache service stopped working. I could not trace it to why. The configuration are working when I downgrade back to 5.4.0.
Unfrtunatly there is no exception that I can catch, and not enough information from nginx, php logs. Just 502 error from nginx and could not xdebug it, had issues with it.
I went over the documentations and did not see any update that needs to be done to the code or deprecations.
Forgive me for not having enough information accept what I wrote.
Thank you
How to reproduce
Here is the configuration file: `framework: cache: default_redis_provider: ‘redis://%env(REDIS_HOST)%:%env(int:REDIS_PORT)%’
pools:
redis.cache:
adapter: 'cache.adapter.redis'
provider: 'redis://%env(REDIS_HOST)%:%env(int:REDIS_PORT)%'
default_lifetime: '%framework_cache_lifetime%'
tags: true
`
I inject it normally view constructor and pool name:
public function __construct( private LoggerInterface $logger, private TagAwareCacheInterface $redisCache ) { }
Usage sample:
$this->redisCache->get(self::CACHE_KEY, function (ItemInterface $item) { $item->expiresAfter(3600); $item->tag(['settings', Core::APP_CACHE_TAG]); ... }
Possible Solution
No response
Additional Context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (13 by maintainers)
Yes, I will try to reproduce it and upload it for your convenience.
@nicolas-grekas I submitted bug to php rpc Here I would like to add here that I tried to reproduce it with a loop for over 1500 retries to catch imagined files and it always catched the error.
In symfony 6 it throws segment 11 fault that is thrown, the ltrace, strace didn’t give me any clues or understanding whats behind it.
Also strange no one else complained about it.
There are issues with latest php 8.1 container where I am waitting for a critical patch to continue the testing. Apperently they have problems with sockets and the container is not built correctly.
So I am having other issues additionally to this one where the patch is also not working on Symfony 5.4.- now. This is only on the testing envirounment I have created.
I guess I will have to wait a little longer to continue with this issue and stay with what I have now.
Thank you guys for your quick support.
https://github.com/php/php-src/issues/7978