This page is dedicated to help you migrating an instance from YunoHost 4.4.x (running on Debian Buster/10.x) to YunoHost 11.x (running on Debian Bullseye/11.x). Note: we decided to skip the version numbers from 5 to 10 to follow the Debian version numbers.
The YunoHost team did its best to make sure that the migration is as smooth as possible and was tested over the course of several months in several cases.
With that said, please be aware that this is a delicate operation. System administration is a complicated topic and covering every particular cases is quite hard. Therefore, if you host critical data and services, please make backups. And in any case, be patient and attentive during the migration.
Please don't rush into thinking that you should need to reinstall your system from scratch thinking it would be "simpler" (sigh). (A common attitude is to be willing to reinstall a server at the slightest complication...) Instead, if you happen to run into issues, we encourage you to try to investigate and understand what's going on and reach for help on the chat and the forum.
After upgrading to 4.4.x, go to Tools > Migrations to access the migrations interface. You will have to read carefully and accept the disclaimer then launch the migration.
After upgrading to 4.4.x, run :
sudo yunohost tools migrations migrate
then read carefully and accept the disclaimer.
Depending on your hardware and packages installed, the migration might take up to a few hours.
The logs will be shown in the message bar (you can hover it to see the whole history). They will also be available after the migration (like any other operations) in Tools > Logs.
Note that even if you close the webadmin page for some reason, the migration will continue in the background (but the webadmin will be partially unavailable).
If the migration failed at some point, it should be possible to relaunch it. If it still doesn't work, you can try to get help (please provide the corresponding messages or whatever makes you tell that it's not working).
For this, go in Diagnosis (category Base system) or look at the footer of the webadmin. In the command line, you can use
lsb_release -a and
After upgrading, your python apps should be unavailable cause their virtual env need to be rebuild.
To do that you can run the pending migrations in
Webadmin > Update. The apps below won't be automatically repaired, you need to force upgrade them manually instead with
yunohost app upgrade -f APP.
Apps which won't be automatically repaired and need a force upgrade:
If needed, you can disable the automatic rebuild for a specific python app, by removing the dedicated file ended by
.requirements_backup_for_bullseye_upgrade.txt before to apply the migration. You can find this file near the venv of your app inside
Also in the Diagnosis in the webadmin, make sure that no specific issue appeared after running the migration (for example a service that crashed for some reason).
If the service php7.3-fpm appears to be dead, you should upgrade your PHP apps like the custom web app. Next, you can run
Test that your applications are working. If they aren't, you should try to upgrade them (it is also a good idea to upgrade them even if they are working anyway).
If your app is broken and you were already with the last version, you can rerun the upgrade thanks to the
yunohost app upgrade --force APP_NAME
Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to suggest changes.