Nextcloud unresponsive after a while. Works after reboot

Nextcloud version (eg, 29.0.5): 28.0.6
Operating system and version (eg, Ubuntu 29.04): Ubuntu 22.04.4 LTS
Nextcloud AIO.

The issue you are facing:

Everything works fine for a while, then there is not possible to post messages in Talk, see previews or open files in Files. And connections to Nextcloud are really slow.

There seems to be an issue with Redis and problems with fetching Collabora capabilities if looking at the logs. Getting a ton of ConnectExceptions. See log below

Im running Nextcloud AIO behind a reverse proxy configured as per github project page instructions.
has worked for a long time now, but a week ago or so, this problem stared.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Started after update to latest version a week ago or so.
  2. Just start nextcloud.

The output of your Nextcloud log in Admin > Logging:

RedisException
read error on connection to nextcloud-aio-redis:6379
Exception thrown: RedisException

10 juni 2024 19:51:07	

Error	no app in context	
RedisException
read error on connection to nextcloud-aio-redis:6379
Exception thrown: RedisException

10 juni 2024 19:51:07	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:05	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:04	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:04	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:04	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:02	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:01	

Error	richdocuments	
ConnectException
cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities
Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.mydomain.com/hosting/capabilities

10 juni 2024 19:51:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => 'asdfgasdf',
    'port' => XXXX,
  ),
  'overwritehost' => 'nextcloud.mydomain.com',
  'overwriteprotocol' => 'https',
  'passwordsalt' => 'zxcsdaffdfzxczxczxczxczc',
  'secret' => 'zxczxczxczxczxcxzczxczxczxczxc',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'nextcloud.mydomain.com',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '28.0.6.1',
  'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => 'zxczxczxczxczxczxcx',
  'installed' => true,
  'instanceid' => 'zxczxczxcxc',
  'loglevel' => '2',
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => '10485760',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    0 => 'OC\\Preview\\Imaginary',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => '30',
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'htaccess.RewriteBase' => '/',
  'files_external_allow_create_new_local' => false,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
    2 => '192.168.1.xxx',   (NOTE: IP of proxy)
  10 => '172.21.0.1/32',
  ),
  'allow_local_remote_servers' => true,
  'maintenance' => false,
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'mydomain.com',
  'mail_smtpauthtype' => 'xxx',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxxx',
  'mail_smtpport' => 'xxx',
  'mail_smtpname' => 'xxxxxx',
  'mail_smtppassword' => 'xxxxxxxxxxxx',
  'default_phone_region' => 'XX',
  'updatedirectory' => '/nc-updater',
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'davstorage.request_timeout' => 3600,
  'dbpersistent' => false,
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'appsallowlist' => false,
  'maintenance_window_start' => 100,
  'preview_imaginary_key' => 'xxxzczxczxczxczxczxczxczxczxcxc',
  'auth.bruteforce.protection.enabled' => true,
  'ratelimit.protection.enabled' => true,
);

The output of your Apache/nginx/system log in /var/log/____:


