Nextcloud not working anymore during major updates [NCP]

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26.0.13
Operating system and version (eg, Ubuntu 20.04): Raspbian 12 (bookworm)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.59
PHP version (eg, 7.4): PHP 8.2

The issue you are facing:
I was updating major version from 20 to latest, which was until 25 working fine.
When trying to update to 26 it was telling me that PHP >= 8 is needed, so I installed it via apt-get (which I learned later was not the right way).
At this point NC 25 was not working anymore => I got error related to wrong PHP version for NC25. But guided update to NC 26 was not possible as NC was not running.
So I purged PHP 8 installation via apt-get and used the PHP-updater script with proposed stepwise take over of the configuration from PHP 7.4. to PHP 8.2. Then I did a manual upgrade to NC 26.0.13 as described in manual.
But now I can’t get NC back running, I see that:
Nextcloud check error
HPB service down
Port 80 closed
Port 443 closed

I think the both ports closed because I don’t have port forwarding, so this should not be the main issue i assume? I also saw the issue with certificate but this was there

I tried to get further information why Nextcloud check is in error and HPD Service down and what can I do about it but. I found few info on how to solve but unfortunately it didn’t worked for me and I couldn’t find a step by step problem investigation guide on how to continue…

Would be great if someone could give me a starting point where exactly to look first and how to continue the investigation.

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

NextcloudPi diagnostics

NextcloudPi version  v1.54.2
OS                   Raspbian GNU/Linux 12. 5.10.103-v7l+ (armv7l)
automount            yes
USB devices          sda 
datadir              /mnt/storage/nextCloud/ncdata
data in SD           no
data filesystem      ext2/ext3
data disk usage      1.5T/2.7T
rootfs usage         20G/27G
swapfile             /var/swap
dbdir                /mnt/storage/nextCloud/database
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
Internet check       ok
Public IPv4          ***REMOVED SENSITIVE VALUE***
Public IPv6          ***REMOVED SENSITIVE VALUE***
Port 80              closed
Port 443             closed
IP                   ***REMOVED SENSITIVE VALUE***
Gateway              ***REMOVED SENSITIVE VALUE***
Interface            end0
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               1:42

Nextcloud configuration

An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:140
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/nextcloud/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery()
#4 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/nextcloud/lib/private/AppConfig.php(421): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/nextcloud/lib/private/AppConfig.php(187): OC\AppConfig->loadConfigValues()
#7 /var/www/nextcloud/lib/private/AppConfig.php(377): OC\AppConfig->getApps()
#8 /var/www/nextcloud/lib/private/legacy/OC_App.php(976): OC\AppConfig->getValues()
#9 /var/www/nextcloud/lib/private/Server.php(735): OC_App::getAppVersions()
#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#11 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#12 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#13 /var/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#14 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#15 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get()
#16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#17 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#19 /var/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#20 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#21 /var/www/nextcloud/lib/private/Server.php(1116): OC\AppFramework\Utility\SimpleContainer->get()
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#23 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#25 /var/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#26 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#27 /var/www/nextcloud/lib/private/Server.php(2077): OC\AppFramework\Utility\SimpleContainer->get()
#28 /var/www/nextcloud/lib/private/Files/View.php(120): OC\Server->getLockingProvider()
#29 /var/www/nextcloud/lib/private/Server.php(469): OC\Files\View->__construct()
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#31 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#32 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#33 /var/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#34 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#35 /var/www/nextcloud/lib/private/Server.php(1479): OC\AppFramework\Utility\SimpleContainer->get()
#36 /var/www/nextcloud/lib/base.php(629): OC\Server->boot()
#37 /var/www/nextcloud/lib/base.php(1171): OC::init()
#38 /var/www/nextcloud/console.php(48): require_once('...')
#39 /var/www/nextcloud/occ(11): require_once('...')
#40 {main}
HTTPd logs

