cancel
Showing results for 
Search instead for 
Did you mean: 

Redis - Error cleaning cache by mode matcingAnyTag: read error on connection

Redis - Error cleaning cache by mode matcingAnyTag: read error on connection

Sporadically, when cleaning cache (System -> Cache Management -> select one or all to refresh -> Submit), I receive an error: "Error cleaning cache by mode matcingAnyTag: read error on connection". 

 

Trying to track down where the error is thrown, I found:

    Zend_Cache::throwException('Error cleaning cache by mode '.$mode.': '.$e->getMessage(), $e);

~ on line 655 of lib/Cm/Cache/Backend/Redis.php.

 

I have found limited information on this issue searching.  What I have found has told me to look at some settings:

redis.conf: timeout 0 - what it should be (?)

ulimit -n 1024

php.ini: default_socket_timeout 600 - believe that -1 is unlimited.

 

Most of this is based on https://github.com/phpredis/phpredis/issues/70..

 

 

 

 

1 REPLY 1

Re: Redis - Error cleaning cache by mode matcingAnyTag: read error on connection

I read this article

https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/configure/service/redis.ht...

 

I check this patch

https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-0-6/mdva...

 

For 2.4.5-p2 we just login to cloud and do

bin/magento cache:flush config

bin/magento cache:flush full_page

 

And then we try again

bin/magento cache:clean


It works again!