Upgraded to bullseye and now webgui won't start

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): v1.46.9
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 11. 5.10.103-v7l+ (armv7l)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Raspbian)

PHP version (eg, 7.4): PHP 7.4.28 (cli)

The issue you are facing: After trying to use the ncp-dist-upgrade command it failed and now the webgui doesn’t work. After some troubleshooting I’ve got the admin panel working again but not the webgui.

As I can access the admin panel, I wondered if there was a better solution than using the command line? Should I take a backup and start fresh?

Any help is appreciated

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

I’ve had this installation running for well over a year without any issues

Steps to replicate it:

  1. Ran sudo ncp-dist-upgrade

The output of your Nextcloud log in Admin > Logging:

[ nc-previews-auto ]
Thu 10 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Current Nextcloud version 23.0.2.1
Available Nextcloud version 23.0.2
Nothing to update


[ nc-previews-auto ]
[ nc-limits ] (Fri 11 Mar 04:01:17 GMT 2022)
Using 3018906624B for PHP
Using 6 PHP threads
Using 955970560 memory for the database
Warning: The unit file, source configuration file or drop-ins of mariadb.service changed on disk. Run 'systemctl daemon-reload' to reload units.
System config value trusted_domains => 3 set to string localhost

System config value overwrite.cli.url set to string https://localhost/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string localhost
System config value trusted_proxies => 14 set to string 127.0.0.1
✓ redis is configured
🗴 push server url is set to localhost, the push server will not be reachable from other machines
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app
configuration saved
Fri 11 Mar 06:25:03 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Current Nextcloud version 23.0.2.1
Available Nextcloud version 23.0.2
Nothing to update

[ nc-limits ] (Fri 11 Mar 14:58:22 GMT 2022)
Using 3018906624B for PHP
Using 6 PHP threads
Using 955970560 memory for the database

System config value trusted_domains => 3 set to string localhost
System config value overwrite.cli.url set to string https://localhost/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string localhost
System config value trusted_proxies => 14 set to string 127.0.0.1
✓ redis is configured
🗴 push server url is set to localhost, the push server will not be reachable from other machines
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app
configuration saved
[ nc-limits ] (Fri 11 Mar 16:24:59 GMT 2022)
Using 3018903552B for PHP
grep: /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 6 PHP threads
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 955969536 memory for the database


[ nc-previews-auto ]
Sat 12 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Sun 13 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Mon 14 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Tue 15 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Wed 16 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Thu 17 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Fri 18 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Sat 19 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Sun 20 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down


[ nc-previews-auto ]
Mon 21 Mar 06:25:01 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down

[ nc-limits ] (Mon 21 Mar 15:29:58 GMT 2022)
Using 3018903552B for PHP
grep: /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 6 PHP threads
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 955969536 memory for the database


[ nc-previews-auto ]
Tue 22 Mar 06:25:02 GMT 2022 - Running /etc/cron.daily/ncp-autoupdate...
[ncp-update-nc]
Nextcloud is currently down

[ nc-limits ] (Tue 22 Mar 09:16:06 GMT 2022)
Using 3018903552B for PHP
grep: /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 6 PHP threads
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
sed: can't read /etc/php/7.3/fpm/pool.d/www.conf: No such file or directory
Using 955969536 memory for the database

[ nc-webui ] (Tue Mar 22 09:48:14 GMT 2022)
ERROR: Site ncp not properly enabled: /etc/apache2/sites-enabled/ncp.conf is a real file, not touching it
ncp-web enabled

[ nc-update-nextcloud ] (Tue Mar 22 09:49:02 GMT 2022)
Nextcloud is currently down

[ nc-update ] (Tue Mar 22 09:49:12 GMT 2022)
Downloading updates
Performing updates
Running nc-autoupdate-nc
[ nc-autoupdate-nc ] (Tue Mar 22 09:50:41 GMT 2022)
automatic Nextcloud updates enabled
automatic Nextcloud updates enabled

Update to bullseye available. Type 'sudo ncp-dist-upgrade' to upgrade
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:87
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(237): 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(287): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/nextcloud/lib/private/AppConfig.php(344): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/nextcloud/lib/private/AppConfig.php(109): OC\AppConfig->loadConfigValues()
#7 /var/www/nextcloud/lib/private/AppConfig.php(300): OC\AppConfig->getApps()
#8 /var/www/nextcloud/lib/private/legacy/OC_App.php(972): OC\AppConfig->getValues()
#9 /var/www/nextcloud/lib/private/Server.php(692): OC_App::getAppVersions()
#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#11 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#12 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): 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(56): OC\ServerContainer->query()
#15 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(182): OC\AppFramework\Utility\SimpleContainer->get()
#16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#17 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): 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(56): OC\ServerContainer->query()
#21 /var/www/nextcloud/lib/private/Server.php(1079): OC\AppFramework\Utility\SimpleContainer->get()
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#23 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): 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(56): OC\ServerContainer->query()
#27 /var/www/nextcloud/lib/private/Server.php(2040): OC\AppFramework\Utility\SimpleContainer->get()
#28 /var/www/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#29 /var/www/nextcloud/lib/private/Server.php(439): OC\Files\View->__construct()
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#31 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#32 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): 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(56): OC\ServerContainer->query()
#35 /var/www/nextcloud/lib/private/Server.php(1403): OC\AppFramework\Utility\SimpleContainer->get()
#36 /var/www/nextcloud/lib/base.php(594): OC\Server->boot()
#37 /var/www/nextcloud/lib/base.php(1087): OC::init()
#38 /var/www/nextcloud/console.php(48): require_once('/var/www/nextcl...')
#39 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#40 {main}ls: cannot access '/etc/php/7.3/fpm/conf.d/*-opcache.ini': No such file or directory
ls: cannot access '/etc/php/7.3/cli/conf.d/*-opcache.ini': No such file or directory
NextCloudPi updated to version v1.46.9

