Server nach einer Woche Down Offenbar ein Redis bug?

Liebe community, ich habe Nextcloud auf zwei Servern unabhängig voneinander installiert nach 1 -2 Wochen stürzen die Server ab und ich habe aktuell keine Ahnung, wie ich das Debuggen soll.

Immer wenn ich versuche occ zu starten, geht das schon mal nicht. Vielleicht rufe ich das falsch auf.

Hier der Output:

joachim@vmd44994:~$ sudo -s
root@vmd44994:~# cd /var/www/nextcloud/
root@vmd44994:/var/www/nextcloud# sudo -u www-data php occ -h
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(420): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(380): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(324): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(195): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/nextcloud/lib/private/DB/ConnectionFactory.php(156): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/nextcloud/lib/private/Server.php(635): OC\DB\ConnectionFactory->getConnection(‘pgsql’, Array)
#8 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#9 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘OCP\IDBConnecti…’)
#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query(‘OCP\IDBConnecti…’)
#11 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#12 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#13 /var/www/nextcloud/lib/private/Server.php(1554): OC\ServerContainer->query(‘DatabaseConnect…’)
#14 /var/www/nextcloud/lib/private/Server.php(362): OC\Server->getDatabaseConnection()
#15 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#16 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#17 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(69): OC\ServerContainer->query(‘OC\Authenticati…’, true)
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(99): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#19 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(114): OC\AppFramework\Utility\SimpleContainer->resolve(‘OC\Authenticati…’)
#20 /var/www/nextcloud/lib/private/ServerContainer.php(145): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’, true)
#21 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(69): OC\ServerContainer->query(‘OC\Authenticati…’, true)
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(99): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#23 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(114): OC\AppFramework\Utility\SimpleContainer->resolve(‘OC\Authenticati…’)
#24 /var/www/nextcloud/lib/private/ServerContainer.php(145): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’, true)
#25 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query(‘OC\Authenticati…’)
#26 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#27 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#28 /var/www/nextcloud/lib/private/Server.php(374): OC\ServerContainer->query(‘OC\Authenticati…’)
#29 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#30 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘OC\User\Session’)
#31 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query(‘OC\User\Session’)
#32 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#33 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘UserSession’)
#34 /var/www/nextcloud/lib/private/Server.php(1430): OC\ServerContainer->query(‘UserSession’)
#35 /var/www/nextcloud/lib/private/Server.php(688): OC\Server->getUserSession()
#36 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#37 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘OC\App\AppManag…’)
#38 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query(‘OC\App\AppManag…’)
#39 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#40 /var/www/nextcloud/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet(‘AppManager’)
#41 /var/www/nextcloud/lib/private/Server.php(1725): OC\ServerContainer->query(‘AppManager’)
#42 /var/www/nextcloud/lib/private/legacy/app.php(341): OC\Server->getAppManager()
#43 /var/www/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#44 /var/www/nextcloud/lib/base.php(640): OC_App::loadApps(Array)
#45 /var/www/nextcloud/lib/base.php(1081): OC::init()
#46 /var/www/nextcloud/console.php(46): require_once(’/var/www/nextcl…’)
#47 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)
#48 {main}root@vmd44994:/var/www/nextcloud#

Hi @horvan, this question is asked at least once a week so that the search function of this forum, which you find in the upper right corner of the page, should lead you to the right answer :wink:

Possible root causes of this problem:

  • your php configuration doesn’t contain the required database module to be able to access the database.
  • your database instance is down.
  • you’re running your database in a VM which is unreachable or down.

https://help.nextcloud.com/search?q=Failed%20to%20connect%20to%20the%20database%3A%20An%20exception%20occurred%20in%20driver%3A%20could%20not%20find%20driver%20

Got the occ running with sudo -u www-data php7.2 /var/www/nextcloud/occ

but the problem is a differnet one.

I am not sure how to debug the issue. Now one has done any changes and nextcloud crashes randomly after a week or so on two differents servers