[Mon Jun 10 17:54:08.267814 2024] [proxy_http:error] [pid 20894:tid 140198275167808] [remote xxx.xxx.xxx.xxx:37270] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:08.701723 2024] [proxy:error] [pid 20754:tid 140198134412864] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:08.701780 2024] [proxy_http:error] [pid 20754:tid 140198134412864] [client 192.168.1.1:56438] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:09.057643 2024] [proxy:error] [pid 20894:tid 140198426424896] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:09.057699 2024] [proxy_http:error] [pid 20894:tid 140198426424896] [remote xxx.xxx.xxx.xxx:54540] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:09.071191 2024] [proxy:error] [pid 20894:tid 140198317213248] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:09.071228 2024] [proxy_http:error] [pid 20894:tid 140198317213248] [remote xxx.xxx.xxx.xxx:57246] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:09.257437 2024] [proxy:error] [pid 20754:tid 140198367667776] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:09.257505 2024] [proxy_http:error] [pid 20754:tid 140198367667776] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:10.269084 2024] [proxy:error] [pid 20894:tid 140198067271232] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:10.269668 2024] [proxy_http:error] [pid 20894:tid 140198067271232] [client 192.168.1.1:33296] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:13.214505 2024] [proxy:error] [pid 20754:tid 140198317213248] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:13.214569 2024] [proxy_http:error] [pid 20754:tid 140198317213248] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.089870 2024] [proxy:error] [pid 20754:tid 140198092449344] (111)Connection refused: AH00957: ws: attempt to connect to 192.168.1.xxx:XXXXX (*) failed
[Mon Jun 10 17:54:14.312708 2024] [proxy_http:error] [pid 20754:tid 140198451603008] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.312941 2024] [proxy:error] [pid 20754:tid 140198426424896] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:14.312963 2024] [proxy_http:error] [pid 20754:tid 140198426424896] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.313443 2024] [proxy:error] [pid 20754:tid 140198283576896] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:14.313463 2024] [proxy_http:error] [pid 20754:tid 140198283576896] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.338372 2024] [proxy:error] [pid 20754:tid 140198266758720] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:14.338418 2024] [proxy_http:error] [pid 20754:tid 140198266758720] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.464697 2024] [proxy:error] [pid 20754:tid 140198342440512] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:14.464753 2024] [proxy_http:error] [pid 20754:tid 140198342440512] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:14.854511 2024] [proxy:error] [pid 20835:tid 140198426424896] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:14.854567 2024] [proxy_http:error] [pid 20835:tid 140198426424896] [remote 192.168.1.1:60044] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:15.007825 2024] [proxy:error] [pid 20894:tid 140198418032192] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:15.007882 2024] [proxy_http:error] [pid 20894:tid 140198418032192] [remote xxx.xxx.xxx.xxx:37278] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:16.051145 2024] [proxy:error] [pid 20835:tid 140198317213248] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:16.051207 2024] [proxy_http:error] [pid 20835:tid 140198317213248] [remote xxx.xxx.xxx.xxx:54547] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:16.071087 2024] [proxy:error] [pid 20754:tid 140198376068672] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:16.071132 2024] [proxy_http:error] [pid 20754:tid 140198376068672] [remote xxx.xxx.xxx.xxx:57268] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:16.206735 2024] [proxy:error] [pid 20754:tid 140198384461376] (111)Connection refused: AH00957: http: attempt to connect to 192.168.1.xxx:XXXXX (192.168.1.xxx) failed
[Mon Jun 10 17:54:16.206791 2024] [proxy_http:error] [pid 20754:tid 140198384461376] [remote xxx.xxx.xxx.xxx:64814] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:17.239092 2024] [proxy:error] [pid 20894:tid 140198092449344] (111)Connection refused: AH00957: ws: attempt to connect to 192.168.1.xxx:XXXXX (*) failed
[Mon Jun 10 17:54:17.239155 2024] [proxy_http:error] [pid 20894:tid 140198092449344] [client xxx.xxx.xxx.xxx:64818] AH01114: HTTP: failed to make connection to backend: 192.168.1.xxx
[Mon Jun 10 17:54:42.715588 2024] [proxy:warn] [pid 20894:tid 140197991736896] [client 192.168.1.1:43872] AH01136: Unescaped URL path matched ProxyPass; ignoring unsafe nocanon
[Mon Jun 10 17:54:46.126080 2024] [proxy:warn] [pid 20894:tid 140197974951488] [client 192.168.1.1:43882] AH01136: Unescaped URL path matched ProxyPass; ignoring unsafe nocanon
[Mon Jun 10 17:54:46.165483 2024] [proxy:warn] [pid 20894:tid 140198249915968] [client 192.168.1.1:43876] AH01136: Unescaped URL path matched ProxyPass; ignoring unsafe nocanon