Migration from 11th to 12th fails

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: The webadmin
SSH

Describe your issue

Hi all,
I wanted to migrate my Yunohost 11 / debian 11 to Yunohost 12 / debian 12. I have updated all packages and APPs (as far as possible). Under the CLI, I run the command yunohost tools migrations run but there was nothing to do: Info: Keine Migrationen durchzuführen.

The Command yunohost tools migrations state shows

migrations: 
  0021_migrate_to_bullseye: skipped
  0022_php73_to_php74_pools: skipped
  0023_postgresql_11_to_13: skipped
  0024_rebuild_python_venv: skipped
  0025_global_settings_to_configpanel: skipped
  0026_new_admins_group: skipped
  0027_migrate_to_bookworm: skipped

But I m on debian 11 and yunohost 11. I checked this. So I run yunohost tools migrations run 0027_migrate_to_bookworm --force-rerun and than
yunohost tools migrations run 0027_migrate_to_bookworm --force-rerun --accept-disclaimer Than the process starts.

But! It runs until

:
Info: Starting YunoHost core upgrade…
Info: Downloading...
Info: [....................] > 0.0% Installing lua-bitop
Info: [#...................] > 5.1% Installing metronome
Info: [##..................] > 10.3% Installing lua-event
Info: [###.................] > 15.4% Installing lua-expat
Info: [####................] > 20.5% Installing lua-sec
Info: [#####...............] > 25.6% Installing lua-zlib
Info: [######..............] > 30.8% Installing lua5.3
Info: [#######.............] > 35.9% Installing php-php-gettext
Info: [########............] > 41.0% Installing php-mbstring
Info: [#########...........] > 46.2% Installing php7.4-curl
Info: [##########..........] > 51.3% Installing php7.4-fpm
Info: [###########.........] > 56.4% Installing php7.4-intl
Info: [############........] > 61.5% Installing php7.4-ldap
Info: [#############.......] > 66.7% Installing php7.4-mbstring
Info: [##############......] > 71.8% Installing php7.4-mysql
Info: [###############.....] > 76.9% Installing python3-typing-extensions
Info: [#################...] > 87.2% Installing yunohost-portal
Info: [####################] > 100.0% Done 

and than it stops

Fehler: Migration 0027_migrate_to_bookworm gescheitert mit der Ausnahme Still on YunoHost 11.x at the end of the migration, eh? Sounds like the migration didn't really complete!?: Abbruch
Info: Der Vorgang'Migrationen durchführen' konnte nicht abgeschlossen werden.

Than I checked the OS:

lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

and Yunohost Version

yunohost --version
yunohost: 
  repo: stable
  version: 11.3.0.2
yunohost-admin: 
  repo: stable
  version: 11.3.0
moulinette: 
  repo: stable
  version: 11.3.0
ssowat: 
  repo: stable
  version: 11.3.0

What can I do to migrate to 12?
Has some one some suggestions?

Share relevant logs or error messages

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

Hmyeah aptitude didn’t found a way to properly upgrade some package :

2025-02-05 10:39:43,775: DEBUG -       Keep the following packages at their current version:
2025-02-05 10:39:43,775: DEBUG - 1)      libluajit-5.1-2 [2.1.0~beta3+git20220320+dfsg-4.1 (now, stable)]
2025-02-05 10:39:43,775: DEBUG - 2)      libluajit-5.1-common [2.1.0~beta3+git20220320+dfsg-4.1 (now, stable)]
2025-02-05 10:39:43,775: DEBUG - 3)      libluajit2-5.1-2 [Not Installed]
2025-02-05 10:39:43,775: DEBUG - 4)      libnginx-mod-http-auth-pam [1.18.0-6.1+deb11u3 (now)]
[...]
2025-02-05 10:39:43,776: DEBUG - 23)     libnginx-mod-stream-geoip2 [1.18.0-6.1+deb11u3 (now)]
2025-02-05 10:39:43,776: DEBUG - 24)     libperl5.36 [Not Installed]
2025-02-05 10:39:43,776: DEBUG - 25)     lua-ldap [1.3.0-2+b1 (now, stable)]
2025-02-05 10:39:43,776: DEBUG - 26)     lua-resty-core [Not Installed]
2025-02-05 10:39:43,777: DEBUG - 27)     lua-resty-lrucache [Not Installed]
2025-02-05 10:39:43,777: DEBUG - 28)     lua-rex-pcre [2.7.2-4.1 (now)]
2025-02-05 10:39:43,777: DEBUG - 29)     moulinette [11.3.0 (now)]
2025-02-05 10:39:43,777: DEBUG - 30)     nginx [Not Installed]
2025-02-05 10:39:43,777: DEBUG - 31)     nginx-common [1.18.0-6.1+deb11u3 (now)]
2025-02-05 10:39:43,777: DEBUG - 32)     nginx-extras [1.18.0-6.1+deb11u3 (now)]
2025-02-05 10:39:43,777: DEBUG - 33)     perl [5.32.1-4+deb11u4 (now)]
2025-02-05 10:39:43,777: DEBUG - 34)     perl-base [5.32.1-4+deb11u4 (now)]
2025-02-05 10:39:43,777: DEBUG - 35)     perl-modules-5.36 [Not Installed]
2025-02-05 10:39:43,777: DEBUG - 36)     ssowat [11.3.0 (now)]
2025-02-05 10:39:43,777: DEBUG - 37)     yunohost [11.3.0.2 (now)]
2025-02-05 10:39:43,777: DEBUG - 38)     yunohost-admin [11.3.0 (now)]