Ife no clue how to interprete te following and what to do. Thats wy i am asking

hoping the occ log:xx command would show a better log buto thats not true.

{“reqId”:“meoStA2ay9DOMTybP2Er”,“level”:3,“time”:“2019-11-17T21:04:45+01:00”,“remoteAddr”:“95.114.0.167”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/favicon.ico",“message”:{“Exception”:“OC\HintException”,“Message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:512,“function”:"__construct",“class”:“OC\Memcache\Factory”,“type”:"->",“args”:[“f2449a62cdf7b00babf81c14f3ca078a”,{“class”:“OC\Log”},"\OC\Memcache\APCu","\OC\Memcache\Redis","\OC\Memcache\Redis"]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1535,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:691,“function”:“getMemCacheFactory”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\App\AppManager”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\App\AppManager”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“AppManager”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1725,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“AppManager”]},{“file”:"/var/www/nextcloud/lib/private/legacy/template.php",“line”:284,“function”:“getAppManager”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/index.php",“line”:51,“function”:“printErrorPage”,“class”:“OC_Template”,“type”:"::",“args”:[“Memcache \OC\Memcache\Redis not available for distributed cache”,“Is the matching PHP module installed and enabled?”,503]}],“File”:"/var/www/nextcloud/lib/private/Memcache/Factory.php",“Line”:114,“Hint”:“Is the matching PHP module installed and enabled?”,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36”,“version”:“17.0.1.1”}
{“reqId”:“meoStA2ay9DOMTybP2Er”,“level”:3,“time”:“2019-11-17T21:04:45+01:00”,“remoteAddr”:“95.114.0.167”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/favicon.ico",“message”:{“Exception”:“OC\HintException”,“Message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:512,“function”:"__construct",“class”:“OC\Memcache\Factory”,“type”:"->",“args”:[“f2449a62cdf7b00babf81c14f3ca078a”,{“class”:“OC\Log”},"\OC\Memcache\APCu","\OC\Memcache\Redis","\OC\Memcache\Redis"]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1535,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:691,“function”:“getMemCacheFactory”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\App\AppManager”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\App\AppManager”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“AppManager”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1725,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“AppManager”]},{“file”:"/var/www/nextcloud/lib/private/legacy/app.php",“line”:341,“function”:“getAppManager”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/legacy/util.php",“line”:1445,“function”:“getEnabledApps”,“class”:“OC_App”,“type”:"::",“args”:[false,true]},{“file”:"/var/www/nextcloud/lib/private/legacy/util.php",“line”:721,“function”:“needUpgrade”,“class”:“OC_Util”,“type”:"::",“args”:[{“class”:“OC\SystemConfig”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:653,“function”:“checkServer”,“class”:“OC_Util”,“type”:"::",“args”:[{“class”:“OC\SystemConfig”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1081,“function”:“init”,“class”:“OC”,“type”:"::",“args”:[]},{“file”:"/var/www/nextcloud/index.php",“line”:40,“args”:["/var/www/nextcloud/lib/base.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/lib/private/Memcache/Factory.php",“Line”:114,“Hint”:“Is the matching PHP module installed and enabled?”,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36”,“version”:“17.0.1.1”}
{“reqId”:“meoStA2ay9DOMTybP2Er”,“level”:3,“time”:“2019-11-17T21:04:45+01:00”,“remoteAddr”:“95.114.0.167”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/favicon.ico",“message”:{“Exception”:“OC\HintException”,“Message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:512,“function”:"__construct",“class”:“OC\Memcache\Factory”,“type”:"->",“args”:[“f2449a62cdf7b00babf81c14f3ca078a”,{“class”:“OC\Log”},"\OC\Memcache\APCu","\OC\Memcache\Redis","\OC\Memcache\Redis"]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Memcache\Factory”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1535,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“MemCacheFactory”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:475,“function”:“getMemCacheFactory”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OCP\IURLGenerator”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:161,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OCP\IURLGenerator”]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:114,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“URLGenerator”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:1508,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“URLGenerator”]},{“file”:"/var/www/nextcloud/lib/private/Server.php",“line”:983,“function”:“getURLGenerator”,“class”:“OC\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/nextcloud/lib/private/ServerContainer.php",“line”:120,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OC\Template\JSCombiner”]},{“file”:"/var/www/nextcloud/lib/private/TemplateLayout.php",“line”:339,“function”:“query”,“class”:“OC\ServerContainer”,“type”:"->",“args”:[“OC\Template\JSCombiner”]},{“file”:"/var/www/nextcloud/lib/private/TemplateLayout.php",“line”:169,“function”:“findJavascriptFiles”,“class”:“OC\TemplateLayout”,“type”:"::",“args”:[[“core/js/dist/main”,“js/merged-template-prepend”,“search/js/search”,“core/l10n/de_DE”,“search/l10n/de_DE”,“search/js/searchprovider”,“js/files/fileinfo”,“js/files/client”]]},{“file”:"/var/www/nextcloud/lib/private/legacy/template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->",“args”:[“error”,""]},{“file”:"/var/www/nextcloud/lib/private/Template/Base.php",“line”:131,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/legacy/template.php",“line”:332,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/index.php",“line”:61,“function”:“printExceptionErrorPage”,“class”:“OC_Template”,“type”:"::",“args”:[{“class”:“OC\HintException”},500]}],“File”:"/var/www/nextcloud/lib/private/Memcache/Factory.php",“Line”:114,“Hint”:“Is the matching PHP module installed and enabled?”,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36”,“version”:“17.0.1.1”}
{“reqId”:“L9F3AdGyw7zwNetxPIu2”,“level”:1,“time”:“2019-11-17T21:05:41+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\APCu not available for local cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“L9F3AdGyw7zwNetxPIu2”,“level”:1,“time”:“2019-11-17T21:05:41+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“ywbxdm6HbtffBWkT1Fst”,“level”:1,“time”:“2019-11-17T21:05:46+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\APCu not available for local cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“ywbxdm6HbtffBWkT1Fst”,“level”:1,“time”:“2019-11-17T21:05:46+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“cJSntZOltHcI5WRXQATo”,“level”:1,“time”:“2019-11-17T21:05:58+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\APCu not available for local cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“cJSntZOltHcI5WRXQATo”,“level”:1,“time”:“2019-11-17T21:05:58+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“ZecPGc9GzcMOJpZEGhe7”,“level”:1,“time”:“2019-11-17T21:06:10+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\APCu not available for local cache”,“userAgent”:"–",“version”:“17.0.1.1”}
{“reqId”:“ZecPGc9GzcMOJpZEGhe7”,“level”:1,“time”:“2019-11-17T21:06:10+01:00”,“remoteAddr”:"",“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\Redis not available for distributed cache”,“userAgent”:"–",“version”:“17.0.1.1”}

If you insert a line which contains only 3 backticks (```) before and after a block of log lines they’re much better readable :wink:

You’ve configured Redis as a caching backend which is not reachable. Fix your configuration to get rid of these messages. You find a detailed describtion how the parameters need to be configured in the Nextcloud documentation.

Hm the thing is it was running and if I check status it is still running

● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-11-17 20:48:07 CET; 40min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 623 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Main PID: 704 (redis-server)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/redis-server.service
└─704 /usr/bin/redis-server 127.0.0.1:0

Nov 17 20:48:06 vmd44994.contaboserver.net systemd[1]: Starting Advanced key-value store…
Nov 17 20:48:07 vmd44994.contaboserver.net systemd[1]: redis-server.service: Can’t open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory
Nov 17 20:48:07 vmd44994.contaboserver.net systemd[1]: Started Advanced key-value store.
root@vmd44994:~/lnav-0.8.5# cd /var/www/nextcloud/
root@vmd44994:/var/www/nextcloud# ls
3rdparty AUTHORS console.php core data index.php occ ocs public.php resources settings themes version.php
apps config COPYING cron.php index.html lib ocm-provider ocs-provider remote.php robots.txt status.php updater
root@vmd44994:/var/www/nextcloud# cd config/
root@vmd44994:/var/www/nextcloud/config# ls
CAN_INSTALL config.php config.sample.php
root@vmd44994:/var/www/nextcloud/config# nano config.php
root@vmd44994:/var/www/nextcloud/config# cd /var/run/redis/
root@vmd44994:/var/run/redis# ls
redis-server.pid redis-server.sock

No config changes at all I am not sure how to fix this
Maybe its a bug maybe its my fault

For me everyting seems to be fine.

But nothing works

Data:

    root@vmd44994:~# ps ax | grep redis
    578 ?        Ssl    0:00 /usr/bin/redis-server 127.0.0.1:6379
   1907 ?        Ssl    0:01 redis-server
  5180 ?        Ssl    0:00 /usr/bin/redis-server 127.0.0.1:6379
 12228 pts/0    S+     0:00 grep --color=auto redis
 root@vmd44994:~# systemctl status redis-server
 ● redis-server.service - Advanced key-value store
    Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
    Active: active (running) since Sun 2019-11-17 21:51:45 CET; 10min ago
      Docs: http://redis.io/documentation,
            man:redis-server(1)
   Process: 539 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited,           status=0/SUCCESS)
  Main PID: 578 (redis-server)
     Tasks: 4 (limit: 4915)
    CGroup: /system.slice/redis-server.service
      └─578 /usr/bin/redis-server 127.0.0.1:6379

 Nov 17 21:51:45 vmd44994.contaboserver.net systemd[1]: Starting Advanced key-value store...
 Nov 17 21:51:45 vmd44994.contaboserver.net systemd[1]: redis-server.service: Can't open PID      file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory
 Nov 17 21:51:45 vmd44994.contaboserver.net systemd[1]: Started Advanced key-value store.
 root@vmd44994:~# nano redis.arry
 root@vmd44994:~# cat redis.arry
  array (
     'host' => '/var/run/redis/redis-server.sock',
     'port' => 6379,
     'timeout' => 0.5,
     'dbindex' => 0,
     'password' => 'secretchangedtopostitinforum',
   ),

 root@vmd44994:~# ls -a /var/run/redis/

. … redis-server.pid redis-server.sock redis-server.sock,
root@vmd44994:~# ls -la /var/run/redis/
total 8
drwxr-sr-x 2 redis redis 100 Nov 17 22:02 .
drwxr-xr-x 27 root root 840 Nov 17 22:00 …
-rw-rw---- 1 redis redis 4 Nov 17 21:51 redis-server.pid
srwxrwxrwx 1 redis redis 0 Nov 17 21:51 redis-server.sock
-rw-r–r-- 1 root redis 38 Nov 17 22:02 redis-server.sock,
root@vmd44994:~#

As you can see, the pid file need to be owned by the redis user, that seems to be ok now. Have you checked if the redis user is able to access the directory /var/run/redis and is allowed to create and modify files in it?
BTW, if you want to connect to your Redis server using a socket, you need to set the port to “0”, otherwise Nextcloud won’t work.

The solution to this problem is as complicated as simple. Userd nextcloud-vm and activated automatic update. The automatic update script cant handle more than one php-version an brakes nextcloud redis communication when it runs the first time.

Because the nextclouzd vm is intended for offline use and not for production use on web-servers there are some costumisations to use it on a live server .

The reason for th error is that there is currently no patch to run occ with php7.2 the php version that domes with nextcloud.

Further nextcloud vm by default comes with apache and doesnt support nginx.

The update script seem to break some package dependencies in ubuntu 18.04 this is just an aducated guess and not confirmed.

I fixed it and hadn’t had time to test the php-Version-Fix so this problem is solbed but not reproduced and patched jet.