Hey all,
I encountered an issue migrating to v11 and wanted to report so it may help others if they encounter the same. Trying to migrate to v11 worked fine for quiet some time however somewhere around the end it broke.
Infos about my server
I am using an “old installation” started with around Yunohost 2 and migrated until v11 without re-installation. I am using several Apps such as seafile, sogo and vaultwarden. During the years I was using roundcube and rainloop but deinstalled those months ago.
Migration
Error
Trying to migrate generated the following error:
Warning: Errors were encountered while processing:
Warning: php7.0-fpm
Warning: php7.0
Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: Could not upgrade packages: guile-2.2-libs, libobjc4
Info: The operation 'Upgrade system packages' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220811-152303-tools_upgrade' to get help
Warning: unable to retrieve string to translate with key 'Could not upgrade all the packages' for default locale 'locales/en.json' file (don't panic this is just a warning)
Error: Migration 0021_migrate_to_bullseye did not complete, aborting. Error: Could not upgrade all the packages
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220811-152237-tools_migrations_migrate_forward' to get help
Solution
It turned out that an php7.0-fpm error is the missing /var/www/rainloop
folder on my hard drive. This can be seen when trying to deinstall php7.0-fpm using apt. Adding the directory got me one step further but didn’t solve the migration error.
Diging deeper and trying to understand why the system is actually looking for/into /var/www/rainloop
I discovered the configuration folder in /etc/php/7.0/fpm/pool.d
containing configurations - among others - for rainloop.conf
and roundcube.conf
.
Server state
After migration I got the notification that php7.0-fpm service is not running however I was able to start it manually (see “Yunohost Webadmin Diagnosis”). My Seafile installation is broken (seafile service is running, seahub service can’t start) but everything else is working as far as I can tell.
tldr
Failing to migrate because of php7.0-fpm might be caused due to outdated configuration files of deleted apps in /etc/php/7.0/fpm/pool.d
. Removing the outdated configuration might solve your issue.