Php8.2 broken after failed update - can't get it running again

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.2.30.2 (stable)
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

Last night, I tried to update Nextcloud and I think for some reason the upgrade did not finish or was somehow interrupted. This led to php8.2 being completely shot. At first, I couldn’t do anything at all due to “broken held packages”. I managed to get around that somehow, figured out that php was indeed the broken package and decided to
sudo apt purge php*
for good measure.

That worked - but the reinstall did not. I’m apparently stuck in some kind of dependency resolution treadmill:

 installed php8.2-fpm package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of php8.2:
 php8.2 depends on libapache2-mod-php8.2 | php8.2-fpm | php8.2-cgi; however:
  Package libapache2-mod-php8.2 is not installed.
  Package php8.2-fpm is not configured yet.
  Package php8.2-cgi is not installed.

systemctl status php8.2-fpm doesn’t really reveal any info (to me), see below. It exits with error code 78. I’m a bit stumped on how to continue here and I would appreciate any help.

Share relevant logs or error messages

rootimon@hmcld:~$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or the configure menu option in dselect:
php8.2-fpm server-side, HTML-embedded scripting language (FPM-CGI bi

rootimon@hmcld:~$ sudo dpkg --configure php8.2-fpm
Setting up php8.2-fpm (8.2.23-1+0~20240830.60+debian11~1.gbp2d65da) …
Job for php8.2-fpm.service failed because the control process exited with error code.
See “systemctl status php8.2-fpm.service” and “journalctl -xe” for details.
invoke-rc.d: initscript php8.2-fpm, action “start” failed.
● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2024-09-17 09:34:07 UTC; 4ms ago
Docs: man:php-fpm8.2(8)
Process: 72669 ExecStart=/usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf (code=exited, status=78)
Process: 72670 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
Main PID: 72669 (code=exited, status=78)
CPU: 33ms
dpkg: error processing package php8.2-fpm (–configure):
installed php8.2-fpm package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
php8.2-fpm

Lets have a look at sudo journalctl -u php8.2-fpm --no-pager --no-hostname

I truncated it here; it always repeats itself:

Sep 17 10:08:59 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:08:59 php-fpm8.2[77151]: [17-Sep-2024 10:08:59] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:08:59 php-fpm8.2[77151]: [17-Sep-2024 10:08:59] ERROR: failed to post process the configuration
Sep 17 10:08:59 php-fpm8.2[77151]: [17-Sep-2024 10:08:59] ERROR: FPM initialization failed
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:08:59 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 1.
Sep 17 10:08:59 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:08:59 php-fpm8.2[77156]: [17-Sep-2024 10:08:59] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:08:59 php-fpm8.2[77156]: [17-Sep-2024 10:08:59] ERROR: failed to post process the configuration
Sep 17 10:08:59 php-fpm8.2[77156]: [17-Sep-2024 10:08:59] ERROR: FPM initialization failed
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:08:59 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 2.
Sep 17 10:08:59 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:08:59 php-fpm8.2[77159]: [17-Sep-2024 10:08:59] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:08:59 php-fpm8.2[77159]: [17-Sep-2024 10:08:59] ERROR: failed to post process the configuration
Sep 17 10:08:59 php-fpm8.2[77159]: [17-Sep-2024 10:08:59] ERROR: FPM initialization failed
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:08:59 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 3.
Sep 17 10:08:59 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:08:59 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:08:59 php-fpm8.2[77162]: [17-Sep-2024 10:08:59] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:08:59 php-fpm8.2[77162]: [17-Sep-2024 10:08:59] ERROR: failed to post process the configuration
Sep 17 10:08:59 php-fpm8.2[77162]: [17-Sep-2024 10:08:59] ERROR: FPM initialization failed
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:08:59 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:08:59 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 4.
Sep 17 10:09:00 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:09:00 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:09:00 php-fpm8.2[77165]: [17-Sep-2024 10:09:00] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:09:00 php-fpm8.2[77165]: [17-Sep-2024 10:09:00] ERROR: failed to post process the configuration
Sep 17 10:09:00 php-fpm8.2[77165]: [17-Sep-2024 10:09:00] ERROR: FPM initialization failed
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:09:00 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 5.
Sep 17 10:09:00 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Start request repeated too quickly.
Sep 17 10:09:00 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:09:00 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:11 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:11 php-fpm8.2[78101]: [17-Sep-2024 10:11:11] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:11 php-fpm8.2[78101]: [17-Sep-2024 10:11:11] ERROR: failed to post process the configuration
Sep 17 10:11:11 php-fpm8.2[78101]: [17-Sep-2024 10:11:11] ERROR: FPM initialization failed
Sep 17 10:11:11 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:11 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:11 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:11 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 1.
Sep 17 10:11:11 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:11 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:11 php-fpm8.2[78399]: [17-Sep-2024 10:11:11] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:11 php-fpm8.2[78399]: [17-Sep-2024 10:11:11] ERROR: failed to post process the configuration
Sep 17 10:11:11 php-fpm8.2[78399]: [17-Sep-2024 10:11:11] ERROR: FPM initialization failed
Sep 17 10:11:11 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:11 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:11 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 2.
Sep 17 10:11:12 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:12 php-fpm8.2[78816]: [17-Sep-2024 10:11:12] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:12 php-fpm8.2[78816]: [17-Sep-2024 10:11:12] ERROR: failed to post process the configuration
Sep 17 10:11:12 php-fpm8.2[78816]: [17-Sep-2024 10:11:12] ERROR: FPM initialization failed
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:12 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 3.
Sep 17 10:11:12 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:12 php-fpm8.2[78915]: [17-Sep-2024 10:11:12] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:12 php-fpm8.2[78915]: [17-Sep-2024 10:11:12] ERROR: failed to post process the configuration
Sep 17 10:11:12 php-fpm8.2[78915]: [17-Sep-2024 10:11:12] ERROR: FPM initialization failed
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:12 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 4.
Sep 17 10:11:12 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:12 php-fpm8.2[78962]: [17-Sep-2024 10:11:12] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:12 php-fpm8.2[78962]: [17-Sep-2024 10:11:12] ERROR: failed to post process the configuration
Sep 17 10:11:12 php-fpm8.2[78962]: [17-Sep-2024 10:11:12] ERROR: FPM initialization failed
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:12 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 5.
Sep 17 10:11:12 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Start request repeated too quickly.
Sep 17 10:11:12 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:12 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:13 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:13 php-fpm8.2[79698]: [17-Sep-2024 10:11:13] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:13 php-fpm8.2[79698]: [17-Sep-2024 10:11:13] ERROR: failed to post process the configuration
Sep 17 10:11:13 php-fpm8.2[79698]: [17-Sep-2024 10:11:13] ERROR: FPM initialization failed
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:13 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 1.
Sep 17 10:11:13 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:13 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:13 php-fpm8.2[79707]: [17-Sep-2024 10:11:13] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:13 php-fpm8.2[79707]: [17-Sep-2024 10:11:13] ERROR: failed to post process the configuration
Sep 17 10:11:13 php-fpm8.2[79707]: [17-Sep-2024 10:11:13] ERROR: FPM initialization failed
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:13 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 2.
Sep 17 10:11:13 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:13 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:13 php-fpm8.2[79710]: [17-Sep-2024 10:11:13] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:13 php-fpm8.2[79710]: [17-Sep-2024 10:11:13] ERROR: failed to post process the configuration
Sep 17 10:11:13 php-fpm8.2[79710]: [17-Sep-2024 10:11:13] ERROR: FPM initialization failed
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:13 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:13 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 3.
Sep 17 10:11:14 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:14 php-fpm8.2[79714]: [17-Sep-2024 10:11:14] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:14 php-fpm8.2[79714]: [17-Sep-2024 10:11:14] ERROR: failed to post process the configuration
Sep 17 10:11:14 php-fpm8.2[79714]: [17-Sep-2024 10:11:14] ERROR: FPM initialization failed
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:14 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 4.
Sep 17 10:11:14 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Sep 17 10:11:14 php-fpm8.2[79717]: [17-Sep-2024 10:11:14] ERROR: [pool snappymail] the chdir path '/var/www/snappymail' does not exist or is not a directory
Sep 17 10:11:14 php-fpm8.2[79717]: [17-Sep-2024 10:11:14] ERROR: failed to post process the configuration
Sep 17 10:11:14 php-fpm8.2[79717]: [17-Sep-2024 10:11:14] ERROR: FPM initialization failed
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:14 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Scheduled restart job, restart counter is at 5.
Sep 17 10:11:14 systemd[1]: Stopped The PHP 8.2 FastCGI Process Manager.
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Start request repeated too quickly.
Sep 17 10:11:14 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Sep 17 10:11:14 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.

So. I did have snappymail installed, but removed it last night via the yunohost admin interface. Apparently, that didn’t quite work.

sudo yunohost app list shows no snappymail install. Trying to remove it via yunohost terminal command leads to:

Error: Could not find snappymail in the list of installed apps: 
 * httpsh
 * nextcloud
 * tandoor
 * wordpress

Did something weird or unexpected happen with snappymail uninstall ? Such as being interrupted somehow ? Ideally if you want to help us dig us why this happened such that we may address the issue for other people, you can share the “uninstall/removal” log of snappymail which you may find under Tools > Logs in the webadmin (and then ‘Share with yunopaste’, and just share the generated URL, not the content itself)

Anyway otherwise, you can manually delete the faulty snappymail conf remain with :

sudo find /etc/php -name 'snappymail.conf'

to find the file

and then sudo rm /etc/php/......../snappymail.conf (using the path found)

Sure Aleks! Unfortunately, the log seems ok to my eyes, but have a look yourself: https://paste.yunohost.org/raw/aqivaqihik

Anyway, rm’ed the snappymail.conf like you suggested, reinstalled php8.2 via sudo aptitude install php8.2and now sudo systemctl status php8.2-fpm outputs

● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2024-09-17 12:27:06 UTC; 12s ago
       Docs: man:php-fpm8.2(8)
    Process: 83151 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
   Main PID: 83147
     Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0.00req/sec"
      Tasks: 3 (limit: 19143)
     Memory: 9.0M
        CPU: 37ms
     CGroup: /system.slice/php8.2-fpm.service
             ├─83147 php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)
             ├─83149 php-fpm: pool www
             └─83150 php-fpm: pool www