I’ve seen similar situation which was something along the lines of libluajit being stuck in an old version because of minetest(?) … but forcing the upgrade and then force-upgrading minetest to have everything back on track worked well

Let’s dig in with : sudo apt install yunohost yunohost-admin moulinette ssowat (note that yes, it’s install here because that’s the way to tell apt to upgrade those specific packages)

It may complain that it will remove libluajit which is fine … and maybe some <app>-ynh-deps which should be okay-ish too, just keep in mind that you should force-upgrade the app once yunohost is upgraded, using : yunohost app upgrade <app> --force

1 Like

@Aleks Thank you very much for your help and suggestions. I have executed the commands so far and it seems to have worked somehow. Somehow there were still two or three errors with the updates, but I solved them myself.
Afterwards there was a 500 error from nginx, but after a reboot it was also gone.

I then started one or two updates and updated the APPs with the --fore option. Then there were two new migrations that failed due to funkwhale. As I had only installed this APP for testing purposes, I deleted Funkwhale without further ado and then it worked again.

Somehow the whole thing was now quite a back and forth of commands. Could the system now be in an unstable state? A state that looks quite good at first, but then leads to problems with the next or the next but one update / action? After all these difficulties, everything in me is screaming to completely rebuild the entire system in order to get a guaranteed ‘clean’ state.

Nah that sounds all good to me, your server is not “dirty”, please dont fall in the reinstallation spiral, forget the dream of a “clean” server whatever this may mean

1 Like

@Aleks Thank you for your encouraging words and the link to the article on ‘the reinstallation spiral’. Yes, there is some truth in that! I’ve experienced time and again that you can’t always reinstall the server as soon as something goes wrong. Sometimes important things are running there and the effort to completely reinstall everything is sometimes immense.
I’ve been working with servers for almost 30 years now and, although not 24/7, I’m always out in the digital swamp with both hands up to my shoulders solving technical conflicts. Nevertheless, I still have the feeling of being a beginner and only understanding half of it.

A ‘clean’ server seems like something I can understand and repair. If the server gets too messy, then it sometimes requires tricks that reach into areas that I can no longer comprehend. At least that’s my concern. Nevertheless, I have managed to solve everything so far. However, the effort involved was immense. And the desk has many a bite mark :wink:

1 Like

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