Upgrade to Yunohost 12 Bookworm failed

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: Yunohost 4
How are you able to access your server: The webadmin

Describe your issue

Hello , I ran into an Error when Upgrading to Yunohost 12. It should be a Problem with php 7.3 fpm but i have tried all the Solutions here in the Forum. Nothing works for me. Can someone please have a look at my Logs ?

Share relevant logs or error messages

ended_at: 2025-03-06 08:53:44.108777
error: 'Migration 0027_migrate_to_bookworm gescheitert mit der Ausnahme Failed to
  run command ''aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why
  -o APT::Force-LoopBreak=1 -o Dpkg::Options::=''--force-confold'''': Abbruch'
interface: api
operation: tools_migrations_migrate_forward
parent: null
started_at: 2025-03-06 08:51:46.516523
success: false
yunohost_version: 11.3.0.2

============

2025-03-06 08:51:46,531: INFO - Durchführen der Migrationen 0027_migrate_to_bookworm…
2025-03-06 08:51:46,544: INFO - Starting migration to Bookworm…
2025-03-06 08:51:47,282: INFO - Patching the sources.lists file…
2025-03-06 08:51:48,102: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none aptitude update --quiet=2 -o=Dpkg::Use-Pty=0 -o "APT::Status-Fd=$YNH_STDINFO"
2025-03-06 08:51:53,417: WARNING - W: http://raspbian.raspberrypi.org/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
2025-03-06 08:51:53,418: WARNING - W: Skipping acquire of configured file 'non-free-firmware/binary-armhf/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bookworm InRelease' doesn't have the component 'non-free-firmware' (component misspelt in sources.list?)
2025-03-06 08:51:53,419: WARNING - W: Skipping acquire of configured file 'non-free-firmware/i18n/Translation-en' as repository 'http://raspbian.raspberrypi.org/raspbian bookworm InRelease' doesn't have the component 'non-free-firmware' (component misspelt in sources.list?)
2025-03-06 08:51:53,420: WARNING - W: http://archive.raspberrypi.org/debian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
2025-03-06 08:52:09,675: INFO - Applying patch to workaround conflict issue…
2025-03-06 08:52:09,767: DEBUG - Running: sed -i /var/lib/dpkg/status -e 's@Conflicts: apache2, bind9@Conflicts: apache2, bind9@g'
2025-03-06 08:52:09,800: INFO - Starting main upgrade…
2025-03-06 08:52:09,850: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none aptitude markauto mariadb-server metronome rspamd php-common php-fpm php-mbstring php-pear php-php-gettext php-xml php7.3-bcmath php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-gmp php7.3-json php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-soap php7.3-ssh2 php7.3-xml php7.3-zip php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-geoip php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-sqlite3 php7.4-xml php7.4-zip php8.0-cli php8.0-common php8.0-mbstring php8.0-opcache php8.0-readline php8.0-xml php8.1-cli php8.1-common php8.1-mbstring php8.1-opcache php8.1-readline php8.1-xml php8.2 php8.2-bcmath php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-xml php8.3-cli php8.3-common php8.3-mbstring php8.3-opcache php8.3-readline php8.3-xml --quiet=2 -o=Dpkg::Use-Pty=0 -o "APT::Status-Fd=$YNH_STDINFO"
2025-03-06 08:52:29,179: DEBUG - Package rspamd is not installed, cannot be marked/unmarked as automatically installed
2025-03-06 08:52:30,230: DEBUG - Running: YUNOHOST_API_RESTART_WILL_BE_HANDLED_BY_YUNOHOST=yes LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none aptitude hold yunohost moulinette ssowat yunohost-admin 2fauth-ynh-deps emailpoubelle-ynh-deps grav-ynh-deps opensondage-ynh-deps send-ynh-deps sogo-ynh-deps spftoolbox-ynh-deps wordpress-ynh-deps yourls-ynh-deps --quiet=2 -o=Dpkg::Use-Pty=0 -o "APT::Status-Fd=$YNH_STDINFO"
2025-03-06 08:52:38,575: DEBUG - Running: sed -i /var/lib/dpkg/status -e 's@rspamd, @@g'
2025-03-06 08:52:38,608: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold' --quiet=2 -o=Dpkg::Use-Pty=0 -o "APT::Status-Fd=$YNH_STDINFO"
2025-03-06 08:52:51,279: DEBUG - cron is already installed at the latest version (3.0pl1-162), so it will not be upgraded
2025-03-06 08:52:51,280: DEBUG - Package rspamd is not installed, so it will not be removed
2025-03-06 08:52:51,280: DEBUG - Package luajit is not installed, so it will not be removed
2025-03-06 08:52:51,280: DEBUG - Package libluajit-5.1-2 is not installed, so it will not be removed
2025-03-06 08:52:51,281: DEBUG - cron is already installed at the latest version (3.0pl1-162), so it will not be upgraded
2025-03-06 08:52:51,281: DEBUG - Package rspamd is not installed, so it will not be removed
2025-03-06 08:52:51,282: DEBUG - Package luajit is not installed, so it will not be removed
2025-03-06 08:52:51,282: DEBUG - Package libluajit-5.1-2 is not installed, so it will not be removed
2025-03-06 08:52:51,282: DEBUG - The following packages will be REMOVED:
2025-03-06 08:52:51,283: DEBUG -   php-fpm{u}
2025-03-06 08:52:51,283: DEBUG - The following partially installed packages will be configured:
2025-03-06 08:52:51,283: DEBUG -   php7.3-fpm
2025-03-06 08:52:51,284: DEBUG - 0 packages upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
2025-03-06 08:52:51,284: DEBUG - Need to get 0 B of archives. After unpacking 10.2 kB will be freed.
2025-03-06 08:53:00,789: DEBUG - Do you want to continue? [Y/n/?]
2025-03-06 08:53:00,796: DEBUG - Removing php-fpm (2:8.2+93) ...
2025-03-06 08:53:00,797: INFO - [....................] > 0.0% Installing php-fpm
2025-03-06 08:53:02,028: DEBUG - Setting up php7.3-fpm (7.3.33-24+0~20241224.123+debian12~1.gbp64cad4) ...
2025-03-06 08:53:02,029: INFO - [########............] > 40.0% Installing php7.3-fpm
2025-03-06 08:53:14,078: DEBUG - insserv: warning: current start runlevel(s) (empty) of script `php7.3-fpm' overrides LSB defaults (2 3 4 5).
2025-03-06 08:53:14,078: DEBUG - insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php7.3-fpm' overrides LSB defaults (0 1 6).
2025-03-06 08:53:16,623: DEBUG - Job for php7.3-fpm.service failed because the control process exited with error code.
2025-03-06 08:53:16,624: DEBUG - See "systemctl status php7.3-fpm.service" and "journalctl -xeu php7.3-fpm.service" for details.
2025-03-06 08:53:16,625: DEBUG - invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
2025-03-06 08:53:16,646: DEBUG - * php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
2025-03-06 08:53:16,647: DEBUG -      Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; disabled; preset: enabled)
2025-03-06 08:53:16,647: DEBUG -      Active: activating (auto-restart) (Result: exit-code) since Thu 2025-03-06 08:53:16 GMT; 25ms ago
2025-03-06 08:53:16,647: DEBUG -        Docs: man:php-fpm7.3(8)
2025-03-06 08:53:16,648: DEBUG -     Process: 13799 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
2025-03-06 08:53:16,648: DEBUG -     Process: 13800 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
2025-03-06 08:53:16,648: DEBUG -    Main PID: 13799 (code=exited, status=78)
2025-03-06 08:53:16,648: DEBUG -         CPU: 270ms
2025-03-06 08:53:16,661: DEBUG - dpkg: error processing package php7.3-fpm (--configure):
2025-03-06 08:53:16,819: DEBUG -  installed php7.3-fpm package post-installation script subprocess returned error exit status 1
2025-03-06 08:53:18,485: DEBUG - Errors were encountered while processing:
2025-03-06 08:53:18,486: DEBUG -  php7.3-fpm
2025-03-06 08:53:19,101: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)
2025-03-06 08:53:19,142: DEBUG - Setting up php7.3-fpm (7.3.33-24+0~20241224.123+debian12~1.gbp64cad4) ...
2025-03-06 08:53:31,195: WARNING - insserv: warning: current start runlevel(s) (empty) of script `php7.3-fpm' overrides LSB defaults (2 3 4 5).
2025-03-06 08:53:31,197: WARNING - insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php7.3-fpm' overrides LSB defaults (0 1 6).
2025-03-06 08:53:33,758: WARNING - Job for php7.3-fpm.service failed because the control process exited with error code.
2025-03-06 08:53:33,760: WARNING - See "systemctl status php7.3-fpm.service" and "journalctl -xeu php7.3-fpm.service" for details.
2025-03-06 08:53:33,762: WARNING - invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
2025-03-06 08:53:33,797: DEBUG - * php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
2025-03-06 08:53:33,798: DEBUG -      Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; disabled; preset: enabled)
2025-03-06 08:53:33,799: DEBUG -      Active: activating (auto-restart) (Result: exit-code) since Thu 2025-03-06 08:53:33 GMT; 26ms ago
2025-03-06 08:53:33,800: DEBUG -        Docs: man:php-fpm7.3(8)
2025-03-06 08:53:33,818: DEBUG -     Process: 15218 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
2025-03-06 08:53:33,819: DEBUG -     Process: 15219 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
2025-03-06 08:53:33,819: DEBUG -    Main PID: 15218 (code=exited, status=78)
2025-03-06 08:53:33,819: DEBUG -         CPU: 272ms
2025-03-06 08:53:33,819: WARNING - dpkg: error processing package php7.3-fpm (--configure):
2025-03-06 08:53:33,821: WARNING -  installed php7.3-fpm package post-installation script subprocess returned error exit status 1
2025-03-06 08:53:34,085: WARNING - Errors were encountered while processing:
2025-03-06 08:53:34,086: WARNING -  php7.3-fpm
2025-03-06 08:53:44,091: ERROR - Migration 0027_migrate_to_bookworm gescheitert mit der Ausnahme Failed to run command 'aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold'': Abbruch
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 786, in tools_migrations_run
    migration.run()
  File "/usr/lib/python3/dist-packages/yunohost/migrations/0027_migrate_to_bookworm.py", line 204, in run
    aptitude_with_progress_bar(
  File "/usr/lib/python3/dist-packages/yunohost/utils/system.py", line 315, in aptitude_with_progress_bar
    raise YunohostError(
yunohost.utils.error.YunohostError: Failed to run command 'aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold''

Eeh okay so let’s try to obtain more details with : sudo journalctl -u php7.3-fpm -n 50 --no-pager --no-hostname

Thank you for your response, here is the result of the command:

Mar 06 08:53:19 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:19 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:33 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager…
Mar 06 08:53:33 php-fpm7.3[15218]: [06-Mar-2025 08:53:33] ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory
Mar 06 08:53:33 php-fpm7.3[15218]: [06-Mar-2025 08:53:33] ERROR: failed to post process the configuration
Mar 06 08:53:33 php-fpm7.3[15218]: [06-Mar-2025 08:53:33] ERROR: FPM initialization failed
Mar 06 08:53:33 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Mar 06 08:53:33 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:33 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 1.
Mar 06 08:53:34 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:34 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager…
Mar 06 08:53:34 php-fpm7.3[15223]: [06-Mar-2025 08:53:34] ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory
Mar 06 08:53:34 php-fpm7.3[15223]: [06-Mar-2025 08:53:34] ERROR: failed to post process the configuration
Mar 06 08:53:34 php-fpm7.3[15223]: [06-Mar-2025 08:53:34] ERROR: FPM initialization failed
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:34 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 2.
Mar 06 08:53:34 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:34 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager…
Mar 06 08:53:34 php-fpm7.3[15229]: [06-Mar-2025 08:53:34] ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory
Mar 06 08:53:34 php-fpm7.3[15229]: [06-Mar-2025 08:53:34] ERROR: failed to post process the configuration
Mar 06 08:53:34 php-fpm7.3[15229]: [06-Mar-2025 08:53:34] ERROR: FPM initialization failed
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Mar 06 08:53:34 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:34 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 3.
Mar 06 08:53:35 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:35 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager…
Mar 06 08:53:35 php-fpm7.3[15233]: [06-Mar-2025 08:53:35] ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory
Mar 06 08:53:35 php-fpm7.3[15233]: [06-Mar-2025 08:53:35] ERROR: failed to post process the configuration
Mar 06 08:53:35 php-fpm7.3[15233]: [06-Mar-2025 08:53:35] ERROR: FPM initialization failed
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:35 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 4.
Mar 06 08:53:35 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:35 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager…
Mar 06 08:53:35 php-fpm7.3[15236]: [06-Mar-2025 08:53:35] ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory
Mar 06 08:53:35 php-fpm7.3[15236]: [06-Mar-2025 08:53:35] ERROR: failed to post process the configuration
Mar 06 08:53:35 php-fpm7.3[15236]: [06-Mar-2025 08:53:35] ERROR: FPM initialization failed
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Mar 06 08:53:35 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:35 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:36 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 5.
Mar 06 08:53:36 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Mar 06 08:53:36 systemd[1]: php7.3-fpm.service: Start request repeated too quickly.
Mar 06 08:53:36 systemd[1]: php7.3-fpm.service: Failed with result ‘exit-code’.
Mar 06 08:53:36 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.

Thank you so much, i have tell you many thanks. For all otherts who run into this issue:
Run as su: sudo journalctl -u php7.3-fpm -n 50 --no-pager --no-hostname

Then you will get an list and in my case there was an error caus i have deleted in the past one app: Alltube

you can see this here
ERROR: [pool alltube] the chdir path ‘/var/www/alltube’ does not exist or is not a directory

What you have the to do:
rm /etc/php/7.3/fpm/pool.d/NAMEOFYOURERRORAPP.conf

At last run
sudo dpkg --configure php7.3-fpm

If you get another error, you must again start this procedere cause ther are probably anather old app

2 Likes