Thank you!

Now unfortunately, in my purging of php I seem to have removed the nextcloud-ynh-deps and wordpress-ynh-deps as well. How can I get them again? aptitude does not recognize them unfortunately.

Installed php8.3 since that seems to be what my install of nextcloud wants. Nextcloud error log now reads:

{"reqId":"OmhfGdLTyyhSdFkQC11c","level":3,"time":"2024-09-17T13:19:23+00:00","remoteAddr":"91.60.135.90","user":"--","app":"index","method":"GET","url":"/nextcloud/","message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"29.0.5.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":453,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1380,"function":"searchValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":131,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":152,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":234,"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":709,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1184,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":47,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":167,"message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","exception":{},"CustomMessage":"Failed to connect to the database: An exception occurred in the driver: could not find driver"}}
{"reqId":"OmhfGdLTyyhSdFkQC11c","level":3,"time":"2024-09-17T13:19:23+00:00","remoteAddr":"91.60.135.90","user":"--","app":"core","method":"GET","url":"/nextcloud/","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"29.0.5.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":453,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1380,"function":"searchValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":131,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":152,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":234,"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":709,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1184,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":47,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":167,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}
{"reqId":"OmhfGdLTyyhSdFkQC11c","level":3,"time":"2024-09-17T13:19:23+00:00","remoteAddr":"91.60.135.90","user":"--","app":"core","method":"GET","url":"/nextcloud/","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"29.0.5.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":453,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":736,"function":"searchValues","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":237,"function":"getAppVersions","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":320,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/index.php","line":114,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":167,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}

That’s typically because you’re missing the phpX.Y-mysql dependency

But the best way to get stuff “clean” again is to force-upgrade nextcloud (though maybe that depends if you’re already on the latest version or not, maybe you don’t want to jump to 29.x or 30.x or whatever the latest version is)

Anyway the corresponding command would be sudo yunohost app upgrade nextcloud --force (forcing the upgrade makes sure that every conf / dependency gets regenerated)

So the removal worked fine indeed and removed the php 8.3 snippet but the issue was about the 8.2 … could it be that you upgraded the app prior to removing it ?

can’t say for sure, but I think that’s what happened. I think I hit “update all” in the yunohost admin interface and then realized that I’m running out of disk space and I better delete unused apps.

well I’ll be a monkey’s uncle :see_no_evil:. That worked like a charm! When I used to self-host, I would spend days manually tracking down all of those missing dependencies and here I solved the entire thing in a couple of seconds with a single command.

Thank you and thank all of you devs for your great support!

1 Like

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