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.
Et du coup j’ai vu qu’il y avait un autre fichier synapse.conf
dans /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 
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 
Encore bravo pour tout le boulot de la commu!