nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.46k stars 294 forks source link

Update to 1.54 with dist-upgrade killed the system #1909

Closed N0m4n904 closed 2 months ago

N0m4n904 commented 2 months ago

Hi, I updated my nextcloudpi to 1.54. After that I saw the message that there is a dist-upgrade, so I ran it. I did make nextcloud backups before running it.

the command ran and at some point it started to uninstall stuff and then crashed the system.

After I restarted my Raspberry Pi, I got the message that the dist-upgrade is available, but when I run it again, it says that there is no update for the current version.

I can't access my nextcloud anymore and when I try to run nc-update-nextcloud I get the message "Nextcloud is currently down".

EDIT: I reinstalled the following packages, but it did not make any difference:

How am I able to rescue my system?

System information

<--! Paste this in GitHub report -->

NextcloudPi diagnostics ``` grep: /etc/apache2/sites-available/nextcloud.conf: No such file or directory NextcloudPi version v1.54.0 NextcloudPi image NextCloudPi_11-27-20 OS Debian GNU/Linux 12. 6.1.21-v8+ (aarch64) automount yes USB devices sda datadir /media/myCloudDrive/ncdata data in SD no data filesystem btrfs data disk usage 1.2T/1.9T rootfs usage 5.8G/15G swapfile /var/swap dbdir /var/lib/mysql Nextcloud check error HTTPD service up PHP service down 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 eth0 Certificates ***REMOVED SENSITIVE VALUE*** NAT loopback no Uptime 26min ```
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(1654): OC\DB\Connection->connect() #1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1081): 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(337): OC\DB\Connection->executeQuery() #4 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(377): Doctrine\DBAL\Query\QueryBuilder->executeQuery() #5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute() #6 /var/www/nextcloud/lib/private/AppConfig.php(421): OC\DB\QueryBuilder\QueryBuilder->execute() #7 /var/www/nextcloud/lib/private/AppConfig.php(187): OC\AppConfig->loadConfigValues() #8 /var/www/nextcloud/lib/private/AppConfig.php(377): OC\AppConfig->getApps() #9 /var/www/nextcloud/lib/private/App/AppManager.php(128): OC\AppConfig->getValues() #10 /var/www/nextcloud/lib/private/App/AppManager.php(149): OC\App\AppManager->getInstalledAppsValues() #11 /var/www/nextcloud/lib/private/legacy/OC_App.php(231): OC\App\AppManager->getInstalledApps() #12 /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps() #13 /var/www/nextcloud/lib/base.php(700): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration() #14 /var/www/nextcloud/lib/base.php(1200): OC::init() #15 /var/www/nextcloud/console.php(48): require_once('...') #16 /var/www/nextcloud/occ(11): require_once('...') #17 {main} ```
HTTPd logs ``` [Thu May 02 08:59:07.655802 2024] [ssl:error] [pid 10078] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Thu May 02 08:59:07.662929 2024] [http2:warn] [pid 10078] 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. [Thu May 02 08:59:07.715946 2024] [mpm_prefork:notice] [pid 10078] AH00163: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations [Thu May 02 08:59:07.716088 2024] [core:notice] [pid 10078] AH00094: Command line: '/usr/sbin/apache2' [Thu May 02 08:59:31.173071 2024] [mpm_prefork:notice] [pid 10078] AH00171: Graceful restart requested, doing restart [Thu May 02 08:59:31.225057 2024] [ssl:warn] [pid 10078] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior [Thu May 02 08:59:31.230120 2024] [ssl:warn] [pid 10078] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Thu May 02 08:59:31.231570 2024] [ssl:error] [pid 10078] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT] [Thu May 02 08:59:31.231643 2024] [ssl:error] [pid 10078] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Thu May 02 08:59:31.238134 2024] [http2:warn] [pid 10078] 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. [Thu May 02 08:59:31.265499 2024] [mpm_prefork:notice] [pid 10078] AH00163: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations [Thu May 02 08:59:31.265556 2024] [core:notice] [pid 10078] AH00094: Command line: '/usr/sbin/apache2' [Thu May 02 09:05:48.578540 2024] [mpm_prefork:notice] [pid 10078] AH00171: Graceful restart requested, doing restart [Thu May 02 09:05:48.645124 2024] [ssl:warn] [pid 10078] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior [Thu May 02 09:05:48.651892 2024] [ssl:warn] [pid 10078] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Thu May 02 09:05:48.653254 2024] [ssl:error] [pid 10078] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT] [Thu May 02 09:05:48.653282 2024] [ssl:error] [pid 10078] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Thu May 02 09:05:48.660081 2024] [http2:warn] [pid 10078] 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. [Thu May 02 09:05:48.686094 2024] [mpm_prefork:notice] [pid 10078] AH00163: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations [Thu May 02 09:05:48.686151 2024] [core:notice] [pid 10078] AH00094: Command line: '/usr/sbin/apache2' ```
Database logs ``` 2022-05-20 9:25:15 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown 2022-05-20 9:25:15 0 [Note] Event Scheduler: Purging the queue. 0 events 2022-05-20 9:25:15 0 [Note] InnoDB: FTS optimize thread exiting. 2022-05-20 9:25:15 0 [Note] InnoDB: Starting shutdown... 2022-05-20 9:25:15 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool 2022-05-20 9:25:15 0 [Note] InnoDB: Buffer pool(s) dump completed at 220520 9:25:15 2022-05-20 9:25:17 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2022-05-20 9:25:17 0 [Note] InnoDB: Shutdown completed; log sequence number 9834123253; transaction id 29421436 2022-05-20 9:25:17 0 [Note] /usr/sbin/mysqld: Shutdown complete ```
Nextcloud logs ``` {"reqId":"Z5r6gHXItxvJ2vH0jLzU","level":3,"time":"2024-05-02T07:05:01+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1654,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1081,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":337,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":377,"function":"executeQuery","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":280,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":421,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":187,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":377,"function":"getApps","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":128,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":149,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":231,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/cron.php","line":43,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":139,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}} {"reqId":"ZjM7H3FTaDd3xaNBFKgNngAAAAU","level":3,"time":"2024-05-02T07:05:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM7W5u67K5phIXujcLVtwAAAAA","level":3,"time":"2024-05-02T07:06:04+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM7l0GxmgPt0wdBpYTHcQAAAAE","level":3,"time":"2024-05-02T07:07:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM70zzLa9DtzL_6F8UJuwAAAAI","level":3,"time":"2024-05-02T07:08:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM8D8YLFq3Z_j6eY4dCgQAAAAM","level":3,"time":"2024-05-02T07:09:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"UT85ToB5nJjLbQc0h5iE","level":3,"time":"2024-05-02T07:10:01+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1654,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1081,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":337,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":377,"function":"executeQuery","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":280,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":421,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":187,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":377,"function":"getApps","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":128,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":149,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":231,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/cron.php","line":43,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":139,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}} {"reqId":"ZjM8S1j9jjMHgm_omundGwAAAAQ","level":3,"time":"2024-05-02T07:10:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM8h942mFDngeSuQF0WUAAAAAU","level":3,"time":"2024-05-02T07:11:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM8w5u67K5phIXujcLVuAAAAAA","level":3,"time":"2024-05-02T07:12:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM8_0GxmgPt0wdBpYTHcgAAAAE","level":3,"time":"2024-05-02T07:13:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM9OzzLa9DtzL_6F8UJvAAAAAI","level":3,"time":"2024-05-02T07:14:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM9d8YLFq3Z_j6eY4dCggAAAAM","level":3,"time":"2024-05-02T07:15:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ilGucF8nT8k5Zr0TtJNQ","level":3,"time":"2024-05-02T07:15:22+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1654,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1081,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":337,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":377,"function":"executeQuery","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":280,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":421,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":187,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":377,"function":"getApps","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":128,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":149,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":231,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/cron.php","line":43,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":139,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}} {"reqId":"ZjM9s1j9jjMHgm_omundHAAAAAQ","level":3,"time":"2024-05-02T07:16:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM97942mFDngeSuQF0WUQAAAAU","level":3,"time":"2024-05-02T07:17:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM-K5u67K5phIXujcLVuQAAAAA","level":3,"time":"2024-05-02T07:18:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"ZjM-Z0GxmgPt0wdBpYTHcwAAAAE","level":3,"time":"2024-05-02T07:19:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} {"reqId":"54mL86kAQEOxBz8fW2NW","level":3,"time":"2024-05-02T07:20:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1654,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1081,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":261,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":337,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":377,"function":"executeQuery","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":280,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":421,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":187,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":377,"function":"getApps","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":128,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":149,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":231,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/cron.php","line":43,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":139,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}} {"reqId":"ZjM-ozzLa9DtzL_6F8UJvQAAAAI","level":3,"time":"2024-05-02T07:20:03+00:00","remoteAddr":"2a02:810d:5fbf:d41c:df3d:3e14:7516:9d11","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipUpdate=false&skipApps=false","message":"Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver at /var/www/nextcloud/lib/private/DB/Connection.php#139","userAgent":"python-requests/2.31.0","version":"28.0.4.1","data":{"app":"PHP"}} ```
N0m4n904 commented 2 months ago

