🚀 YunoHost 12.0 (Bookworm) release / Sortie de YunoHost 12.0 (Bookworm)

RĂ©ponse super tardive parce que j’ai Ă©tĂ© distrait, j’ai zappĂ© de continuer le suivi.
J’ai finalement rĂ©ussi Ă  rĂ©soudre le soucis avec nextcloud en passant la commande
yunohost app setting nextcloud phpversion -v 8.3
et en lançant l’upgrade normalement.

Du coup, la migration de mon serveur est officiellement 100% finalisée maintenant.

1 Like

Same issue here, did you find a fix?

Which one?

Nevermind, all is well.

My update failed with:

Info: [###################.] > 99.4% Installing gnome-keyring
Info: [###################.] > 99.5% Processing php8.2-cli
Info: [###################.] > 99.5% Processing php7.4-cli
Info: [###################.] > 99.6% Processing php8.3-cli
Info: [###################.] > 99.6% Processing php8.1-cli
Info: [###################.] > 99.7% Processing php7.3-cli
Info: [###################.] > 99.7% Processing php7.4-fpm
Info: [###################.] > 99.7% Processing php8.3-fpm
Info: [###################.] > 99.8% Processing dbus
Info: [###################.] > 99.8% Processing mariadb-server
Info: [###################.] > 99.9% Processing php8.0-cli
Info: [###################.] > 99.9% Processing libgdk-pixbuf-2.0-0
Warning: perl: warning: Setting locale failed.
Warning: perl: warning: Please check that your locale settings:
Warning:        LANGUAGE = (unset),
Warning:        LC_ALL = (unset),
Warning:        LC_TIME = "de_DE.UTF-8",
Warning:        LC_MONETARY = "de_DE.UTF-8",
Warning:        LC_COLLATE = "C",
Warning:        LC_ADDRESS = "de_DE.UTF-8",
Warning:        LC_TELEPHONE = "de_DE.UTF-8",
Warning:        LC_NAME = "de_DE.UTF-8",
Warning:        LC_MEASUREMENT = "de_DE.UTF-8",
Warning:        LC_IDENTIFICATION = "de_DE.UTF-8",
Warning:        LC_NUMERIC = "de_DE.UTF-8",
Warning:        LC_PAPER = "de_DE.UTF-8",
Warning:        LANG = "C"
Warning:     are supported and installed on your system.
Warning: perl: warning: Falling back to the standard locale ("C").
Warning: perl: warning: Setting locale failed.
Warning: perl: warning: Please check that your locale settings:
Warning:        LANGUAGE = (unset),
Warning:        LC_ALL = (unset),
Warning:        LC_TIME = "de_DE.UTF-8",
Warning:        LC_MONETARY = "de_DE.UTF-8",
Warning:        LC_COLLATE = "C",
Warning:        LC_ADDRESS = "de_DE.UTF-8",
Warning:        LC_TELEPHONE = "de_DE.UTF-8",
Warning:        LC_NAME = "de_DE.UTF-8",
Warning:        LC_MEASUREMENT = "de_DE.UTF-8",
Warning:        LC_IDENTIFICATION = "de_DE.UTF-8",
Warning:        LC_NUMERIC = "de_DE.UTF-8",
Warning:        LC_PAPER = "de_DE.UTF-8",
Warning:        LANG = "C"
Warning:     are supported and installed on your system.
Warning: perl: warning: Falling back to the standard locale ("C").
Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 145.
Warning: dovecot.socket is a disabled or a static unit not running, not starting it.
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold''

I run this:

root@YunoHost:~# aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold'
The following packages will be upgraded: 
  libconfig-inifiles-perl  
1 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 45.9 kB of archives. After unpacking 6,144 B will be freed.
Do you want to continue? [Y/n/?] 
Get: 1 http://ftp.debian.org/debian bookworm/main amd64 libconfig-inifiles-perl all 3.000003-2 [45.9 kB]
Fetched 45.9 kB in 0s (205 kB/s)                 
Reading changelogs... Done
(Reading database ... 86663 files and directories currently installed.)
Preparing to unpack .../libconfig-inifiles-perl_3.000003-2_all.deb ...
Unpacking libconfig-inifiles-perl (3.000003-2) over (3.000003-1) ...
Setting up libconfig-inifiles-perl (3.000003-2) ...
Processing triggers for man-db (2.11.2-2) ...
                                         
Current status: 4 (-1) upgradable.

After this, i re-run migration:

yunohost tools migrations run --accept-disclaimer

seems to recover/continue


rerun ends with:

root@YunoHost:~# yunohost tools migrations run --accept-disclaimer
Info: Running migration 0029_postgresql_13_to_15

Package: django-fmd-ynh-deps
Depends: build-essential, libssl-dev, libnss3-dev, libffi-dev, git, libpq-dev, postgresql, postgresql-contrib
Package: django-for-runners-ynh-deps
Depends: build-essential, python3-dev, python3-pip, python3-venv, git, libffi-dev, libpq-dev, postgresql, postgresql-contrib, redis-server, checkinstall, pkg-config, libssl-dev, openssl
Package: django-fritzconnection-ynh-deps
Depends: build-essential, python3-dev, python3-pip, python3-venv, git, libffi-dev, libpq-dev, postgresql, postgresql-contrib, redis-server, checkinstall, pkg-config, libssl-dev, openssl
--
Package: immich-ynh-deps
Depends: python3-venv, python3-dev, ffmpeg, postgresql, wget, build-essential, libreadline-dev, libncursesw5-dev, libssl-dev, libsqlite3-dev, tk-dev, libgdbm-dev, libc6-dev, libbz2-dev, libffi-dev, zlib1g-dev, unzip, uuid-runtime, autoconf, jq, perl, libnet-ssleay-perl, libio-socket-ssl-perl, libcapture-tiny-perl, libfile-which-perl, libfile-chdir-perl, libpkgconfig-perl, libffi-checklib-perl, libtest-warnings-perl, libtest-fatal-perl, libtest-needs-perl, libtest2-suite-perl, libsort-versions-perl, libpath-tiny-perl, libtry-tiny-perl, libterm-table-perl, libany-uri-escape-perl, libmojolicious-perl, libfile-slurper-perl, liblcms2-2, libllvm16, libllvm13, redis-server, libpq5, libpq-dev, postgresql-16, postgresql-16-pgvector, postgresql-client-16
Package: invidious-ynh-deps
Depends: postgresql, libssl-dev, libxml2-dev, libyaml-dev, libgmp-dev, libreadline-dev, librsvg2-bin, imagemagick, libsqlite3-dev, zlib1g-dev, libevent-dev, libpcre3-dev
--
Package: paperless-ngx-ynh-deps
Depends: python3, python3-pip, python3-dev, python3-venv, default-libmysqlclient-dev, fonts-liberation, imagemagick, gnupg, libpq-dev, libmagic-dev, mime-support, libzbar0, poppler-utils, postgresql, postgresql-contrib, unpaper, ghostscript, icc-profiles-free, qpdf, liblept5, libxml2, pngquant, zlib1g, tesseract-ocr, libatlas-base-dev, libxslt1-dev, redis-server, pkg-config
Package: pyinventory-ynh-deps
Depends: build-essential, python3-dev, python3-pip, python3-venv, git, libffi-dev, libpq-dev, postgresql, postgresql-contrib, redis-server, checkinstall, pkg-config, libssl-dev, openssl
Warning: unable to retrieve string to translate with key 'Failed to run command 'LC_ALL=C pg_upgradecluster -m upgrade 13 main -v 15'.
returncode: 1
stdout:
b'Restarting old cluster with restricted connections...\nStopping old cluster...\n'
stderr:
b'perl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_ADDRESS = "de_DE.UTF-8",\n\tLC_NAME = "de_DE.UTF-8",\n\tLC_MONETARY = "de_DE.UTF-8",\n\tLC_PAPER = "de_DE.UTF-8",\n\tLC_IDENTIFICATION = "de_DE.UTF-8",\n\tLC_TELEPHONE = "de_DE.UTF-8",\n\tLC_MEASUREMENT = "de_DE.UTF-8",\n\tLC_TIME = "de_DE.UTF-8",\n\tLC_NUMERIC = "de_DE.UTF-8",\n\tLANG = "C"\n    are supported and installed on your system.\nperl: warning: Falling back to the standard locale ("C").\nError: The locale requested by the environment is invalid:\n  LANG: C\n  LC_ADDRESS: de_DE.UTF-8\n  LC_IDENTIFICATION: de_DE.UTF-8\n  LC_MEASUREMENT: de_DE.UTF-8\n  LC_MONETARY: de_DE.UTF-8\n  LC_NAME: de_DE.UTF-8\n  LC_NUMERIC: de_DE.UTF-8\n  LC_PAPER: de_DE.UTF-8\n  LC_TELEPHONE: de_DE.UTF-8\n  LC_TIME: de_DE.UTF-8\nError: Could not create target cluster\n'
' for default locale 'locales/en.json' file (don't panic this is just a warning)
Error: Migration 0029_postgresql_13_to_15 did not complete, aborting. Error: Failed to run command 'LC_ALL=C pg_upgradecluster -m upgrade 13 main -v 15'.
returncode: 1
stdout:
b'Restarting old cluster with restricted connections...\nStopping old cluster...\n'
stderr:
b'perl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_ADDRESS = "de_DE.UTF-8",\n\tLC_NAME = "de_DE.UTF-8",\n\tLC_MONETARY = "de_DE.UTF-8",\n\tLC_PAPER = "de_DE.UTF-8",\n\tLC_IDENTIFICATION = "de_DE.UTF-8",\n\tLC_TELEPHONE = "de_DE.UTF-8",\n\tLC_MEASUREMENT = "de_DE.UTF-8",\n\tLC_TIME = "de_DE.UTF-8",\n\tLC_NUMERIC = "de_DE.UTF-8",\n\tLANG = "C"\n    are supported and installed on your system.\nperl: warning: Falling back to the standard locale ("C").\nError: The locale requested by the environment is invalid:\n  LANG: C\n  LC_ADDRESS: de_DE.UTF-8\n  LC_IDENTIFICATION: de_DE.UTF-8\n  LC_MEASUREMENT: de_DE.UTF-8\n  LC_MONETARY: de_DE.UTF-8\n  LC_NAME: de_DE.UTF-8\n  LC_NUMERIC: de_DE.UTF-8\n  LC_PAPER: de_DE.UTF-8\n  LC_TELEPHONE: de_DE.UTF-8\n  LC_TIME: de_DE.UTF-8\nError: Could not create target cluster\n'

Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250324-090241-tools_migrations_migrate_forward' to get help
Info: Running migration 0031_terms_of_services

Success! Migration 0031_terms_of_services completed

Any idea what i have to do?

Uh, that’s strange, i think:

root@YunoHost:~# sudo -u postgres pg_lsclusters
Ver Cluster Port Status Owner    Data directory              Log file
13  main    5432 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
16  main    5433 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log

I would have expected it to be 13 and 15 and not 13 and 16.

and:

root@YunoHost:~# psql --version
psql (PostgreSQL) 16.6 (Debian 16.6-1.pgdg110+1)

EDIT: Ah postgres 16 is from immich: immich_ynh/manifest.toml at master · YunoHost-Apps/immich_ynh · GitHub

I have fixed it by myself.

One change that was irritating: On my main domain the setting Show other domain’s apps was not activated. So apps seems to be missing on the portal. I change it and everything is fine.

Maybe Show other domain’s apps should be enabled via migration?!?

Hi @Aleks, sorry to ping you directly, but I am wondering if you are able to shed some light on this


Urhg yeah well that sounds definitely related to the fact that you have a lot of domains 
 and in particular it’s probably the yunohost domain list calls taking some time because of uuuuh reasons that are too long to explain
 (I’m guessing maybe you’re running a ‘slow’ hardware such as RPi or ARM board ? Maybe not idk)

Unfortunately there’s no quick immediate fix to address this 
 Could try to have a look to optimize the corresponding code

1 Like

Hey @aleks, I replied to your question already before in this thread, but it is too easy to keep track of a sub-conversation here
 So I started a new specific thread.

2 Likes

Hello devs,

You have done an exceptional job! I just upgraded to YunoHost 12, and the process was seamless—no problems at all! I appreciate your ongoing dedication to this fantastic project!

Best regards,
Zak.

3 Likes

Hello @jln I’m stuck with the same error unfortunately. Did you manage to migrate successfully in the end? I can’t find how to set root password. So I can’t uninstall php I’m afraid. :confused: help would be greatly appreciated :hugs:

Hello,

You can find how I resolved it here. So yes, the upgrade was successful at the end :slightly_smiling_face:

Good luck!

1 Like

Hi there,
I’ve just performed the migration to Bookworm.
Thank you to all the dev, testers, translators, for the fantastic work you did, and I can say that this migration was easier to me than the previous ones. Thanks a lot, so happy!
On my side, it’s not all over yet, and I’m encountering a few problems:

  • first of all, to share my experience, I’m using Yunohost on a RPi 3B+, I encountered the problem of free space on /boot, the famous 70MB limit (I only had 18MB free), I had trouble finding the message that explains how to work around : Migration Yunohost 11.3.0.2 towards 12 / lacking space in /boot/ - #2 by Aleks so I started with a manual migration to Debian12 (and I think I overwritten some conf files
), the installation failed, I then modified the Yunohost install file to get around the 70MB limit and everything went fine (it took about 2 hours).
  • the main problem I encounter is that MySQL is dead:
    I tryed:
    sudo systemctl status mysql.service
    Warning: The unit file, source configuration file or drop-ins of mysql.service changed on disk. Run 'systemctl daemon-reload' to reload units.
    ○ mysql.service
    Loaded: error (Reason: Unit mysql.service failed to load properly, please adjust/correct and reload service manager: File exists)
    Active: inactive (dead)
    Then:
    systemctl daemon-reload
    and then:
    sudo yunohost service restart mysql
    Failed to restart mysql.service: Unit mysql.service failed to load properly, please adjust/correct and reload service manager: File exists
    See system logs and 'systemctl status mysql.service' for details.
    Warning: Could not execute the command 'systemctl restart mysql'
    Error: Could not restart the service 'mysql'
    Recent service logs:-- No entries --
    “File exists”? what that, what file?
    Does it speak to you?

Hi there!

I think the signature files (*.sig) for YunoHost 12.0 Bookworm for x86 machines are missing. Its there for the RPi, but not for amd64 and i386: