I can install 1.50.1 without problem but when i try update nc, ncp breaks

Hi,

I can install 1.50.1 without problem but when i try update nc, ncp breaks.
I must do apt update and apt dist-upgrade for install new php 7.4 and php 8.1 dependencies on Bullseye.
After that i recover the access to web configuration interfacer but nc not work.
This is my report.

<–! Paste this in GitHub report →

NextCloudPi diagnostics

NextCloudPi version  v1.50.1
OS                   Debian GNU/Linux 11. 5.10.0-18-amd64 (x86_64)
automount            no
USB devices          none
datadir              /mnt/data
data in SD           no
data filesystem      ext2/ext3
data disk usage      216G/251G
rootfs usage         6,4G/31G
swapfile             /var/swap
dbdir                /var/lib/mysql
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 IP            ***REMOVED SENSITIVE VALUE***
public IP            ***REMOVED SENSITIVE VALUE***
Port check 80        open (ipv4)
Port check 443       open (ipv4)
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
Interface            ens18
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         yes
Uptime               3days

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:139
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1519): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1041): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/nextcloud/lib/private/DB/Connection.php(261): 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(281): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/nextcloud/lib/private/AppConfig.php(411): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/nextcloud/lib/private/AppConfig.php(176): OC\AppConfig->loadConfigValues()
#7 /var/www/nextcloud/lib/private/AppConfig.php(367): OC\AppConfig->getApps()
#8 /var/www/nextcloud/lib/private/legacy/OC_App.php(983): OC\AppConfig->getValues()
#9 /var/www/nextcloud/lib/private/Server.php(713): OC_App::getAppVersions()
#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): 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(129): Pimple\Container->offsetGet()
#13 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#14 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query()
#15 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(184): OC\AppFramework\Utility\SimpleContainer->get()
#16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): 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(129): Pimple\Container->offsetGet()
#19 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#20 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query()
#21 /var/www/nextcloud/lib/private/Server.php(1105): OC\AppFramework\Utility\SimpleContainer->get()
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): 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(129): Pimple\Container->offsetGet()
#25 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#26 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query()
#27 /var/www/nextcloud/lib/private/Server.php(2082): OC\AppFramework\Utility\SimpleContainer->get()
#28 /var/www/nextcloud/lib/private/Files/View.php(122): OC\Server->getLockingProvider()
#29 /var/www/nextcloud/lib/private/Server.php(454): OC\Files\View->__construct()
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): 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(129): Pimple\Container->offsetGet()
#33 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#34 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query()
#35 /var/www/nextcloud/lib/private/Server.php(1445): OC\AppFramework\Utility\SimpleContainer->get()
#36 /var/www/nextcloud/lib/base.php(602): OC\Server->boot()
#37 /var/www/nextcloud/lib/base.php(1111): OC::init()
#38 /var/www/nextcloud/console.php(48): require_once('...')
#39 /var/www/nextcloud/occ(11): require_once('...')
#40 {main}
HTTPd logs

[Wed Sep 28 07:56:55.998249 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:59437] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Wed Sep 28 07:56:55.998367 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:59437] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Wed Sep 28 07:56:56.004755 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:59437] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Wed Sep 28 07:56:56.004915 2022] [proxy:error] [pid 378734:tid 140689326458624] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*:80) failed
[Wed Sep 28 07:56:56.004928 2022] [proxy_fcgi:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:59437] AH01079: failed to make connection to backend: httpd-UDS
[Wed Sep 28 08:00:55.786946 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:55.796686 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:55.796824 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:55.803376 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.374917 2022] [authz_host:error] [pid 378734:tid 140689502705408] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.375208 2022] [authz_host:error] [pid 378734:tid 140689309656832] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.375297 2022] [authz_host:error] [pid 378734:tid 140689318057728] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.375377 2022] [authz_host:error] [pid 378734:tid 140689511098112] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /js/minified.js failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.375548 2022] [authz_host:error] [pid 378734:tid 140689494312704] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /js/ncp.js failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.547809 2022] [authz_host:error] [pid 378734:tid 140689494312704] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.548017 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.574190 2022] [authz_host:error] [pid 378734:tid 140689494312704] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Wed Sep 28 08:00:56.574696 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Wed Sep 28 08:01:02.507158 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Wed Sep 28 08:01:02.531609 2022] [authz_host:error] [pid 378734:tid 140689326458624] [client 192.168.69.25:60369] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2022-03-07 10:57:17 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-03-07 10:57:17 0 [Note] Starting crash recovery...
2022-03-07 10:57:17 0 [Note] Crash recovery finished.
2022-03-07 10:57:17 0 [Note] Server socket created on IP: '127.0.0.1'.
2022-03-07 10:57:17 0 [Note] Reading of all Master_info entries succeeded
2022-03-07 10:57:17 0 [Note] Added new Master_info '' to hash table
2022-03-07 10:57:17 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.31-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2022-03-07 10:57:18 0 [Note] InnoDB: Buffer pool(s) load completed at 220307 10:57:18
2022-03-07 11:36:55 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2022-03-07 11:36:55 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-03-07 11:36:55 0 [Note] InnoDB: FTS optimize thread exiting.
2022-03-07 11:36:55 0 [Note] InnoDB: Starting shutdown...
2022-03-07 11:36:55 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2022-03-07 11:36:55 0 [Note] InnoDB: Instance 0, restricted to 4096 pages due to innodb_buf_pool_dump_pct=25
2022-03-07 11:36:55 0 [Note] InnoDB: Buffer pool(s) dump completed at 220307 11:36:55
2022-03-07 11:36:57 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 11:36:57 0 [Note] InnoDB: Shutdown completed; log sequence number 27589545370; transaction id 48535789
2022-03-07 11:36:57 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs

{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Keep legacy encryption enabled","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Check encryption key format","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Remove old dashboard app config data","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair DAV shares","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"24.0.3.2","data":[]}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add token cleanup job","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:19+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"24.0.3.2","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"24.0.5.1","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"24.0.5.1","data":{"app":"updater"}}
{"reqId":"Lm6b3co2i9saxGBo80UA","level":1,"time":"2022-09-28T05:56:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"24.0.5.1","data":{"app":"updater"}}

Finaly i try to update nc from ncp-config to see all process.

It do all configs and works ok.

Maybe the first problem was that i saw the error on web config page and go to try solve it by ssh while the update process still was working on background.
I must wait more, or for long updates do it from ncp-config tool.

Thanks for all help and work, Tobias and team.

1 Like