[ nc-automount ] (Tue Mar 22 09:51:50 GMT 2022)
automount enabled

[ nc-datadir ] (Tue Mar 22 09:52:05 GMT 2022)
Error reading data directory. Is NextCloud running and configured?

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


<?php
$CONFIG = array (
  'passwordsalt' => REMOVED,
  'secret' => REMOVED,
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    11 => 'REMOVED',
    1 => '192.168.1.33',
    3 => 'localhost',
    '' => 'localhost',
    14 => 'nextcloudpi',
  ),
  'datadirectory' => '/media/NextcloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '23.0.2.1',
  'overwrite.cli.url' => 'https://localhost/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'instanceid' => 'oc1njr7k29sp',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'REMOVED',
  ),
  'tempdirectory' => '/media/NextcloudDrive/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' => true,
  'logfile' => '/media/NextcloudDrive/ncdata/nextcloud.log',
  'loglevel' => '2',
  'log_type' => 'file',
  'data-fingerprint' => 'REMOVED',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'localhost',
    14 => '127.0.0.1',
  ),
);


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



[Tue Mar 22 09:59:51.732976 2022] [authz_host:error] [pid 9759] [client 192.168.1.35:57887] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.33:4443/css/ncp.css
[Tue Mar 22 09:59:51.738512 2022] [authz_host:error] [pid 11444] [client 192.168.1.35:57885] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.33:4443/css/ncp.css
[Tue Mar 22 09:59:51.865154 2022] [authz_host:error] [pid 11444] [client 192.168.1.35:57885] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 09:59:51.865216 2022] [authz_host:error] [pid 11283] [client 192.168.1.35:57889] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Tue Mar 22 09:59:51.899111 2022] [authz_host:error] [pid 11283] [client 192.168.1.35:57889] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:00:00.508147 2022] [authz_host:error] [pid 11444] [client 192.168.1.35:57885] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:00:02.646515 2022] [authz_host:error] [pid 11444] [client 192.168.1.35:57885] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:00:02.698929 2022] [authz_host:error] [pid 11440] [client 192.168.1.35:57891] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Tue Mar 22 10:04:46.704018 2022] [authz_host:error] [pid 12295] [client 192.168.1.35:57902] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.33:4443/css/ncp.css
[Tue Mar 22 10:04:48.844992 2022] [authz_host:error] [pid 12295] [client 192.168.1.35:57902] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:04:50.973735 2022] [authz_host:error] [pid 12295] [client 192.168.1.35:57902] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.33:4443/css/ncp.css
[Tue Mar 22 10:05:19.062160 2022] [authz_host:error] [pid 6964] [client 192.168.1.35:57905] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:05:20.539193 2022] [authz_host:error] [pid 6964] [client 192.168.1.35:57905] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 22 10:05:20.601314 2022] [authz_host:error] [pid 11442] [client 192.168.1.35:57907] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.33:4443/css/ncp.css
[Tue Mar 22 10:05:22.379141 2022] [mpm_prefork:notice] [pid 4278] AH00171: Graceful restart requested, doing restart
[Tue Mar 22 10:05:22.420679 2022] [ssl:warn] [pid 4278] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 22 10:05:22.420964 2022] [ssl:error] [pid 4278] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 19B80E68607BE391958A05713CC8A8A67A5498FA / notbefore: Dec 20 22:50:35 2019 GMT / notafter: Dec 17 22:50:35 2029 GMT]
[Tue Mar 22 10:05:22.421002 2022] [ssl:error] [pid 4278] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Mar 22 10:05:22.421112 2022] [http2:warn] [pid 4278] 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. Y>
[Tue Mar 22 10:05:22.452854 2022] [mpm_prefork:notice] [pid 4278] AH00163: Apache/2.4.52 (Raspbian) OpenSSL/1.1.1k configured -- resuming normal operations
[Tue Mar 22 10:05:22.452901 2022] [core:notice] [pid 4278] AH00094: Command line: '/usr/sbin/apache2'