Mon serveur YunoHost
Matériel: KS-3 chez Kimsufi
Version de YunoHost: 4.4.2.13
J’ai accès à mon serveur : En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : J’ai tenté l’upgrade vers Debian 11.4
Description du problème
Tout d’abord, merci à tous ceux qui travaillent sur Yunohost. Vous faites un travail formidable et tout se passe généralement à merveille.
J’ai tenté l’upgrade vers Debian 11 depuis la webadmin.
J’ai eu un problème de serveurs injoignables (voir ce post) et je pense que ça a été le début du soucis. J’ai essayé de résoudre comme @ardnaxele et ça a débloqué des trucs. Mais apt n’a pas su tout installer correctement…
Actuellement, je n’ai plus accès à la webadmin (erreur 502).
J’ai accès en ssh sur le serveur mais yunohost semble bien cassé…
# yunohost --version
Error: unable to load locale 'en' from 'None'. Does the file 'None/en.json' exists?
Traceback (most recent call last):
File "/usr/bin/yunohost", line 66, in <module>
yunohost.cli(
File "/usr/lib/moulinette/yunohost/__init__.py", line 25, in cli
ret = moulinette.cli(args, output_as=output_as, timeout=timeout, top_parser=parser)
File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 111, in cli
Cli(
File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 477, in __init__
self.actionsmap = ActionsMap(
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 404, in __init__
actionsmap_yml_dir = os.path.dirname(actionsmap_yml)
File "/usr/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Je n’arrive pas à terminer les mises à jours :
# apt update
Hit:1 http://forge.yunohost.org/debian bullseye InRelease
Hit:2 https://packages.sury.org/php bullseye InRelease
Get:3 https://last-public-ovh-kernel.snap.mirrors.ovh.net/debian ovhkernel InRelease [4,957 B]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:5 http://debian.mirrors.ovh.net/debian bullseye InRelease [116 kB]
Get:6 http://debian.mirrors.ovh.net/debian bullseye-updates InRelease [44.1 kB]
Fetched 213 kB in 7s (29.9 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
54 packages can be upgraded. Run 'apt list --upgradable' to see them.
# apt list --upgradable
Listing... Done
base-files/stable 11.1+deb11u5 amd64 [upgradable from: 11.1+deb11u4]
dovecot-antispam/stable 2.0+20171229-1+b7 amd64 [upgradable from: 2.0+20171229-1+b4]
dovecot-core/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
dovecot-imapd/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
dovecot-ldap/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
dovecot-lmtpd/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
dovecot-managesieved/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
dovecot-sieve/stable 1:2.3.13+dfsg1-2+deb11u1 amd64 [upgradable from: 1:2.3.4.1-5+deb10u6]
fail2ban/stable 0.11.2-2 all [upgradable from: 0.10.2-2.1]
iptables/stable 1.8.7-1 amd64 [upgradable from: 1.8.2-4]
ldap-utils/stable,stable-security 2.4.57+dfsg-3+deb11u1 amd64 [upgradable from: 2.4.47+dfsg-3+deb10u7]
libdbd-mysql-perl/stable 4.050-3+b1 amd64 [upgradable from: 4.050-2]
libdbi-perl/stable 1.643-3+b1 amd64 [upgradable from: 1.642-1+deb10u2]
libfcgi-perl/stable 0.79+ds-2 amd64 [upgradable from: 0.78-2+b3]
libgssapi-perl/stable 0.28-3+b3 amd64 [upgradable from: 0.28-3+b1]
libhtml-parser-perl/stable 3.75-1+b1 amd64 [upgradable from: 3.72-3+b3]
libhttp-message-perl/stable 6.28-1 all [upgradable from: 6.18-1]
libiptc0/stable 1.8.7-1 amd64 [upgradable from: 1.8.2-4]
libldap-2.4-2/stable,stable-security 2.4.57+dfsg-3+deb11u1 amd64 [upgradable from: 2.4.47+dfsg-3+deb10u7]
liblocale-gettext-perl/stable 1.07-4+b1 amd64 [upgradable from: 1.07-3+b4]
libnet-ssleay-perl/stable 1.88-3+b1 amd64 [upgradable from: 1.85-2+b1]
libnetaddr-ip-perl/stable 4.079+dfsg-1+b5 amd64 [upgradable from: 4.079+dfsg-1+b3]
libnginx-mod-http-auth-pam/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-cache-purge/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-dav-ext/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-echo/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-fancyindex/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-geoip/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-headers-more-filter/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-image-filter/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-lua/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-ndk/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-perl/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-subs-filter/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-uploadprogress/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-upstream-fair/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-http-xslt-filter/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-mail/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-nchan/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libnginx-mod-stream/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
libsocket6-perl/stable 0.29-1+b3 amd64 [upgradable from: 0.29-1+b1]
libterm-readkey-perl/stable 2.38-1+b2 amd64 [upgradable from: 2.38-1]
libtext-charwidth-perl/stable 0.04-10+b1 amd64 [upgradable from: 0.04-7.1+b1]
libtext-iconv-perl/stable 1.7-7+b1 amd64 [upgradable from: 1.7-5+b7]
libxtables12/stable 1.8.7-1 amd64 [upgradable from: 1.8.2-4]
linux-image-4.19-ovh-xxxx-std-ipv6-64/ovhkernel 4.19-ovh-xxxx-std-ipv6-64-2461469 amd64 [upgradable from: 4.19-ovh-xxxx-std-ipv6-64-2445629]
nginx-common/stable 1.18.0-6.1+deb11u2 all [upgradable from: 1.14.2-2+deb10u4]
nginx-extras/stable 1.18.0-6.1+deb11u2 amd64 [upgradable from: 1.14.2-2+deb10u4]
perl-base/stable 5.32.1-4+deb11u2 amd64 [upgradable from: 5.28.1-6+deb10u1]
perl/stable 5.32.1-4+deb11u2 amd64 [upgradable from: 5.28.1-6+deb10u1]
redis-server/stable,stable-security 5:6.0.16-1+deb11u2 amd64 [upgradable from: 5:5.0.14-1+deb10u2]
redis-tools/stable,stable-security 5:6.0.16-1+deb11u2 amd64 [upgradable from: 5:5.0.14-1+deb10u2]
slapd/stable,stable-security 2.4.57+dfsg-3+deb11u1 amd64 [upgradable from: 2.4.47+dfsg-3+deb10u7]
yunohost/stable 11.0.9.14 all [upgradable from: 4.4.2.13]
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
bind9-utils bind9utils libperl5.28 perl-modules-5.28 php-gettext python3-ply python3-publicsuffix
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
libfcgi0ldbl libip6tc2 liblzf1 libnginx-mod-http-geoip2 libnginx-mod-stream-geoip libnginx-mod-stream-geoip2 libperl5.32 perl-modules-5.32 python-is-python3 python3-publicsuffix2
The following packages will be upgraded:
base-files dovecot-antispam dovecot-core dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-sieve fail2ban iptables ldap-utils libdbd-mysql-perl libdbi-perl libfcgi-perl libgssapi-perl libhtml-parser-perl
libhttp-message-perl libiptc0 libldap-2.4-2 liblocale-gettext-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-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 libsocket6-perl libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl
libxtables12 linux-image-4.19-ovh-xxxx-std-ipv6-64 nginx-common nginx-extras perl perl-base redis-server redis-tools slapd yunohost
54 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 70.1 kB/44.7 MB of archives.
After this operation, 37.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://debian.mirrors.ovh.net/debian bullseye/main amd64 base-files amd64 11.1+deb11u5 [70.1 kB]
Fetched 70.1 kB in 0s (164 kB/s)
E: This installation run will require temporarily removing the essential package yunohost:amd64 due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Reverse conflicts early remove for package 'nginx-extras:amd64' failed
La ligne flippante, c’est - à mon sens - celle-ci :
E: This installation run will require temporarily removing the essential package yunohost:amd64 due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
Je ne sais plus où j’ai vu @Aleks qui parlait de cette commande :
apt-mark unhold yunohost
apt-mark unhold moulinette
apt-mark unhold ssowat
apt-mark unhold yunohost-admin
J’ai essayé mais j’ai l’impression que ça a fait pire.
Ça a peut-être un lien avec mon problème.
J’ai quelques autres soucis (borg, synapse, …) mais aussi des trucs qui continuent à tourner sans râler (nextcloud, …).
Je ne sais plus vers quoi investiguer pour la suite. Merci d’avance