Nextcloud version (eg, 20.0.5): 25.0.6.1
Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 11 (bullseye) on Raspberry Pi
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.1.18
redis version: ‘6.0.16’
The issue you are facing:
I’m running NextCloudPi on a Raspberry Pi 4, and being a good little doobie I try to regularly update my system with new patches (e.g. apt get update/upgrade). I’ve never had any problems until now - after upgrading this morning and rebooting I now get a ‘Service unavailable’ error when attempting to connect. I took a look and it seems like it might be related to redis, but I’m not a redis expert. I tried to do some research on the various possible issues but I just got more confused, so I’m hoping someone can help.
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
- Unknown
The output of your Nextcloud log in Admin > Logging:
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"dashboard","method":"","url":"--","message":"Error during app loading: Connection lost","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Connection lost","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Connection lost","exception":{},"CustomMessage":"Error during app loading: Connection lost"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"nextcloudpi","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"oauth2","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"privacy","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"serverinfo","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '******',
'secret' => '*****',
'trusted_domains' =>
array (
0 => 'localhost',
7 => 'nextcloudpi',
5 => 'nextcloudpi.local',
8 => 'nextcloudpi.lan',
3 => 'nextcloudpi',
11 => '******',
1 => '******',
14 => 'nextcloudpi',
20 => 'local',
21 => '******.ddns.net',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '25.0.6.1',
'overwrite.cli.url' => 'https://nextcloudpi/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => '******',
'installed' => true,
'instanceid' => 'ocqhf0oh40r2',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => '******',
),
'tempdirectory' => '/var/www/nextcloud/data/tmp',
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'admin',
'mail_domain' => 'ownyourbits.com',
'preview_max_x' => NULL,
'preview_max_y' => NULL,
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
11 => '127.0.0.1',
12 => '::1',
13 => 'nextcloudpi',
14 => '',
),
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
1 => 'Users',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'maintenance' => false,
'preview_max_memory' => 1024,
'preview_max_filesize_image' => 200,
'theme' => '',
'loglevel' => 2,
);
The output of your Apache/nginx/system log in /var/log/____
:
Apache error.log:
[Sat May 06 10:19:43.390829 2023] [ssl:warn] [pid 1435:tid 547982898240] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat May 06 10:19:43.578025 2023] [ssl:warn] [pid 1467:tid 547982898240] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat May 06 10:19:43.608096 2023] [mpm_event:notice] [pid 1467:tid 547982898240] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sat May 06 10:19:43.608460 2023] [core:notice] [pid 1467:tid 547982898240] AH00094: Command line: '/usr/sbin/apache2'
Apache nc-error.log
[Sat May 06 10:19:53.413537 2023] [proxy_fcgi:error] [pid 1470:tid 547658649984] [client 192.241.211.44:41860] AH01067: Failed to read FastCGI header
[Sat May 06 10:19:53.414704 2023] [proxy_fcgi:error] [pid 1470:tid 547658649984] (104)Connection reset by peer: [client 192.241.211.44:41860] AH01075: Error dispatching request to :
[Sat May 06 10:19:53.857331 2023] [proxy_fcgi:error] [pid 1469:tid 547751076224] [client 192.168.1.1:12182] AH01067: Failed to read FastCGI header
[Sat May 06 10:19:53.857448 2023] [proxy_fcgi:error] [pid 1469:tid 547751076224] (104)Connection reset by peer: [client 192.168.1.1:12182] AH01075: Error dispatching request to :
[Sat May 06 10:19:54.390908 2023] [proxy_fcgi:error] [pid 1469:tid 547667042688] [client 192.168.1.1:12185] AH01067: Failed to read FastCGI header
[Sat May 06 10:19:54.391024 2023] [proxy_fcgi:error] [pid 1469:tid 547667042688] (104)Connection reset by peer: [client 192.168.1.1:12185] AH01075: Error dispatching request to :
[Sat May 06 10:20:23.899684 2023] [proxy_fcgi:error] [pid 1469:tid 547969597824] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:23.899772 2023] [proxy_fcgi:error] [pid 1469:tid 547969597824] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:26.177758 2023] [proxy_fcgi:error] [pid 1469:tid 547767894400] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header, referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:26.177865 2023] [proxy_fcgi:error] [pid 1469:tid 547767894400] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to : , referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:27.347514 2023] [proxy_fcgi:error] [pid 1469:tid 547952812416] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:27.347591 2023] [proxy_fcgi:error] [pid 1469:tid 547952812416] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:28.583995 2023] [proxy_fcgi:error] [pid 1469:tid 547961205120] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:28.584123 2023] [proxy_fcgi:error] [pid 1469:tid 547961205120] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:32.374868 2023] [proxy_fcgi:error] [pid 1469:tid 547936027008] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header, referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:32.375020 2023] [proxy_fcgi:error] [pid 1469:tid 547936027008] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to : , referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:35.911741 2023] [proxy_fcgi:error] [pid 1469:tid 547927634304] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:35.911870 2023] [proxy_fcgi:error] [pid 1469:tid 547927634304] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:37.045595 2023] [proxy_fcgi:error] [pid 1469:tid 547919241600] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:37.045763 2023] [proxy_fcgi:error] [pid 1469:tid 547919241600] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:38.088331 2023] [proxy_fcgi:error] [pid 1469:tid 547877212544] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:38.088438 2023] [proxy_fcgi:error] [pid 1469:tid 547877212544] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:38.915575 2023] [proxy_fcgi:error] [pid 1469:tid 547902439808] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:38.915717 2023] [proxy_fcgi:error] [pid 1469:tid 547902439808] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:39.679571 2023] [proxy_fcgi:error] [pid 1469:tid 547894030720] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:39.679670 2023] [proxy_fcgi:error] [pid 1469:tid 547894030720] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:40.097454 2023] [proxy:error] [pid 1469:tid 547339891072] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:7867 (127.0.0.1:7867) failed
[Sat May 06 10:20:40.097573 2023] [proxy_http:error] [pid 1469:tid 547339891072] [client 127.0.0.1:57668] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Sat May 06 10:20:40.381370 2023] [proxy_fcgi:error] [pid 1469:tid 547910848896] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:40.381465 2023] [proxy_fcgi:error] [pid 1469:tid 547910848896] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:41.045408 2023] [proxy_fcgi:error] [pid 1469:tid 547885621632] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:41.045485 2023] [proxy_fcgi:error] [pid 1469:tid 547885621632] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:41.755012 2023] [proxy_fcgi:error] [pid 1469:tid 547868803456] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:41.755112 2023] [proxy_fcgi:error] [pid 1469:tid 547868803456] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:42.420088 2023] [proxy_fcgi:error] [pid 1469:tid 547860394368] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:42.420184 2023] [proxy_fcgi:error] [pid 1469:tid 547860394368] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:43.125305 2023] [proxy_fcgi:error] [pid 1469:tid 547851985280] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:43.125408 2023] [proxy_fcgi:error] [pid 1469:tid 547851985280] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:43.831110 2023] [proxy_fcgi:error] [pid 1469:tid 547843576192] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header
[Sat May 06 10:20:43.831250 2023] [proxy_fcgi:error] [pid 1469:tid 547843576192] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to :
[Sat May 06 10:20:45.874472 2023] [proxy_fcgi:error] [pid 1469:tid 547835167104] [remote 192.168.1.1:12209] AH01067: Failed to read FastCGI header, referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:45.874589 2023] [proxy_fcgi:error] [pid 1469:tid 547835167104] (104)Connection reset by peer: [remote 192.168.1.1:12209] AH01075: Error dispatching request to : , referer: https://******.ddns.net/index.php/apps/photos/service-worker.js
[Sat May 06 10:20:51.259456 2023] [proxy:error] [pid 1469:tid 547650257280] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:7867 (127.0.0.1:7867) failed
[Sat May 06 10:20:51.259592 2023] [proxy_http:error] [pid 1469:tid 547650257280] [client 127.0.0.1:53720] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Sat May 06 10:21:02.279423 2023] [proxy_fcgi:error] [pid 1470:tid 547633471872] [client 192.168.1.1:12221] AH01067: Failed to read FastCGI header
[Sat May 06 10:21:02.279547 2023] [proxy_fcgi:error] [pid 1470:tid 547633471872] (104)Connection reset by peer: [client 192.168.1.1:12221] AH01075: Error dispatching request to :
[Sat May 06 10:21:02.445256 2023] [proxy_fcgi:error] [pid 1469:tid 547633471872] [client 192.168.1.1:12223] AH01067: Failed to read FastCGI header
[Sat May 06 10:21:02.445363 2023] [proxy_fcgi:error] [pid 1469:tid 547633471872] (104)Connection reset by peer: [client 192.168.1.1:12223] AH01075: Error dispatching request to :
[Sat May 06 10:21:02.561177 2023] [proxy:error] [pid 1470:tid 547583115648] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:7867 (127.0.0.1:7867) failed
[Sat May 06 10:21:02.561273 2023] [proxy_http:error] [pid 1470:tid 547583115648] [client 127.0.0.1:47856] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Sat May 06 10:21:13.740033 2023] [proxy:error] [pid 1470:tid 547599901056] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:7867 (127.0.0.1:7867) failed
[Sat May 06 10:21:13.740136 2023] [proxy_http:error] [pid 1470:tid 547599901056] [client 127.0.0.1:52270] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Sat May 06 10:21:24.865034 2023] [proxy:error] [pid 1469:tid 547197280640] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:7867 (127.0.0.1:7867) failed
[Sat May 06 10:21:24.865139 2023] [proxy_http:error] [pid 1469:tid 547197280640] [client 127.0.0.1:45550] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Sat May 06 10:21:29.813722 2023] [proxy_fcgi:error] [pid 1470:tid 547432145280] [client 192.168.1.1:12231] AH01067: Failed to read FastCGI header
[Sat May 06 10:21:29.813835 2023] [proxy_fcgi:error] [pid 1470:tid 547432145280] (104)Connection reset by peer: [client 192.168.1.1:12231] AH01075: Error dispatching request to :
[Sat May 06 10:21:29.947559 2023] [proxy_fcgi:error] [pid 1470:tid 546056429952] [client 192.168.1.1:12232] AH01067: Failed to read FastCGI header
[Sat May 06 10:21:29.947658 2023] [proxy_fcgi:error] [pid 1470:tid 546056429952] (104)Connection reset by peer: [client 192.168.1.1:12232] AH01075: Error dispatching request to :
[Sat May 06 10:21:30.908147 2023] [proxy_fcgi:error] [pid 1470:tid 547751076224] [client 192.168.1.1:12233] AH01067: Failed to read FastCGI header
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"dashboard","method":"","url":"--","message":"Error during app loading: Connection lost","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Connection lost","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Connection lost","exception":{},"CustomMessage":"Error during app loading: Connection lost"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"nextcloudpi","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"oauth2","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"privacy","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"LGu1g3d2pKcgaGHI0Ykd","level":4,"time":"2023-05-06T14:20:29+00:00","remoteAddr":"","user":"--","app":"serverinfo","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"25.0.6.1","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":173,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":120,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","exception":{},"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
I’m not super clear on how redis interacts with NC, but I took at stab at gathering some additional info:
======================================================================
Verified redis service is running:
$ sudo service redis-service status
redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-05-06 10:20:29 EDT; 24min ago
Docs: https://redis.io/docs/,
man:redis-server(1)
Main PID: 3023 (redis-server)
Status: “Ready to accept connections”
Tasks: 5 (limit: 8754)
CPU: 6.592s
CGroup: /system.slice/redis-server.service
└─3023 /usr/bin/redis-server 127.0.0.1:0
May 06 10:20:29 nextcloudpi systemd[1]: Starting Advanced key-value store…
May 06 10:20:29 nextcloudpi systemd[1]: Started Advanced key-value store.
Attempted to connect to redis-cli and got:
Could not connect to redis at 127.0.0.1: Connection refused
Contents of redis-server.log:
.
.-__ ''-._ _.-
.
. ‘’-._ Redis 6.0.16 (00000000/0) 64 bit
.- .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.
-.|'_.-'| Port: 0 |
-. ._ / _.-' | PID: 3023
-._ -._
-./ .-’ .-’
|-._
-. -.__.-' _.-'_.-'| |
-.-._ _.-'_.-' | http://redis.io
-._ -._
-..-'.-’ .-’
|-._
-. -.__.-' _.-'_.-'| |
-.-._ _.-'_.-' |
-._ -._
-..-‘_.-’ _.-’
-._
-..-’ _.-’
-._ _.-'
-..-’
3023:M 06 May 2023 10:20:29.619 # Server initialized
3023:M 06 May 2023 10:20:29.626 * Loading RDB produced by version 6.0.16
3023:M 06 May 2023 10:20:29.626 * RDB age 0 seconds
3023:M 06 May 2023 10:20:29.626 * RDB memory usage when created 5.20 Mb
3023:M 06 May 2023 10:20:29.673 * DB loaded from disk: 0.047 seconds
3023:M 06 May 2023 10:20:29.674 * The server is now ready to accept connections at /var/run/redis/redis.sock
3023:M 06 May 2023 10:25:30.063 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:25:30.066 * Background saving started by pid 3836
3836:C 06 May 2023 10:25:30.233 * DB saved on disk
3836:C 06 May 2023 10:25:30.235 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:25:30.268 * Background saving terminated with success
3023:M 06 May 2023 10:30:31.018 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:30:31.019 * Background saving started by pid 4468
4468:C 06 May 2023 10:30:31.119 * DB saved on disk
4468:C 06 May 2023 10:30:31.121 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:30:31.220 * Background saving terminated with success
3023:M 06 May 2023 10:35:32.091 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:35:32.092 * Background saving started by pid 5132
5132:C 06 May 2023 10:35:32.192 * DB saved on disk
5132:C 06 May 2023 10:35:32.194 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:35:32.293 * Background saving terminated with success
3023:M 06 May 2023 10:40:33.014 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:40:33.017 * Background saving started by pid 6075
6075:C 06 May 2023 10:40:33.139 * DB saved on disk
6075:C 06 May 2023 10:40:33.144 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:40:33.219 * Background saving terminated with success
3023:M 06 May 2023 10:45:34.070 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:45:34.073 * Background saving started by pid 6904
6904:C 06 May 2023 10:45:34.193 * DB saved on disk
6904:C 06 May 2023 10:45:34.194 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:45:34.275 * Background saving terminated with success
3023:M 06 May 2023 10:50:35.053 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:50:35.055 * Background saving started by pid 7725
7725:C 06 May 2023 10:50:35.152 * DB saved on disk
7725:C 06 May 2023 10:50:35.153 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:50:35.155 * Background saving terminated with success
3023:M 06 May 2023 10:55:36.077 * 10 changes in 300 seconds. Saving…
3023:M 06 May 2023 10:55:36.078 * Background saving started by pid 8306
8306:C 06 May 2023 10:55:36.177 * DB saved on disk
8306:C 06 May 2023 10:55:36.178 * RDB: 0 MB of memory used by copy-on-write
3023:M 06 May 2023 10:55:36.279 * Background saving terminated with success
======================================================================
Contents of /etc/redis/redis.conf (minus comment lines):
Redis configuration file
bind 127.0.0.1 ::1
port 0
tcp-backlog 511
unixsocket /var/run/redis/redis.sock
unixsocketperm 770
timeout 0
tcp-keepalive 300
supervised no
pidfile /var/run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
databases 16
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
dbfilename dump.rdb
rdb-del-sync-files no
dir /var/lib/redis
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-diskless-load disabled
repl-disable-tcp-nodelay no
replica-priority 100
acllog-max-len 128
requirepass ******
rename-command CONFIG “”
maxmemory-policy allkeys-lru
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
lazyfree-lazy-user-del no
oom-score-adj no
oom-score-adj-values 0 200 800
appendonly no
appendfilename “appendonly.aof”
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events “”
list-compress-depth 0
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
rdb-save-incremental-fsync yes
jemalloc-bg-thread yes
maxmemory 0