image

theCalcaholic commented 2 months ago

Hm, no, that looks alright. Then I'm out of ideas. Your error message seems to indicate, that php8.1-mysql is not installed, but since you already performed the installation I don't know how to fix this.

N0m4n904 commented 2 months ago

hmmm, too bad. I don't want to do a clean install. especially because I have some data on that drive

theCalcaholic commented 2 months ago

One more thing to check: Can you give me the output of

php --version
php -m
N0m4n904 commented 2 months ago

image

I don't know why there is still 8.3. I thought I removed that crap

theCalcaholic commented 2 months ago

Yeah, that's the wrong PHP. What does sudo dpkg -l | grep php yield?

N0m4n904 commented 2 months ago

I uninstalled PHP completely and installed 8.1 again. maintenance command is now working

N0m4n904 commented 2 months ago
sudo dpkg -l | grep php
rc  libapache2-mod-php8.2               8.2.18-1~deb12u1                             arm64        server-side, HTML-embedded scripting language (Apache 2 module)       rc  libapache2-mod-php8.3               8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        server-side, HTML-embedded scripting language (Apache 2 module)       ii  php-common                          2:94+0~20240205.51+debian12~1.gbp6faa2e      all          Common files for PHP packages                                         rc  php7.3-common                       7.3.31-1~deb10u1                             arm64        documentation, examples and common module for PHP                     rc  php7.3-readline                     7.3.31-1~deb10u1                             arm64        readline module for PHP
ii  php8.1                              8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  all          server-side, HTML-embedded scripting language (metapackage)           ii  php8.1-bcmath                       8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        Bcmath module for PHP                                                 ii  php8.1-bz2                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        bzip2 module for PHP
ii  php8.1-cli                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        command-line interpreter for the PHP scripting language               ii  php8.1-common                       8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        documentation, examples and common module for PHP
ii  php8.1-curl                         8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        CURL module for PHP                                                   ii  php8.1-fpm                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php8.1-gd                           8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        GD module for PHP                                                     ii  php8.1-gmp                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        GMP module for PHP                                                    ii  php8.1-igbinary                     3.2.15-1+0~20231202.49+debian12~1.gbpe9ffe8  arm64        igbinary PHP serializer                                               rc  php8.1-imagick                      3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27   arm64        Provides a wrapper to the ImageMagick library
ii  php8.1-intl                         8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        Internationalisation module for PHP
ii  php8.1-ldap                         8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        LDAP module for PHP                                                   ii  php8.1-mbstring                     8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        MBSTRING module for PHP                                               ii  php8.1-mysql                        8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        MySQL module for PHP
ii  php8.1-opcache                      8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        Zend OpCache module for PHP                                           ii  php8.1-readline                     8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        readline module for PHP                                               ii  php8.1-redis                        6.0.2-1+0~20231128.56+debian12~1.gbp9f3071   arm64        PHP extension for interfacing with Redis                              ii  php8.1-xml                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        DOM, SimpleXML, XML, and XSL module for PHP                           ii  php8.1-zip                          8.1.28-1+0~20240424.64+debian12~1.gbpd7b516  arm64        Zip module for PHP
rc  php8.2-bcmath                       8.2.18-1~deb12u1                             arm64        Bcmath module for PHP                                                 rc  php8.2-bz2                          8.2.18-1~deb12u1                             arm64        bzip2 module for PHP
rc  php8.2-cli                          8.2.18-1~deb12u1                             arm64        command-line interpreter for the PHP scripting language
rc  php8.2-common                       8.2.18-1~deb12u1                             arm64        documentation, examples and common module for PHP
rc  php8.2-curl                         8.2.18-1~deb12u1                             arm64        CURL module for PHP                                                   rc  php8.2-gd                           8.2.18-1~deb12u1                             arm64        GD module for PHP                                                     rc  php8.2-gmp                          8.2.18-1~deb12u1                             arm64        GMP module for PHP                                                    rc  php8.2-imagick                      3.7.0-4                                      arm64        Provides a wrapper to the ImageMagick library
rc  php8.2-intl                         8.2.18-1~deb12u1                             arm64        Internationalisation module for PHP
rc  php8.2-mbstring                     8.2.18-1~deb12u1                             arm64        MBSTRING module for PHP                                               rc  php8.2-mysql                        8.2.18-1~deb12u1                             arm64        MySQL module for PHP                                                  rc  php8.2-opcache                      8.2.18-1~deb12u1                             arm64        Zend OpCache module for PHP                                           rc  php8.2-phpdbg                       8.2.5-1+0~20230414.19+debian11~1.gbpbe24a6   arm64        server-side, HTML-embedded scripting language (PHPDBG binary)         rc  php8.2-readline                     8.2.18-1~deb12u1                             arm64        readline module for PHP                                               rc  php8.2-xml                          8.2.18-1~deb12u1                             arm64        DOM, SimpleXML, XML, and XSL module for PHP                           rc  php8.2-zip                          8.2.18-1~deb12u1                             arm64        Zip module for PHP                                                    rc  php8.3-bcmath                       8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        Bcmath module for PHP
rc  php8.3-bz2                          8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        bzip2 module for PHP                                                  rc  php8.3-cli                          8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        command-line interpreter for the PHP scripting language               rc  php8.3-common                       8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        documentation, examples and common module for PHP
rc  php8.3-curl                         8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        CURL module for PHP                                                   rc  php8.3-gd                           8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        GD module for PHP                                                     rc  php8.3-gmp                          8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        GMP module for PHP                                                    rc  php8.3-intl                         8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        Internationalisation module for PHP                                   rc  php8.3-mbstring                     8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        MBSTRING module for PHP                                               rc  php8.3-mysql                        8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        MySQL module for PHP
rc  php8.3-opcache                      8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        Zend OpCache module for PHP                                           rc  php8.3-readline                     8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        readline module for PHP                                               rc  php8.3-xml                          8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        DOM, SimpleXML, XML, and XSL module for PHP                           rc  php8.3-zip                          8.3.6-1+0~20240424.32+debian12~1.gbp9a7ce5   arm64        Zip module for PHP
N0m4n904 commented 2 months ago

