I have over 20 services that I provide for the public. You can see them here https://trom.tf/ - we have a few thousand users.
So. After the migration finishes I see the Migration page and no message. I am left confused to be honest and I think that the process is done. However the diagnosis shows me that the wemadmin failed to upgrade to the latest. I had to SSH into the server and do some “fix broken packages” thingy that was suggested by the webadmin error.
I then saw my Matrix server and other services not working. I thought to reboot the server. After was rebooted they still didn’t work. It seems postgres was running in the background. And I killed it. So I had to go to the Migrations page again and run it from there.
Basically I didn’t get a proper feedback for what was happening. And admins will be confused. Maybe run a diagnosis after the upgrade is done, then if any errors show them in the same Window where the migration happens + instructions of how they can be fixed.
Anyway, I ran the postgres that took some 30 minutes. But then several services were not working.
Matrix synapse won’t start anymore. It seems you have to do a force upgrade to fix it: yunohost app upgrade --force synapse -u https://github.com/YunoHost-Apps/synapse_ynh/tree/master - after that force upgrade it works but am not sure if properly. Still testing.
systemctl status lufi.service
Loaded: not-found (Reason: Unit lufi.service not found.)
Active: failed (Result: exit-code) since Thu 2022-08-18 22:29:28 CEST; 1min 17s ago
Aug 18 22:29:27 server.trom.tf systemd: Starting Image hosting and sharing service...
Aug 18 22:29:28 server.trom.tf carton: Encode.c: loadable library and perl binaries are mism>
Aug 18 22:29:28 server.trom.tf systemd: lufi.service: Control process exited, code=exited, status>
Aug 18 22:29:28 server.trom.tf systemd: lufi.service: Failed with result 'exit-code'.
Aug 18 22:29:28 server.trom.tf systemd: Failed to start Image hosting and sharing service.
Damn it was postgres…it took some 7 hours to finish for such a huge database. But now all works fine. Thank you YNH for being awesome. I totally understand that for such big servers like mine, this kind of massive update cannot go that smooth.
Migration completed on 2 instances.
2 minor issues:
-One of my instance is an encrypted Debian on Kimsufi, installed using the following script:
The migration initially failed because grub-pc update required the user to pick the drive/partition on which Grub is to be installed. I launched an apt upgrade manually, set grub, then re-launch the migration script and all went well.
-Invidious (Youtube front-end) was no longer working. Error message: /var/www/invidious/invidious: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or di
This libevent file version is not available on Debian 11, but the real issue is Invidious must be rebuilt against upgraded dev packages. Fixed by the following if someone needs it: sudo yunohost app upgrade invidious -u https://github.com/YunoHost-Apps/invidious_ynh --debug --force
There may be more packages that need a rebuild vs upgraded libraries. I’m wondering if that could be “detected” in the future (ex: concerned packages would need a “migration” script forcing a rebuild) ?