[Solved] Fatal error: Uncaught CredisException: Connection to Redis 127.0.0.1:6379 failed. Last Error : (111) Connection refused
Error:-
Fatal error: Uncaught CredisException: Connection to Redis 127.0.0.1:6379 failed after 2 failures. Last Error : (111) Connection refused in /home/the-d2/public_html/vendor/colinmollenhour/credis/Client.php:463 Stack trace: #0 /home/the-d2/public_html/vendor/colinmollenhour/credis/Client.php(459): Credis_Client->connect() #1 /home/the-d2/public_html/vendor/colinmollenhour/credis/Client.php(792): Credis_Client->connect() #2 /home/the-d2/public_html/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php(432): Credis_Client->__call('hGet', Array) #3 /home/the-d2/public_html/vendor/magento/zendframework1/library/Zend/Cache/Core.php(306): Cm_Cache_Backend_Redis->load('33d_GLOBAL__DIC...', false) #4 /home/the-d2/public_html/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(39): Zend_Cache_Core->load('33d_GLOBAL__DIC...') #5 /home/the-d2/public_html/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\Cache\Frontend\Adapter\Z in /home/the-d2/public_html/vendor/colinmollenhour/credis/Client.php on line 463
Solution:- Try restarting the redis service and flush redis cache.
# service redis restart # redis-cli flushall
Thanks, this just got my website back online
I’m glad it helped! and thanks for leaving feedback!