Migration bookworm bloquée php 7.3 fpm

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: The webadmin
SSH

Describe your issue

J’ai tenté à plusieurs reprises la migration mais elle se bloque avec une erreur.
Erreur : 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''

Plus haut on trouve

Errors were encountered while processing:
2025-04-03 00:46:23,435: DEBUG -  php7.3-fpm
2025-04-03 00:46:23,435: DEBUG -  php7.3
2025-04-03 00:46:23,740: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)
2025-04-03 00:46:23,765: DEBUG - Setting up php7.3-fpm (7.3.33-24+0~20250311.131+debian12~1.gbp8dc7d2) ...
2025-04-03 00:46:26,551: WARNING - Job for php7.3-fpm.service failed because the control process exited with error code.
2025-04-03 00:46:26,553: WARNING - See "systemctl status php7.3-fpm.service" and "journalctl -xeu php7.3-fpm.service" for details.

J’ai tenté de dé-installer des apps éventuellement mais une erreur en lien avec php 7.3 revient.

Je ne sais pas trop par quel bout m’y prendre pour m’en sortir ou comprendre ce qu’il se passe :confused:

Share relevant logs or error messages

https://paste.yunohost.org/raw/eqoqidawey

Please help :folded_hands:

Hi there, sorry for the late answer !

Can you try sharing the output of journalctl -u php7.3-fpm -n 30 --no-pager --no-hostname ?

Thanks!

I’ve tried your command but the journal seems empty. When I try to execute it with sudoI’m now getting error is not in the sudoers file.

And using su I get su: Authentication failure :person_facepalming:

Going to restore backup from Hetzner then uninstall php7.3 and retry again I guess

eeeeer well you should keep trying using su and enter root’s password, which should be maybe the very first password your defined during postinstall

I see. I thought that since a while it was decided to abandon using root account for security purpose, hence it seems I forgot its password.

I’m restoring backup, and then as it restores my sudoers permission, I’ve just changed the root password following that post. And then, relaunching update and will be back when I’m again at the blocking php7.3 issue to share journal :slight_smile:

Here’s what I get when I try to perform the migration:

Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: Job for php7.3-fpm.service failed because the control process exited with error code.
Warning: See "systemctl status php7.3-fpm.service" and "journalctl -xeu php7.3-fpm.service" for details.
Warning: invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
Warning: dpkg: error processing package php7.3-fpm (--configure):
Warning:  installed php7.3-fpm package post-installation script subprocess returned error exit status 1
Warning: dpkg: dependency problems prevent configuration of php7.3:
Warning:  php7.3 depends on libapache2-mod-php7.3 | php7.3-fpm | php7.3-cgi; however:
Warning:   Package libapache2-mod-php7.3 is not installed.
Warning:   Package php7.3-fpm is not configured yet.
Warning:   Package php7.3-cgi is not installed.
Warning: 
Warning: dpkg: error processing package php7.3 (--configure):
Warning:  dependency problems - leaving unconfigured
Warning: Errors were encountered while processing:
Warning:  php7.3-fpm
Warning:  php7.3
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold''
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250409-100015-tools_migrations_migrate_forward' to get help

Et voici donc ce que j’obtiens en faisant journalctl -u php7.3-fpm -n 30 --no-pager --no-hostname :

Apr 09 12:17:17 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 2.
Apr 09 12:17:18 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager...
Apr 09 12:17:18 php-fpm7.3[563308]: [09-Apr-2025 12:17:18] ERROR: [pool synapse] cannot get uid for user 'matrix-synapse'
Apr 09 12:17:18 php-fpm7.3[563308]: [09-Apr-2025 12:17:18] ERROR: FPM initialization failed
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
Apr 09 12:17:18 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 3.
Apr 09 12:17:18 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager...
Apr 09 12:17:18 php-fpm7.3[563312]: [09-Apr-2025 12:17:18] ERROR: [pool synapse] cannot get uid for user 'matrix-synapse'
Apr 09 12:17:18 php-fpm7.3[563312]: [09-Apr-2025 12:17:18] ERROR: FPM initialization failed
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
Apr 09 12:17:18 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 4.
Apr 09 12:17:18 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:18 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager...
Apr 09 12:17:19 php-fpm7.3[563315]: [09-Apr-2025 12:17:19] ERROR: [pool synapse] cannot get uid for user 'matrix-synapse'
Apr 09 12:17:19 php-fpm7.3[563315]: [09-Apr-2025 12:17:19] ERROR: FPM initialization failed
Apr 09 12:17:19 systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
Apr 09 12:17:19 systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
Apr 09 12:17:19 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:19 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 5.
Apr 09 12:17:19 systemd[1]: Stopped php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
Apr 09 12:17:19 systemd[1]: php7.3-fpm.service: Start request repeated too quickly.
Apr 09 12:17:19 systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
Apr 09 12:17:19 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.

