Migration Buster vers Bulleyes

Bonjour

Mon serveur YunoHost

**Matériel : VM sous Freebox Delta
Version de YunoHost: 11.0.10.2
J’ai accès à mon serveur : En SSH et Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

La migration n’est pas complète. Aucun souci de fonctionnement, mais à chaque mise à jour, il indique que la migration ne s’est pas correctement déroulée.

Voici des messages d’erreurs :
"ended_at: 2022-11-01 12:03:26.309946
error: ‘Migration 0021_migrate_to_bullseye did not complete, aborting. Error: The
current Debian distribution is not Buster! If you already ran the Buster->Bullseye
migration, then this error is symptomatic of the fact that the migration procedure
was not 100% succesful (otherwise YunoHost would have flagged it as completed).
It is recommended to investigate what happened with the support team, who will need
the full log of the `migration, which can be found in Tools > Logs in the webadmin.’
interface: cli
operation: tools_migrations_migrate_forward
parent: null
started_at: 2022-11-01 12:03:26.253198
success: false
yunohost_version: 11.0.10.2

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

2022-11-01 13:03:26,268: INFO - Running migration 0021_migrate_to_bullseye…
2022-11-01 13:03:26,307: ERROR - Migration 0021_migrate_to_bullseye did not complete, aborting. Error: The current Debian distribution is not Buster! If you already ran the Buster->Bullseye migration, then this error is symptomatic of the fact that the migration procedure was not 100% succesful (otherwise YunoHost would have flagged it as completed). It is recommended to investigate what happened with the support team, who will need the full log of the migration, which can be found in Tools > Logs in the webadmin. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 814, in tools_migrations_run migration.run() File "/usr/lib/python3/dist-packages/yunohost/migrations/0021_migrate_to_bullseye.py", line 82, in run self.check_assertions() File "/usr/lib/python3/dist-packages/yunohost/migrations/0021_migrate_to_bullseye.py", line 414, in check_assertions raise YunohostError("migration_0021_not_buster2") yunohost.utils.error.YunohostError: The current Debian distribution is not Buster! If you already ran the Buster->Bullseye migration, then this error is symptomatic of the fact that the migration procedure was not 100% succesful (otherwise YunoHost would have flagged it as completed). It is recommended to investigate what happened with the support team, who will need the **full** log of the migration, which can be found in Tools > Logs in the webadmin."

bonjour
peux tu partager les journaux de tes logs pour les dernières installations?
Dans le menu de WebAdmin de ton site chercher

Outils > Journaux

bonjour,
voici https://paste.yunohost.org/raw/losaxudija

Plop

Rien d’autres ? Ca, c’est une copie de ton premier message qui dit de filer les full logs sur le forum :slight_smile:

Lorsque vais dans l’interface web admin, outils, logs, je n’ai que ça. Je devrais en avoir plus en CLI peut-être ?

Si c’était il y a “longtemps” alors oui tu peux tenter de lister + d’entrées avec sudo yunohost log list --limit 200 | grep -C3 -i migrat

Puis partager l’entrée trouvée avec l’identifiant du log correspondant (un truc du genre 2022xxyy-1234567-migrate_stuff):

sudo yunohost log share 2022xxyy-1234567-migrate_stuff

Merci. Mais les derniers logs sont d’hier et les mêmes que j’ai partagés.
D’après le message d’erreur, il m’indique que je ne suis pas en version bullseye. En tapant la commande lsb_release -a, il indique :
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

la commande yunohost tools update m’indique ceci
pending_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: None
id: 0024_rebuild_python_venv
mode: auto
name: rebuild_python_venv
number: 24
state: pending

Le log que tu as déjà partagé est symptomatique que tu avais déjà fait tourné la migration auparavant et qu’elle ne s’est pas bien terminé …

Donc, est-ce que tu peux nous en dire un peu plus sur par exemple quand tu as tenté la toute première fois la migration …

Malheureusement, je n’ai pas noté les erreurs que j’ai eues… Voyant que la version Debian celle de Yunohost étaient bien passées finalement. Et les applications fonctionnent correctement :slight_smile:

same error for me : https://paste.yunohost.org/raw/hiqavezani

As stated in the log, can you share the full log :

NB: the previous migration log id seems to be 20220819-070538-tools_migrations_migrate_forward. You can share it with the support team with : sudo yunohost log share 20220819-070538-tools_migrations_migrate_forward

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

You have ffsync installed, which is not supported anymore because it requires python 2, which is a deprecated technology, and ffsync is also not maintained by Mozilla anymore since a few years.

The recommended course of action is unfortunately to uninstall ffsync

ffsync removed but still issues for migration : https://paste.yunohost.org/raw/ufuyorejeh

It looks like you ran a system upgrade “manually” since then instead of re-running the migration …

Since this happens quite often I wrote a script to “manually” finish the migration

You can run it with

sudo su # to become root if not root already
cd /root/
wget https://gist.githubusercontent.com/alexAubin/2eb588521117537c692f38a020f9b2d1/raw/ebe4f098a111caad0185e449888074571f25453e/finish_the_bullseye_migration.sh
bash finish_the_bullseye_migration.sh
1 Like

works perfectly ! thanks a lot for your support !! :slight_smile: