Updating to YNH 12 - Issues and questions

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.3.0.2 (stable).
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

I want to migrate to YNH12. But this seems no longer possible. It is listed under my migrations… but I am still on 11.3.0.2 (stable).

Check screenshot for the weird combination of text in the webadmin.

Using the CLI I get:

yunohost tools migrations run
Info: No migrations to run

Did you actually run the migration? What’s the output of cat /etc/debian_version?

No I don’t think I did. I skipped it when offered some weeks ago.

user@ynh:~$ sudo /etc/debian_version
sudo: /etc/debian_version: command not found
user@ynh:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

but now the migration is no longer offered and also running the migration in the cli doesn’t bring me anything…

any tips on how to migrate afteral?

Maybe…

$ sudo yunohost tools migrations run 0027_migrate_to_bookworm --force-rerun
1 Like

Ok, I finally came around to try this. First had to backup the server (of course).

I ran into a snag all the way at the end. I paste (what I think is the relevant log) here:

2025-02-19 22:38:14,405: DEBUG - Setting up yunohost-portal (12.0.7) ...
2025-02-19 22:38:14,421: DEBUG - Processing triggers for man-db (2.11.2-2) ...
2025-02-19 22:38:15,328: DEBUG - Processing triggers for libc-bin (2.36-9+deb12u9) ...
2025-02-19 22:38:17,330: INFO - [####################] > 100.0% Done 
2025-02-19 22:38:17,331: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none aptitude unhold calibreweb-ynh-deps digipad-ynh-deps hedgedoc-ynh-deps minetest-ynh-deps miniflux-ynh-deps nextcloud-ynh-deps plume-ynh-deps unattended-upgrades-ynh-deps wallabag2-ynh-deps wireguard-ynh-deps --quiet=2 -o=Dpkg::Use-Pty=0 -o "APT::Status-Fd=$YNH_STDINFO"
2025-02-19 22:38:21,593: DEBUG - + No migrations to run
2025-02-19 22:38:22,603: ERROR - Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Still on YunoHost 11.x at the end of the migration, eh? Sounds like the migration didn't really complete!?
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/0027_migrate_to_bookworm.py", line 295, in run
    raise YunohostError(

Full log here:
https://paste.yunohost.org/raw/ukemusevav

Any tips or ideas?

If I now run $ apt update && apt upgrade I get a lot of packages which could e updated, but…

The following packages have been kept back:
  libalgorithm-diff-xs-perl libclone-perl libdbi-perl libfcgi-perl libfile-fcntllock-perl libgssapi-perl
  libhtml-parser-perl libhttp-message-perl liblocale-gettext-perl libnet-dns-sec-perl libnet-libidn-perl
  libnet-ssleay-perl libnetaddr-ip-perl libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge
  libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-fancyindex libnginx-mod-http-geoip
  libnginx-mod-http-geoip2 libnginx-mod-http-headers-more-filter libnginx-mod-http-image-filter libnginx-mod-http-lua
  libnginx-mod-http-ndk libnginx-mod-http-perl libnginx-mod-http-subs-filter libnginx-mod-http-uploadprogress
  libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream
  libnginx-mod-stream-geoip libnginx-mod-stream-geoip2 libsocket6-perl libtext-charwidth-perl libtext-iconv-perl
  moulinette nginx-common nginx-extras perl perl-base perl-openssl-defaults slapd ssowat yunohost yunohost-admin
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.

hey, I am a little bit in a rut here. Updates won’t go forward, restarting the server doesn’t help.

Anyone here has tips for me? Please?

In 99% of cases, you never want to run apt upgrade, you want to run apt full-upgrade, especially when upgrading between major versions

Anyway, in that case you shouldn’t run apt manually anyway, what’s needed is to debug the migration log

2025-02-19 22:38:07,866: DEBUG -       Keep the following packages at their current version:
2025-02-19 22:38:07,866: DEBUG - 1)      libluajit-5.1-2 [2.1.0~beta3+git20220320+dfsg-4.1 (now, stable)]
2025-02-19 22:38:07,866: DEBUG - 2)      libluajit-5.1-common [2.1.0~beta3+git20220320+dfsg-4.1 (now, stable)]
2025-02-19 22:38:07,866: DEBUG - 3)      libluajit2-5.1-2 [Not Installed]
2025-02-19 22:38:07,866: DEBUG - 4)      libnginx-mod-http-auth-pam [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,866: DEBUG - 5)      libnginx-mod-http-cache-purge [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 6)      libnginx-mod-http-dav-ext [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 7)      libnginx-mod-http-echo [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 8)      libnginx-mod-http-fancyindex [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 9)      libnginx-mod-http-geoip [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 10)     libnginx-mod-http-geoip2 [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 11)     libnginx-mod-http-headers-more-filter [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 12)     libnginx-mod-http-image-filter [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 13)     libnginx-mod-http-lua [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 14)     libnginx-mod-http-perl [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,867: DEBUG - 15)     libnginx-mod-http-subs-filter [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 16)     libnginx-mod-http-uploadprogress [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 17)     libnginx-mod-http-upstream-fair [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 18)     libnginx-mod-http-xslt-filter [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 19)     libnginx-mod-mail [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 20)     libnginx-mod-nchan [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 21)     libnginx-mod-stream [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 22)     libnginx-mod-stream-geoip [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 23)     libnginx-mod-stream-geoip2 [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,868: DEBUG - 24)     libperl5.36 [Not Installed]
2025-02-19 22:38:07,868: DEBUG - 25)     lua-ldap [1.3.0-2+b1 (now, stable)]
2025-02-19 22:38:07,868: DEBUG - 26)     lua-resty-core [Not Installed]
2025-02-19 22:38:07,869: DEBUG - 27)     lua-resty-lrucache [Not Installed]
2025-02-19 22:38:07,869: DEBUG - 28)     lua-rex-pcre [2.7.2-4.1 (now)]
2025-02-19 22:38:07,869: DEBUG - 29)     moulinette [11.3.0 (now)]
2025-02-19 22:38:07,869: DEBUG - 30)     nginx [Not Installed]
2025-02-19 22:38:07,869: DEBUG - 31)     nginx-common [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,869: DEBUG - 32)     nginx-extras [1.18.0-6.1+deb11u3 (now)]
2025-02-19 22:38:07,869: DEBUG - 33)     perl [5.32.1-4+deb11u4 (now)]
2025-02-19 22:38:07,869: DEBUG - 34)     perl-base [5.32.1-4+deb11u4 (now)]
2025-02-19 22:38:07,869: DEBUG - 35)     perl-modules-5.36 [Not Installed]
2025-02-19 22:38:07,869: DEBUG - 36)     ssowat [11.3.0 (now)]
2025-02-19 22:38:07,869: DEBUG - 37)     yunohost [11.3.0.2 (now)]
2025-02-19 22:38:07,869: DEBUG - 38)     yunohost-admin [11.3.0 (now)]
2025-02-19 22:38:07,870: DEBUG - 
2025-02-19 22:38:07,870: DEBUG -       Leave the following dependencies unresolved:
2025-02-19 22:38:07,870: DEBUG - 39)     yunohost recommends php7.4-fpm
2025-02-19 22:38:07,870: DEBUG - 40)     yunohost recommends php7.4-ldap
2025-02-19 22:38:07,870: DEBUG - 41)     yunohost recommends php7.4-intl
2025-02-19 22:38:07,870: DEBUG - 42)     yunohost recommends php7.4-mysql
2025-02-19 22:38:07,870: DEBUG - 43)     yunohost recommends php7.4-curl
2025-02-19 22:38:07,870: DEBUG - 44)     yunohost recommends php-php-gettext
2025-02-19 22:38:07,870: DEBUG - 45)     yunohost recommends python3-pip
2025-02-19 22:38:07,870: DEBUG - 46)     yunohost recommends metronome (>= 3.14.0)

I’ve seen similar situation where libluajit is blocking the migration and aptitude doesn’t find the proper way to resolve the situation

let’s try manually running apt install yunohost nginx libluajit2-5.1-2

and read carefully what it’s going to do before validating. It may uninstall some package (I think minetest for example was known to depend on some libluajit stuff or related dependency … in which case it’s fine to let it uninstall the minetest-ynh-deps virtual package, though you’ll need to force-upgrade the app later to get it back on clean tracks)

1 Like

Thnx Aleks! I will try! But deleting minetest, means deleting the world some kids here in my house have created?

The following packages will be REMOVED:
  libluajit-5.1-2 libluajit-5.1-common libluajit-5.1-dev
  minetest-ynh-deps

Full log:

The following packages were automatically installed and are no longer required:
  cmake cmake-data libcurl3-nss libcurl4-nss-dev libgmp-dev
  libgmpxx4ldbl libidn-dev libidn11 libjsoncpp-dev
  libjsoncpp25 libnspr4 libnss3 libodbc1 libodbccr2
  libperl5.32 libpkgconf3 librhash0 libsqlite3-dev libzstd-dev
  lua-ldap lua-rex-pcre nss-plugin-pem perl-modules-5.32
  pkg-config pkgconf pkgconf-bin
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libalgorithm-diff-xs-perl libclone-perl libdbi-perl
  libfcgi-perl libfile-fcntllock-perl libgssapi-perl
  libhtml-parser-perl liblocale-gettext-perl
  libluajit2-5.1-common libmilter1.0.1 libnet-dns-sec-perl
  libnet-libidn-perl libnet-ssleay-perl libnetaddr-ip-perl
  libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge
  libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip
  libnginx-mod-http-geoip2
  libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-lua
  libnginx-mod-http-ndk libnginx-mod-http-perl
  libnginx-mod-http-subs-filter
  libnginx-mod-http-uploadprogress
  libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail
  libnginx-mod-nchan libnginx-mod-stream
  libnginx-mod-stream-geoip libnginx-mod-stream-geoip2
  libperl5.36 libsocket6-perl libtext-charwidth-perl
  libtext-iconv-perl lua-basexx lua-cjson lua-logging
  lua-luaossl lua-resty-core lua-resty-lrucache lua-rex-pcre2
  lua-sql-sqlite3 moulinette nginx-common nginx-extras
  opendkim perl perl-base perl-modules-5.36
  perl-openssl-defaults python3-all python3-email-validator
  python3-magic python3-passlib python3-pydantic slapd ssowat
Suggested packages:
  libmldbm-perl libnet-daemon-perl libsql-statement-perl
  fcgiwrap nginx-doc perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl libtap-harness-archive-perl
  libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal
The following packages will be REMOVED:
  libluajit-5.1-2 libluajit-5.1-common libluajit-5.1-dev
  minetest-ynh-deps
The following NEW packages will be installed:
  libluajit2-5.1-2 libluajit2-5.1-common libmilter1.0.1
  libperl5.36 lua-basexx lua-cjson lua-logging lua-luaossl
  lua-resty-core lua-resty-lrucache lua-rex-pcre2
  lua-sql-sqlite3 nginx opendkim perl-modules-5.36 python3-all
  python3-email-validator python3-magic python3-passlib
  python3-pydantic
The following packages will be upgraded:
  libalgorithm-diff-xs-perl libclone-perl libdbi-perl
  libfcgi-perl libfile-fcntllock-perl libgssapi-perl
  libhtml-parser-perl liblocale-gettext-perl
  libnet-dns-sec-perl libnet-libidn-perl libnet-ssleay-perl
  libnetaddr-ip-perl libnginx-mod-http-auth-pam
  libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext
  libnginx-mod-http-echo libnginx-mod-http-fancyindex
  libnginx-mod-http-geoip libnginx-mod-http-geoip2
  libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-lua
  libnginx-mod-http-ndk libnginx-mod-http-perl
  libnginx-mod-http-subs-filter
  libnginx-mod-http-uploadprogress
  libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail
  libnginx-mod-nchan libnginx-mod-stream
  libnginx-mod-stream-geoip libnginx-mod-stream-geoip2
  libsocket6-perl libtext-charwidth-perl libtext-iconv-perl
  moulinette nginx-common nginx-extras perl perl-base
  perl-openssl-defaults slapd ssowat yunohost
45 upgraded, 20 newly installed, 4 to remove and 2 not upgraded.
Need to get 16.8 MB of archives.
After this operation, 50.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

Nope it will only uninstall depenencies related to minetest, but not minetest itself nor its data

After running the apt install command, you can force-upgrade minetest with yunohost app upgrade minetest --force and it should get everything back on track

1 Like

Great! Seems like the server is upgraded; CLI gives me:

$ yunohost --version
yunohost: 
  repo: stable
  version: 12.0.11
yunohost-admin: 
  repo: stable
  version: 12.0.5
yunohost-portal: 
  repo: stable
  version: 12.0.7
moulinette: 
  repo: stable
  version: 12.0.4
ssowat: 
  repo: stable
  version: 12.0.3

There are some services that don’t want to start and minetest can’t be updated ( Log here ) and I get an

500 Internal Server Error
nginx

But I’ll try to fix those first now… by rebooting. That helped

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