the sudo ncp-dist-upgrade message still appears when SSH on the raspi

N0m4n904 commented 2 months ago

When I try to access my cloud now I get this:

<?php
/**
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 *
 * @author Christoph Wurst <christoph@winzerhof-wurst.at>
 * @author Joas Schilling <coding@schilljs.com>
 * @author Jörn Friedrich Dreyer <jfd@butonic.de>
 * @author Lukas Reschke <lukas@statuscode.ch>
 * @author Morris Jobke <hey@morrisjobke.de>
 * @author Robin Appelman <robin@icewind.nl>
 * @author Roeland Jago Douma <roeland@famdouma.nl>
 * @author Sergio Bertolín <sbertolin@solidgear.es>
 * @author Thomas Müller <thomas.mueller@tmit.eu>
 * @author Vincent Petry <vincent@nextcloud.com>
 *
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 *
 */
require_once __DIR__ . '/lib/versioncheck.php';

use OCP\Security\Bruteforce\MaxDelayReached;
use Psr\Log\LoggerInterface;

try {
    require_once __DIR__ . '/lib/base.php';

    OC::handleRequest();
} catch (\OC\ServiceUnavailableException $ex) {
    \OC::$server->get(LoggerInterface::class)->error($ex->getMessage(), [
        'app' => 'index',
        'exception' => $ex,
    ]);

    //show the user a detailed error page
    OC_Template::printExceptionErrorPage($ex, 503);
} catch (\OCP\HintException $ex) {
    try {
        OC_Template::printErrorPage($ex->getMessage(), $ex->getHint(), 503);
    } catch (Exception $ex2) {
        try {
            \OC::$server->get(LoggerInterface::class)->error($ex->getMessage(), [
                'app' => 'index',
                'exception' => $ex,
            ]);
            \OC::$server->get(LoggerInterface::class)->error($ex2->getMessage(), [
                'app' => 'index',
                'exception' => $ex2,
            ]);
        } catch (Throwable $e) {
            // no way to log it properly - but to avoid a white page of death we try harder and ignore this one here
        }

        //show the user a detailed error page
        OC_Template::printExceptionErrorPage($ex, 500);
    }
} catch (\OC\User\LoginException $ex) {
    $request = \OC::$server->getRequest();
    /**
     * Routes with the @CORS annotation and other API endpoints should
     * not return a webpage, so we only print the error page when html is accepted,
     * otherwise we reply with a JSON array like the SecurityMiddleware would do.
     */
    if (stripos($request->getHeader('Accept'), 'html') === false) {
        http_response_code(401);
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode(['message' => $ex->getMessage()]);
        exit();
    }
    OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), 401);
} catch (MaxDelayReached $ex) {
    $request = \OC::$server->getRequest();
    /**
     * Routes with the @CORS annotation and other API endpoints should
     * not return a webpage, so we only print the error page when html is accepted,
     * otherwise we reply with a JSON array like the BruteForceMiddleware would do.
     */
    if (stripos($request->getHeader('Accept'), 'html') === false) {
        http_response_code(429);
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode(['message' => $ex->getMessage()]);
        exit();
    }
    http_response_code(429);
    OC_Template::printGuestPage('core', '429');
} catch (Exception $ex) {
    \OC::$server->get(LoggerInterface::class)->error($ex->getMessage(), [
        'app' => 'index',
        'exception' => $ex,
    ]);

    //show the user a detailed error page
    OC_Template::printExceptionErrorPage($ex, 500);
} catch (Error $ex) {
    try {
        \OC::$server->get(LoggerInterface::class)->error($ex->getMessage(), [
            'app' => 'index',
            'exception' => $ex,
        ]);
    } catch (Error $e) {
        http_response_code(500);
        header('Content-Type: text/plain; charset=utf-8');
        print("Internal Server Error\n\n");
        print("The server encountered an internal error and was unable to complete your request.\n");
        print("Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.\n");
        print("More details can be found in the webserver log.\n");

        throw $ex;
    }
    OC_Template::printExceptionErrorPage($ex, 500);
}
theCalcaholic commented 2 months ago

That's progress! You probably just need

sudo a2enconf php8.1-fpm
sudo systemctl reload apache2
N0m4n904 commented 2 months ago

I get the login screen and I am able to login. Thank you soooooo much.

N0m4n904 commented 2 months ago

I am able to Update to 28.0.5 now as well. thanks a lot for the help

theCalcaholic commented 2 months ago

Awesome, very glad to hear it!