[Fri May 10 10:00:49.789991 2024] [ssl:error] [pid 15905] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri May 10 10:00:49.800590 2024] [http2:warn] [pid 15905] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Fri May 10 10:00:49.810579 2024] [mpm_prefork:notice] [pid 15905] AH00163: Apache/2.4.59 (Raspbian) OpenSSL/3.0.11 configured -- resuming normal operations
[Fri May 10 10:00:49.810689 2024] [core:notice] [pid 15905] AH00094: Command line: '/usr/sbin/apache2'
[Fri May 10 10:01:55.244475 2024] [proxy_fcgi:error] [pid 15949] [client 192.168.178.33:35792] AH01067: Failed to read FastCGI header
[Fri May 10 10:01:55.245315 2024] [proxy_fcgi:error] [pid 15949] (104)Connection reset by peer: [client 192.168.178.33:35792] AH01075: Error dispatching request to :4443: 
[Fri May 10 10:01:55.338809 2024] [proxy_fcgi:error] [pid 15913] [client 192.168.178.33:35746] AH01067: Failed to read FastCGI header
[Fri May 10 10:01:55.338890 2024] [proxy_fcgi:error] [pid 15913] (104)Connection reset by peer: [client 192.168.178.33:35746] AH01075: Error dispatching request to :4443: 
[Fri May 10 10:01:55.339992 2024] [proxy_fcgi:error] [pid 15907] [client 192.168.178.33:35718] AH01067: Failed to read FastCGI header
[Fri May 10 10:01:55.340122 2024] [proxy_fcgi:error] [pid 15907] (104)Connection reset by peer: [client 192.168.178.33:35718] AH01075: Error dispatching request to :4443: 
[Fri May 10 10:01:55.408680 2024] [mpm_prefork:notice] [pid 15905] AH00170: caught SIGWINCH, shutting down gracefully
[Fri May 10 10:03:52.228455 2024] [ssl:warn] [pid 1410] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri May 10 10:03:52.236884 2024] [ssl:error] [pid 1410] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi-4 / issuer: CN=raspberrypi-4 / serial: 6337523BA2AE6DA9BD8C5733C02E7B611E1FE351 / notbefore: Feb  9 20:41:56 2021 GMT / notafter: Feb  7 20:41:56 2031 GMT]
[Fri May 10 10:03:52.236940 2024] [ssl:error] [pid 1410] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri May 10 10:03:52.314047 2024] [ssl:warn] [pid 1579] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri May 10 10:03:52.315734 2024] [ssl:error] [pid 1579] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi-4 / issuer: CN=raspberrypi-4 / serial: 6337523BA2AE6DA9BD8C5733C02E7B611E1FE351 / notbefore: Feb  9 20:41:56 2021 GMT / notafter: Feb  7 20:41:56 2031 GMT]
[Fri May 10 10:03:52.315775 2024] [ssl:error] [pid 1579] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri May 10 10:03:52.322471 2024] [http2:warn] [pid 1579] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Fri May 10 10:03:52.333937 2024] [mpm_prefork:notice] [pid 1579] AH00163: Apache/2.4.59 (Raspbian) OpenSSL/3.0.11 configured -- resuming normal operations
[Fri May 10 10:03:52.334049 2024] [core:notice] [pid 1579] AH00094: Command line: '/usr/sbin/apache2'

Database logs

2024-05-06 18:38:08 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2024-05-06 18:38:08 0 [Note] InnoDB: FTS optimize thread exiting.
2024-05-06 18:38:08 0 [Note] Event Scheduler: Purging the queue. 0 events
2024-05-06 18:38:09 0 [Note] InnoDB: Starting shutdown...
2024-05-06 18:38:09 0 [Note] InnoDB: Dumping buffer pool(s) to /mnt/storage/nextCloud/database/ib_buffer_pool
2024-05-06 18:38:09 0 [Note] InnoDB: Instance 0, restricted to 16382 pages due to innodb_buf_pool_dump_pct=25
2024-05-06 18:38:09 0 [Note] InnoDB: Buffer pool(s) dump completed at 240506 18:38:09
2024-05-06 18:38:11 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2024-05-06 18:38:11 0 [Note] InnoDB: Shutdown completed; log sequence number 149436058438; transaction id 971867536
2024-05-06 18:38:11 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs

{"reqId":"IcYCXRsLULQ3iASQPOnP","level":2,"time":"2024-05-09T03:50:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"NKdJpul46GQeq2eRJCUY","level":2,"time":"2024-05-09T04:05:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"kQAziW9w4o0NuyrlcU7o","level":2,"time":"2024-05-09T04:20:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"9wK3wpdJ8zjPFt3BHl5S","level":2,"time":"2024-05-09T04:35:02+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"tLlT0kTIlJft89zFbVJv","level":2,"time":"2024-05-09T04:50:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"w7K2FlrL0TrLCyx1ooXx","level":2,"time":"2024-05-09T05:05:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"BLbY0EGbaoPY2m9PiheT","level":2,"time":"2024-05-09T05:20:04+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"GNk0Vi2GLGndkgZyPEWu","level":2,"time":"2024-05-09T05:35:04+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"Zvppwnw97UEja5BPGyYT","level":2,"time":"2024-05-09T05:50:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"fVpbTnNjnL0C7haIYbVg","level":2,"time":"2024-05-09T06:05:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"OvWKynf56h7GnDyAIbmI","level":2,"time":"2024-05-09T06:20:03+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"W3Rz4vXhe4ajdslpCoQs","level":2,"time":"2024-05-09T06:35:17+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"Plud7TUqLS0HVq7442xv","level":2,"time":"2024-05-09T06:50:02+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"O7g5YvWHF2disLOLvmpV","level":2,"time":"2024-05-09T07:05:04+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}
{"reqId":"Zjx2sPBUdhgx9x61eVslPwAAAAo","level":2,"time":"2024-05-09T07:09:40+00:00","remoteAddr":"192.168.178.33","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: ncp (Remote IP: 192.168.178.33)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"25.0.13.2","data":[]}
{"reqId":"Zjx2vAyRBr_U-TcKGXGayAAAAAk","level":2,"time":"2024-05-09T07:09:52+00:00","remoteAddr":"192.168.178.33","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: ncp (Remote IP: 192.168.178.33)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"25.0.13.2","data":[]}
{"reqId":"Zjx25PBUdhgx9x61eVslSQAAAAo","level":2,"time":"2024-05-09T07:10:32+00:00","remoteAddr":"192.168.178.33","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: ncp (Remote IP: 192.168.178.33)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"25.0.13.2","data":[]}
{"reqId":"Zjx28sPyzyhnfu0M2q_Z8AAAAAU","level":2,"time":"2024-05-09T07:10:46+00:00","remoteAddr":"192.168.178.33","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: ncp (Remote IP: 192.168.178.33)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"25.0.13.2","data":[]}
{"reqId":"Zjx3AzSkF5p6D2hk9zWGxQAAAAI","level":2,"time":"2024-05-09T07:11:04+00:00","remoteAddr":"192.168.178.33","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: alex (Remote IP: 192.168.178.33)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"25.0.13.2","data":[]}
{"reqId":"wnHu9pnFiFss9AIu4LWd","level":2,"time":"2024-05-09T07:20:02+00:00","remoteAddr":"","user":"--","app":"fulltextsearch","method":"","url":"--","message":"Exception while cronIndex: OCA\\FullTextSearch\\Exceptions\\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform","userAgent":"--","version":"25.0.13.2","data":{"app":"fulltextsearch","level":"2"}}

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',
    11 => '***,
    1 => '192.168.178.150',
    2 => '192.168.178.150',
    3 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    20 => '***',
    21 => '***.duckdns.org',
  ),
  'datadirectory' => '/mnt/storage/nextCloud/ncdata',
  'dbtype' => 'mysql',
  'version' => '25.0.13.2',
  'overwrite.cli.url' => 'https://localhost/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '***',
  'installed' => true,
  'instanceid' => 'oc0zcx0v23ym',
  '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' => '/mnt/storage/nextCloud/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/mnt/storage/nextCloud/ncdata/nextcloud.log',
  'htaccess.RewriteBase' => '/',
  'trusted_proxies' => 
  array (
    0 => '***',
    11 => '127.0.0.1',
    12 => '::1',
    14 => '127.0.0.1',
  ),
  'theme' => '',
  'loglevel' => 2,
);

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":"ZjpZ6IkjsVqGRvzGvj1-4gAARgs","level":3,"time":"2024-05-07T16:42:16+00:00","remoteAddr":"::1","user":"--","app":"index","method":"GET","url":"/index.php/apps/notify_push/test/version","message":"read error on connection to /var/run/redis/redis.sock:0","userAgent":"--","version":"25.0.13.2","exception":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":507,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":598,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":74,"function":"getAppInfo","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":281,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":91,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":676,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1150,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":34,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"CustomMessage":"--"}}
{"reqId":"ZjpZ6IkjsVqGRvzGvj1-4gAARgs","level":3,"time":"2024-05-07T16:42:17+00:00","remoteAddr":"::1","user":"--","app":"core","method":"GET","url":"/index.php/apps/notify_push/test/version","message":"read error on connection to /var/run/redis/redis.sock:0","userAgent":"--","version":"25.0.13.2","exception":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":48,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":507,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":598,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":74,"function":"getAppInfo","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":281,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":91,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":676,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1150,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":34,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":48,"CustomMessage":"--"}}

What does FW status tell you?
What does Apache2 status tell you?
Checking PHP version that is actually running?
Did you install all required PHP modules?
What does Redis status tell you?

Is the database running?

Hi,
trying to gather the requested info.
pls let me know if sth more specific needed (and how to provide it).

What does FW status tell you?

checked with nmap, locally both ports opened:
PORT    STATE SERVICE
80/tcp  open  http
443/tcp open  https

via duckdns.org port 80 seems to be closed, this I need to check further. but at least locally I should get access?
PORT    STATE  SERVICE
80/tcp  closed http
443/tcp open   https

What does Apache2 status tell you?

pi@pi:~ $ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enable>
     Active: active (running) since Fri 2024-05-10 10:03:52 CEST; 23h ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1312 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCC>
    Process: 6225 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/>
   Main PID: 1579 (apache2)
      Tasks: 21 (limit: 4915)
        CPU: 13.659s
     CGroup: /system.slice/apache2.service
             ├─ 1579 /usr/sbin/apache2 -k start
             ├─ 5128 /usr/sbin/apache2 -k start
             ├─ 6249 /usr/sbin/apache2 -k start
             ├─ 6250 /usr/sbin/apache2 -k start
             ├─ 6252 /usr/sbin/apache2 -k start
             ├─ 6254 /usr/sbin/apache2 -k start
             ├─ 6258 /usr/sbin/apache2 -k start
             ├─21968 /usr/sbin/apache2 -k start
             ├─22010 /usr/sbin/apache2 -k start
             ├─22052 /usr/sbin/apache2 -k start
             └─25721 /usr/sbin/apache2 -k start

May 10 10:03:50 pi systemd[1]: Starting apache2.service - The Apache HTTP Server.>
May 10 10:03:52 pi systemd[1]: Started apache2.service - The Apache HTTP Server.
May 11 00:00:01 pi systemd[1]: Reloading apache2.service - The Apache HTTP Server>
May 11 00:00:01 pi systemd[1]: Reloaded apache2.service - The Apache HTTP Server.
pi@pi:~ $ cat /var/log/apache2/error.log
[Sat May 11 00:00:01.909654 2024] [ssl:warn] [pid 1579] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat May 11 00:00:01.911309 2024] [ssl:error] [pid 1579] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi-4 / issuer: CN=raspberrypi-4 / serial: *** / notbefore: Feb  9 20:41:56 2021 GMT / notafter: Feb  7 20:41:56 2031 GMT]
[Sat May 11 00:00:01.911351 2024] [ssl:error] [pid 1579] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat May 11 00:00:01.919352 2024] [http2:warn] [pid 1579] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Sat May 11 00:00:01.961606 2024] [mpm_prefork:notice] [pid 1579] AH00163: Apache/2.4.59 (Raspbian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sat May 11 00:00:01.961646 2024] [core:notice] [pid 1579] AH00094: Command line: '/usr/sbin/apache2'

Checking PHP version that is actually running?

pi@pi:~ $ php -v
PHP 8.2.18 (cli) (built: Apr 22 2024 10:12:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.18, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.18, Copyright (c), by Zend Technologies

Did you install all required PHP modules?

I assume, i used Php-updater script i found here https://help.nextcloud.com/t/php-updater-a-script-to-upgrade-php-in-a-safe-way/180215

Is there a way to check that all needed modules are installed?

What does Redis status tell you?

pi@pi:~ $ sudo systemctl status redis.service 
● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; preset: e>
     Active: active (running) since Fri 2024-05-10 10:05:31 CEST; 23h ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 4857 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 4915)
        CPU: 5min 38.468s
     CGroup: /system.slice/redis-server.service
             └─4857 "/usr/bin/redis-server unixsocket:/var/run/redis/redis.sock"

May 10 10:05:31 pi systemd[1]: Starting redis-server.service - Advanced key-value>
May 10 10:05:31 pi systemd[1]: Started redis-server.service - Advanced key-value >

Is the database running?

pi@pi:~ $ sudo systemctl status mariadb
● mariadb.service - MariaDB 10.11.3 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enable>
    Drop-In: /etc/systemd/system/mariadb.service.d
             └─ncp-delay-automount.conf
     Active: active (running) since Fri 2024-05-10 10:05:15 CEST; 23h ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 560 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/ru>
    Process: 602 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START>
    Process: 625 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR>
    Process: 942 ExecStartPre=/bin/sleep 20 (code=exited, status=0/SUCCESS)
    Process: 3533 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_STA>
    Process: 3560 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SU>
   Main PID: 2444 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 8 (limit: 4915)
        CPU: 33.223s
     CGroup: /system.slice/mariadb.service
             └─2444 /usr/sbin/mariadbd

