Internal server error after system upgrade: "Failed to connect to the database"

Hi,
I did a system upgrade via sudo apt upgrade-dist on my NextcloudPi system, originally because I had some issues with my temp directory ( see Nextcloud logs).
I hoped that this maybe would solve the issue, but it just introduced new errors… First, PHP was not running anymore, which I was able to solve. Right now, when I open the web ui, I get the message

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

I ran sudo ncp-report ( see below). What worries me the most is the exception shown under paragraph “Nextcloud configuration”, could this be the reason for my problem?

NextCloudPi diagnostics

NextCloudPi version  v1.46.8
NextCloudPi image    NextCloudPi_10-08-21
OS                   Armbian 21.11.0-trunk Buster \l . 4.14.222-odroidxu4 (armv7l)
automount            no
USB devices          sda sdb 
datadir              /media/nextcloud-data/NC-Data
data in SD           no
data filesystem      btrfs
data disk usage      88G/466G
rootfs usage         4,2G/29G
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
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            enx001e0636f703
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               1:53

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:87
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/nextcloud/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): 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(971): OC\AppConfig->getValues()
#9 /var/www/nextcloud/lib/private/Server.php(687): 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(1064): 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(2024): 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(435): 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(1387): OC\AppFramework\Utility\SimpleContainer->get()
#36 /var/www/nextcloud/lib/base.php(594): OC\Server->boot()
#37 /var/www/nextcloud/lib/base.php(1089): 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}
HTTPd logs

[Sun Mar 06 12:06:42.250008 2022] [core:notice] [pid 1391] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 06 12:57:29.514319 2022] [mpm_prefork:notice] [pid 1391] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Mar 06 12:57:29.695425 2022] [ssl:warn] [pid 6740] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Mar 06 12:57:29.695712 2022] [ssl:error] [pid 6740] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidxu4 / issuer: CN=odroidxu4 / serial: 28BA0916E3EAB36A6A4BE285E8182A260DEA260A / notbefore: Oct  8 20:26:10 2021 GMT / notafter: Oct  6 20:26:10 2031 GMT]
[Sun Mar 06 12:57:29.695733 2022] [ssl:error] [pid 6740] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Mar 06 12:57:29.728165 2022] [ssl:warn] [pid 6741] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Mar 06 12:57:29.728406 2022] [ssl:error] [pid 6741] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidxu4 / issuer: CN=odroidxu4 / serial: 28BA0916E3EAB36A6A4BE285E8182A260DEA260A / notbefore: Oct  8 20:26:10 2021 GMT / notafter: Oct  6 20:26:10 2031 GMT]
[Sun Mar 06 12:57:29.728424 2022] [ssl:error] [pid 6741] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Mar 06 12:57:29.728513 2022] [http2:warn] [pid 6741] 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.
[Sun Mar 06 12:57:29.769002 2022] [mpm_prefork:notice] [pid 6741] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Mar 06 12:57:29.769179 2022] [core:notice] [pid 6741] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 06 13:22:21.113833 2022] [mpm_prefork:notice] [pid 6741] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Mar 06 13:22:21.286294 2022] [ssl:warn] [pid 10381:tid 3070085728] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Mar 06 13:22:21.286585 2022] [ssl:error] [pid 10381:tid 3070085728] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidxu4 / issuer: CN=odroidxu4 / serial: 28BA0916E3EAB36A6A4BE285E8182A260DEA260A / notbefore: Oct  8 20:26:10 2021 GMT / notafter: Oct  6 20:26:10 2031 GMT]
[Sun Mar 06 13:22:21.286605 2022] [ssl:error] [pid 10381:tid 3070085728] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Mar 06 13:22:21.309702 2022] [ssl:warn] [pid 10382:tid 3070085728] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Mar 06 13:22:21.309953 2022] [ssl:error] [pid 10382:tid 3070085728] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidxu4 / issuer: CN=odroidxu4 / serial: 28BA0916E3EAB36A6A4BE285E8182A260DEA260A / notbefore: Oct  8 20:26:10 2021 GMT / notafter: Oct  6 20:26:10 2031 GMT]
[Sun Mar 06 13:22:21.309976 2022] [ssl:error] [pid 10382:tid 3070085728] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Mar 06 13:22:21.315632 2022] [mpm_event:notice] [pid 10382:tid 3070085728] AH00489: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Mar 06 13:22:21.315731 2022] [core:notice] [pid 10382:tid 3070085728] AH00094: Command line: '/usr/sbin/apache2'

Database logs


Nextcloud logs

{"reqId":"YiPAXCB79dVQaecCAeA06wAAAE0","level":3,"time":"2022-03-05T19:56:13+00:00","remoteAddr":"91.64.214.154","user":"ncp","app":"PHP","method":"PUT","url":"/remote.php/dav/uploads/ncp/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.0","version":"22.2.2.0","exception":{"Exception":"Error","Message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"fread(): file created in the system's temporary directory","/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",55,{"count":8192}]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":282,"function":"file_put_contents","args":["/media/nextcloud-data/NC-Data/ncp/uploads/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921.ocTransferId2044882454.part",null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":573,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->","args":["uploads/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921.ocTransferId2044882454.part",null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":628,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["uploads/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921.ocTransferId2044882454.part",null,null]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":206,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["uploads/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921.ocTransferId2044882454.part",null]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":155,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":45,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["0000000000000000-0000000002669921",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["0000000000000000-0000000002669921",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads/ncp/2acf170bcd33e7b1f9f1a5412c981fdd/0000000000000000-0000000002669921",null,null]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"YiPAbCB79dVQaecCAeA09AAAAFE","level":3,"time":"2022-03-05T19:56:28+00:00","remoteAddr":"91.64.214.154","user":"ncp","app":"PHP","method":"PUT","url":"/remote.php/dav/uploads/ncp/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.0","version":"22.2.2.0","exception":{"Exception":"Error","Message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"fread(): file created in the system's temporary directory","/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",55,{"count":8192}]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":63,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->","args":[8192]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":282,"function":"file_put_contents","args":["/media/nextcloud-data/NC-Data/ncp/uploads/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956.ocTransferId302401886.part",null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":573,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->","args":["uploads/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956.ocTransferId302401886.part",null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":628,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["uploads/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956.ocTransferId302401886.part",null,null]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":206,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["uploads/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956.ocTransferId302401886.part",null]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":155,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":45,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["0000000000000000-0000000002199956",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["0000000000000000-0000000002199956",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads/ncp/f1d517e01d0eac00faa91a002250be7f/0000000000000000-0000000002199956",null,null]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}

Below I pastet the proper config.php content:

config.php ``` GNU nano 5.4 /var/www/nextcloud/config/config.php <?php $CONFIG = array ( 'passwordsalt' => ************, 'secret' => ************, 'trusted_domains' => array ( 0 => 'localhost', 22 => 'nextcloudpi', 1 => ************, 3 => 'nextcloudpi', 4 => 'nextcloudpi.local', 11 => '91.64.214.154', 14 => 'nextcloudpi', 10 => ************, ), 'datadirectory' => '/media/nextcloud-data/NC-Data', 'dbtype' => 'mysql', 'version' => '22.2.2.0', 'overwrite.cli.url' => 'https://nextcloudpi/', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => ************, 'dbpassword' => ************, 'installed' => true, 'instanceid' => 'ocwnkbg2ensc', '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' => '/media/nextcloud-data/nc-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', 'trusted_proxies' => array ( 11 => '127.0.0.1', 12 => '::1', 13 => 'nextcloudpi', 14 => ************, ), 'theme' => '', 'loglevel' => 2, 'maintenance' => true, );

</details