RedisException: read error on connection to redis:6379 Update failed

Hi all,
I come from a stuck upgrade that I’ve fixed thanks to this post.
Unfortunately now after the command ./occ upgrade after the integrity check I receive this error
RedisException: read error on connection to redis:6379
Update failed
I’ve check the connection to Redis with the redis-cli and it is working fine, I’ve also check the timeout and it is fine as well. Of course host port and password on the nextcloud config.php is correct.

From the nextcloudlog.log I see this:

{“reqId”:“jhFWzvqA6DA2qaPGkK8t”,“level”:3,“time”:“2021-01-17T19:17:33+00:00”,“remoteAddr”:“172.18.0.7”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/csrftoken",“message”:{“Exception”:“Doctrine\DBAL\DBALException”,“Message”:“Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No route to host”,“Code”:0,“Trace”:[{“file”:"/var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",“line”:1449,“function”:“connect”,“class”:“OC\DB\Connection”,“type”:"->",“args”:[]},{“file”:"/var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",“line”:892,“function”:“getWrappedConnection”,“class”:“Doctrine\DBAL\Connection”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/DB/Connection.php",“line”:202,“function”:“executeQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:"->",“args”:[“SELECT * FROM oc_appconfig“,[],[],null]},{“file”:”/var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php”,“line”:206,“function”:“executeQuery”,“class”:“OC\DB\Connection”,“type”:"->",“args”:[“SELECT * FROM oc_appconfig“,[],[]]},{“file”:”/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:217,“function”:“execute”,“class”:“Doctrine\DBAL\Query\QueryBuilder”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/AppConfig.php",“line”:345,“function”:“execute”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/AppConfig.php",“line”:110,“function”:“loadConfigValues”,“class”:“OC\AppConfig”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/AppConfig.php",“line”:301,“function”:“getApps”,“class”:“OC\AppConfig”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/legacy/OC_App.php",“line”:949,“function”:“getValues”,“class”:“OC\AppConfig”,“type”:"->",“args”:[false,“installed_version”]},{“file”:"/var/www/html/lib/private/Server.php",“line”:668,“function”:“getAppVersions”,“class”:“OC_App”,“type”:"::",“args”:[]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/html/lib/private/ServerContainer.php",“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OC\Memcache\Factory”,true]},{“file”:"/var/www/html/lib/private/Server.php",“line”:1677,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/html/lib/private/Server.php",“line”:1017,“function”:“getMemCacheFactory”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OCP\Lock\ILockingProvider”]},{“file”:"/var/www/html/lib/private/ServerContainer.php",“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCP\Lock\ILockingProvider”,true]},{“file”:"/var/www/html/lib/private/Server.php",“line”:1977,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OCP\Lock\ILockingProvider”]},{“file”:"/var/www/html/lib/private/Files/View.php",“line”:118,“function”:“getLockingProvider”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/Server.php",“line”:395,“function”:"__construct",“class”:“OC\Files\View”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Files\Node\HookConnector”]},{“file”:"/var/www/html/lib/private/ServerContainer.php",“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OC\Files\Node\HookConnector”,true]},{“file”:"/var/www/html/lib/private/Server.php",“line”:1324,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Files\Node\HookConnector”]},{“file”:"/var/www/html/lib/base.php",“line”:595,“function”:“boot”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/base.php",“line”:1091,“function”:“init”,“class”:“OC”,“type”:"::",“args”:[]},{“file”:"/var/www/html/index.php",“line”:35,“args”:["/var/www/html/lib/base.php"],“function”:“require_once”}],“File”:"/var/www/html/lib/private/DB/Connection.php",“Line”:72,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 OPR/73.0.3856.284”,“version”:“20.0.2.2”}
{“reqId”:“jhFWzvqA6DA2qaPGkK8t”,“level”:3,“time”:“2021-01-17T19:17:33+00:00”,“remoteAddr”:“172.18.0.7”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/csrftoken",“message”:{“Exception”:“RedisException”,“Message”:“No route to host”,“Code”:0,“Trace”:[{“file”:"/var/www/html/lib/private/RedisFactory.php",“line”:92,“function”:“connect”,“class”:“Redis”,“type”:"->",“args”:[“redis”,6379,0]},{“file”:"/var/www/html/lib/private/RedisFactory.php",“line”:108,“function”:“create”,“class”:“OC\RedisFactory”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/Memcache/Redis.php",“line”:43,“function”:“getInstance”,“class”:“OC\RedisFactory”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/Memcache/Factory.php",“line”:145,“function”:"__construct",“class”:“OC\Memcache\Redis”,“type”:"->",“args”:[“8f4734eb83f45899aef752d209414202/JS-ec1507f1d93b6a07f1e0c79b822517fb”]},{“file”:"/var/www/html/lib/private/Template/JSCombiner.php",“line”:75,“function”:“createDistributed”,“class”:“OC\Memcache\Factory”,“type”:"->",“args”:[“JS-ec1507f1d93b6a07f1e0c79b822517fb”]},{“file”:"/var/www/html/lib/private/Server.php",“line”:1132,“function”:"__construct",“class”:“OC\Template\JSCombiner”,“type”:"->",“args”:[{“class”:“OC\Files\AppData\AppData”},{“class”:“OC\URLGenerator”},{“class”:“OC\Memcache\Factory”},{“class”:“OC\SystemConfig”},{“class”:“OC\Log”}]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Template\JSCombiner”]},{“file”:"/var/www/html/lib/private/ServerContainer.php",“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OC\Template\JSCombiner”,true]},{“file”:"/var/www/html/lib/private/TemplateLayout.php",“line”:362,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Template\JSCombiner”]},{“file”:"/var/www/html/lib/private/TemplateLayout.php",“line”:194,“function”:“findJavascriptFiles”,“class”:“OC\TemplateLayout”,“type”:"::",“args”:[[“core/js/dist/main”,“core/l10n/en”]]},{“file”:"/var/www/html/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->",“args”:[“error”,""]},{“file”:"/var/www/html/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->",“args”:[]},{“file”:"/var/www/html/lib/private/legacy/OC_Template.php",“line”:332,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->",“args”:[]},{“file”:"/var/www/html/index.php",“line”:63,“function”:“printExceptionErrorPage”,“class”:“OC_Template”,“type”:"::",“args”:[{“class”:“Doctrine\DBAL\DBALException”},500]}],“File”:"/var/www/html/lib/private/RedisFactory.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 OPR/73.0.3856.284”,“version”:“20.0.2.2”}

Thanks in advance for help.