May 10 10:05:14 pi mariadbd[2444]: 2024-05-10 10:05:14 0 [Warning] You need to us>
May 10 10:05:14 pi mariadbd[2444]: 2024-05-10 10:05:14 0 [Note] Server socket cre>
May 10 10:05:15 pi mariadbd[2444]: 2024-05-10 10:05:15 0 [Note] /usr/sbin/mariadb>
May 10 10:05:15 pi mariadbd[2444]: Version: '10.11.3-MariaDB-1+rpi1'  socket: '/r>
May 10 10:05:15 pi systemd[1]: Started mariadb.service - MariaDB 10.11.3 database>
May 10 10:05:15 pi /etc/mysql/debian-start[3569]: Upgrading MySQL tables if neces>
May 10 10:05:16 pi /etc/mysql/debian-start[3573]: /usr/bin/mysql_upgrade: the '-->
May 10 10:05:16 pi /etc/mysql/debian-start[3685]: Checking for insecure root acco>
May 10 10:05:21 pi mariadbd[2444]: 2024-05-10 10:05:21 0 [Note] InnoDB: Buffer po>
May 10 10:05:30 pi mariadbd[2444]: 2024-05-10 10:05:30 4 [Warning] Aborted connec>

I hope this information helps. Let me know what else is needed.

Hi,

I just found this article https://github.com/nextcloud/nextcloudpi/issues/1913 and followed the instructions there (only changed PHP8.1 to PHP8.2) and this fixed my issue that nextcloud was not starting anymore.

During step 3. Install missing PHP packages quite some packages were installed, so this might been the problem with my setup that some PHP modules were missing.

Nextcloud now started again and performed the update to 26.0.13. seems back to running state.

Thanks & Regards,
Alex

3 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.