Can't Migrate to Bullseye

Hi Everyone,

I’ve noticed that my Wordpress gets the database error warning and after checking, I always see the MySQL service shutting down on it’s own. This usually fixes the issue with the server reboot, it happens every few months. However this is not the primary issue, I’m just unsure if it’s related. After rebooting the server, the SQL is fixed again and I noticed several updates and a migration prompt.

I tried to do the migration first but got an error, then decided to update all the system packages next. Towards the end of the system packages update, I got the error that the package manager is broken and performed the command, “sudo apt install --fix-broken”. Then after checking back to the system package installer, everything appears to be up-to-date without any action needed from me.

I proceeded back to continuing the Migration and received the following error. Please see below

System: Powered by YunoHost 11.0.9.14 (stable)
Hardware: VPS 1GB 25GB Disk Debian

Thanks and I appreciate any help in this :slight_smile:

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

ended_at: 2022-09-25 23:04:19.443121
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: api
operation: tools_migrations_migrate_forward
parent: null
started_at: 2022-09-25 23:04:19.408856
success: false
yunohost_version: 11.0.9.14

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

2022-09-25 23:04:19,416: INFO - Running migration 0021_migrate_to_bullseye…
2022-09-25 23:04:19,439: INFO - NB: the previous migration log id seems to be 20220901-125025-tools_migrations_migrate_forward. You can share it with the support team with : sudo yunohost log share 20220901-125025-tools_migrations_migrate_forward
2022-09-25 23:04:19,441: 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 786, 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.

As stated in the log, can you share the log of the “actual” migration that happened before (please share the url directly, copypasting the whole thing in the forum is not practical)

here you go :slight_smile:

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

sorry, please refer to this link instead for the original failed migration

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

Soooo I finally took the time to write a small bash script to “manually” finish the migration when it broke in the middle (in your case, it looks like this was a lack of RAM at the end maybe, cf the “Unable to fork”)

The finish_the_bullseye_migration script (not 100% tested so bear with me if there are some errors along the way) : finish_the_bullseye_migration · GitHub

You can run it with:

wget https://gist.githubusercontent.com/alexAubin/2eb588521117537c692f38a020f9b2d1/raw/ebe4f098a111caad0185e449888074571f25453e/finish_the_bullseye_migration.sh
sudo bash finish_the_bullseye_migration.sh
1 Like

This works well, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.