Mise à jour à Debian 11.4

Bon… @Aleks m’a bien débloqué pour finir la mise à jour. J’ai eu tout un tas d’erreurs et petits problèmes que j’ai pu résoudre mais il reste quelques soucis.

  1. Yunohost considère que l’upgrade vers Bullseye n’a pas terminé. J’ai l’impression que tout est OK mais je ne vois pas comment lui dire “chut, c’est OK!”.

Il y a pas mal de trucs encore en cours en fait :

# yunohost tools migrations state
migrations: 
  0001_change_cert_group_to_sslcert: skipped
  0002_migrate_to_tsig_sha256: skipped
  0003_migrate_to_stretch: skipped
  0004_php5_to_php7_pools: skipped
  0005_postgresql_9p4_to_9p6: skipped
  0006_sync_admin_and_root_passwords: skipped
  0007_ssh_conf_managed_by_yunohost_step1: skipped
  0008_ssh_conf_managed_by_yunohost_step2: skipped
  0009_decouple_regenconf_from_services: skipped
  0010_migrate_to_apps_json: skipped
  0011_setup_group_permission: skipped
  0012_postgresql_password_to_md5_authentication: skipped
  0013_futureproof_apps_catalog_system: done
  0014_remove_app_status_json: done
  0015_migrate_to_buster: done
  0016_php70_to_php73_pools: done
  0017_postgresql_9p6_to_11: done
  0018_xtable_to_nftable: done
  0019_extend_permissions_features: done
  0020_ssh_sftp_permissions: done

Il voit quatre migrations “pending” :

# yunohost tools migrations list
migrations: 
  0: 
    description: Upgrade the system to Debian Bullseye and YunoHost 11.x
    disclaimer: None
    id: 0021_migrate_to_bullseye
    mode: manual
    name: migrate_to_bullseye
    number: 21
    state: pending
  1: 
    description: Migrate php7.3-fpm 'pool' conf files to php7.4
    disclaimer: None
    id: 0022_php73_to_php74_pools
    mode: auto
    name: php73_to_php74_pools
    number: 22
    state: pending
  2: 
    description: Migrate databases from PostgreSQL 11 to 13
    disclaimer: None
    id: 0023_postgresql_11_to_13
    mode: auto
    name: postgresql_11_to_13
    number: 23
    state: pending
  3: 
    description: Repair Python app after bullseye migration
    disclaimer: Following the upgrade to Debian Bullseye, some Python applications needs to be partially rebuilt to get converted to the new Python version shipped in Debian (in technical terms: what's called the 'virtualenv' needs to be recreated). In the meantime, those Python applications may not work. YunoHost can attempt to rebuild the virtualenv for some of those, as detailed below. For other apps, or if the rebuild attempt fails, you will need to manually force an upgrade for those apps.

Rebuilding the virtualenv will be attempted for the following apps (NB: the operation may take some time!): 
    - borg-env
    id: 0024_rebuild_python_venv
    mode: manual
    name: rebuild_python_venv
    number: 24
    state: pending

J’ai essayé de lire le script de mise à jour mais je n’arrive pas à voir où il a coincé et ce que je peux faire pour résoudre le problème. :thinking:

[edit: Je vois sur ce post une solution pour lui faire skipper “0021_migrate_to_bullseye”.

Je tente ça :

# yunohost tools migrations run 0021_migrate_to_bullseye --skip
Warning: Skipping migration 0021_migrate_to_bullseye...

Ça coince quand même plus loin.

# yunohost tools migrations run 0022_php73_to_php74_pools
Info: Running migration 0022_php73_to_php74_pools...
Synchronizing state of php7.3-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable php7.3-fpm
insserv: script noderige: service noderig already provided!
insserv: warning: current start runlevel(s) (empty) of script `php7.3-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php7.3-fpm' overrides LSB defaults (0 1 6).
insserv: script noderige: service noderig already provided!
Removed /etc/systemd/system/multi-user.target.wants/php7.3-fpm.service.
Error: Migration 0022_php73_to_php74_pools did not complete, aborting. Error: Unknown service 'php7.4-fpm'
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220913-191501-tools_migrations_migrate_forward' to get help

# yunohost tools migrations run 0023_postgresql_11_to_13
Info: Running migration 0023_postgresql_11_to_13...
Info: No YunoHost app seem to require postgresql... Skipping!
Success! Migration 0023_postgresql_11_to_13 completed

# yunohost tools migrations run 0024_rebuild_python_venv --accept-disclaimer
Info: Running migration 0024_rebuild_python_venv...
Info: Now attempting to rebuild the Python virtualenv for `borg-env`
Success! Migration 0024_rebuild_python_venv completed

Pour php, voici ce que je viens de faire :

# sudo apt install php7.4-fpm

J’ai pu relancer la migration et cette fois c’est bon!


  1. Le serveur Matrix, Synapse, est planté.

J’ai tenté de le mettre à jour via la webadmin et … L’application a disparu de la liste des applications installées. :scream:

Voici les logs : logs de mise à jour de Synapse
(Il faut encore que je les lise pour essayer de comprendre ce qui coince.)

Ce problème me tracasse un peu… :worried: Je pense que le soucis vient du fait que la migration “0024_rebuild_python_venv” n’a pas pu se faire correctement.


  1. resolv.conf a été modifié à la main (voir plus haut). Le diagnostic ( :heart_eyes: ) indique sur quoi il doit pointer :

Le fichier /etc/resolv.conf doit être un lien symbolique vers /etc/resolvconf/run/resolv.conf lui-même pointant vers 127.0.0.1 (dnsmasq). Si vous souhaitez configurer manuellement les résolveurs DNS, veuillez modifier /etc/resolv.dnsmasq.conf.


  1. Les backups ne marchaient plus, le service Borg a l’air de fonctionner mais il va falloir que je vérifie que tout est bien carré à ce niveau là.

  1. Le diagnostic me dit que j’ai modifié le fichier /etc/mysql/my.cnf à la main alors que je suis sûr de ne pas y avoir touché.

J’ai essayé :

# yunohost tools regen-conf mysql --dry-run --with-diff 
# yunohost tools regen-conf mysql --force

Mais les commandes ne renvoient rien. Le fichier est bien là et il ne me semble pas bizarre.