Il semble y avoir un souci avec Synapse. Ce qui est curieux, c’est que en faisant systemctl status php7.3-fpm je constate que php n’est pas démarré en effet ça donne : Apr 09 12:17:19 ziad2 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3>

Et pourtant, à ce stade mon client Element semble toujours connecté au noeud Synapse. :thinking: Et du coup j’ai vu qu’il y avait un autre fichier synapse.confdans /etc/php/8.3/fpm/pool.d du coup je fais l’hypothèse que le fichier synaps.conf qui est dans /etc/php/7.3/fpm/pool.d est obsolète. Je le renomme (pour pas l’effacer tout de suite). Et j’arrive à relancer le service php7.3 sans souci.

Je relance la migration sudo yunohost tools migrations run --accept-disclaimer

J’obtiens au lancement de la migration ces erreurs :

Error: Failed to read info for ihatemoney : Invalid version: '6.1.3~ynh1'
Error: Failed to read info for nextcloud : Invalid version: '29.0.9~ynh1'
Error: Failed to read info for nocodb : Invalid version: '0.255.0~ynh1'
Error: Failed to read info for rainloop : Invalid version: '1.17.0~ynh1'
Error: Failed to read info for synapse : Invalid version: '1.120.2~ynh1'
Error: Failed to read info for ttrss : Invalid version: '20241106~ynh1'
Error: Failed to read info for wallabag2 : Invalid version: '2.5.4~ynh4'
Error: Failed to read info for yourls : Invalid version: '1.9.2~ynh5'
Info: Running migration 0027_migrate_to_bookworm…

MAIS php7.3fpm ne bloque plus le process et la migration repart…

Bon ça va au bout mais j’ai plus de Synapse :person_facepalming:

Skipping matrix-synapse because virtualenv can't easily be rebuilt for this app. Instead, you should fix the situation by forcing the upgrade of this app using `yunohost app upgrade --force matrix-synapse`.
Info: Now attempting to rebuild the Python virtualenv for `ihatemoney`
Warning: ERROR: Could not find a version that satisfies the requirement cloud-init==22.4.2 (from versions: none)
Warning: ERROR: No matching distribution found for cloud-init==22.4.2
Error: Failed to rebuild the Python virtualenv for ihatemoney. The app may not work as long as this is not resolved. You should fix the situation by forcing the upgrade of this app using `yunohost app upgrade --force ihatemoney`.

Je tente yunohost app upgrade --force matrix-synapse mais j’obtiens : Error: Could not find matrix-synapse in the list of installed apps

Je tente de renommer correctement le fichier synapse.conf et je relance la migration. Je n’ai plus d’erreur Success! Migration 0031_terms_of_services completed

Le webadmin est en carafe erreur 500 nginx. Je redémarre le serveur.

Webadmin de retour.

Et je me rends compte qu’en fait le message de warning m’indiquait de faire yunohost app upgrade --force matrix-synapse alors qu’en fait dans la liste d’app l’app est nommée synapse. Je tente donc yunohost app upgrade --force matrix-synapse et le process se lance.

Et tout semble rentré dans l’ordre. Je crois qu’on est bon ! Merci pour le coup de pouse @Aleks ! Et si j’ai pas suivi la bonne méthode, n’hésite pas à me dire :folded_hands:

Encore bravo pour tout le boulot de la commu!