Cannot upgrade and migrate to YunoHost 3

Bonsoir,

De ce que je comprends, il y a un souci pour effectuer la migration de YunoHost v2.x basée sur Jessie (Debian 8) vers YunoHost v3.x basée sur Stretch (Debian9), et cela sur un Raspberry Pi.

En faisant un tour là YunoHost 3.0 (Stretch) release / Sortie de YunoHost 3.0 (Stretch) il y les préalables (mise à jour vers YunoHost v2.7.14) avant d’effectuer la migration dont la procédure se trouve ici YunoHost • index.

Si ce qui coince est le warning à propos des locales, il faut les définir via le panel du Raspberry Pi :

sudo raspi-config

  • Menu 4
  • I1 pour paramètrer les locales (fr_FR.UTF-8)

Puis relancer la commande préconisée par le gestionnaire de mise à jour :

apt --fix-broken install

En espérant qu’avec tout ça la migration puisse se faire/terminer dans de meilleurs conditions.

ppr

Merci beaucoup.
Migration effectuée.
Mais je n’ai plus acces a mon serveur avec mon adresse ip locale.
De plus mon adresse dyndns n’est pas la bonne, j’ai une demande de mis a jour via les forums mais pas de reponses.
morgand.nohost.me sur ma box est 93.5.47.108
mais par https://www.whatsmydns.net c’est toujours mon ancien 176.156.112.125

Pouvez vous faire quelque chose.
Merci d avance
Cordialement

Bonjour,
Peux-tu essayer un :
yunohost dyndns update
Et voir qu’est-ce que ça donne ?

Info : No updated needed.

Ensuite j’ai essaye
Yunohost dyndns update -d morgand.nohost.me
Erreur : Clé DNS introuvable pour le domaine

Puis
yunohost dyndns subscribe -d morgand.nohost.me --debug
1010 DEBUG loading actions map namespace ‘yunohost’
1208 DEBUG extra parameter classes loaded: [‘comment’, ‘ask’, ‘password’, ‘required’, ‘pattern’]
1210 DEBUG initializing base actions map parser for cli
1221 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
1993 DEBUG lock has been acquired
2477 DEBUG loading python module yunohost.dyndns took 0.483s
2479 INFO processing action [3009.1]: yunohost.dyndns.subscribe with args={‘domain’: ‘morgand.nohost.me’, ‘subscribe_host’: ‘dyndns.yunohost.org’, ‘key’: None}
2484 DEBUG action [3009.1] executed in 0.003s
2486 DEBUG lock has been released
2488 ERROR Vous avez déjà souscris à un domaine DynDNS

Il y beaucoup de sujets autour de “dyndns update”, mais je ne suis pas assez calé pour trouver une solution.
Peut-être un spécialiste passant par là pourra t’aider.
Tu peux peut-être essayer le “yunohost dyndns update --debug” voir si ça te renvoie des informations supplémentaires qui résoudraient la maj de ton IP.

yunohost dyndns update --debug
932 DEBUG loading actions map namespace ‘yunohost’
1095 DEBUG extra parameter classes loaded: [‘comment’, ‘ask’, ‘password’, ‘required’, ‘pattern’]
1097 DEBUG initializing base actions map parser for cli
1105 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
1681 DEBUG lock has been acquired
2103 DEBUG loading python module yunohost.dyndns took 0.421s
2105 INFO processing action [12332.1]: yunohost.dyndns.update with args={‘domain’: None, ‘key’: None, ‘dyn_host’: ‘dyndns.yunohost.org’, ‘ipv4’: None, ‘ipv6’: None}
2109 DEBUG Building zone update file …
6570 DEBUG Starting new HTTPS connection (1): ip.yunohost.org
6823 DEBUG https://ip.yunohost.org:443 “GET / HTTP/1.1” 200 11
6852 DEBUG Starting new HTTPS connection (1): ip6.yunohost.org
6876 DEBUG Could not get public IPv6 : URL https://ip6.yunohost.org invalide : ce site existe-t-il ?
6877 DEBUG Old IPv4/v6 are (93.5.47.108, None)
6879 DEBUG Requested IPv4/v6 are (93.5.47.108, None)
6880 INFO No updated needed.
6882 DEBUG action [12332.1] executed in 4.776s
6883 DEBUG lock has been released

Tu n’as pas un autre domaine en .nohost.me sur ta machine …?

Sorry for the delay - it took long getting other things sorted…

Anyways I am getting further but still unfortunately hitting problems - this time with dovecot (haven’t found any answer to this on the forum):
root@YunoHost:~# apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://forge.yunohost.org/debian stretch InRelease
Hit:3 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Reading package lists… Done
root@YunoHost:~# apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
dovecot-antispam : Depends: dovecot-abi-2.2.abiv13 but it is not installable
dovecot-imapd : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is installed
dovecot-ldap : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is installed
dovecot-lmtpd : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is installed
dovecot-managesieved : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is installed
dovecot-sieve : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Seems like some of the packages aren’t supported in the new dovecot-core for deb9??

Any ideas please?

Thanks in advance for your help.

Cheers

Fil

Hi
Can you send the output for apt --fix-broken install

Non…

Bonjour @AlainM60 ,

Pour ton souci de mise à jour d’adresse IP tu peux dans l’ordre essayer :

yunohost dyndns update

Sinon supprimer fichier /etc/yunohost/dyndns/old_ip et refaire une mise à jour de l’IP :

rm /etc/yunohost/dyndns/old_ip
yunohost dyndns update

Par ailleurs, que dit :

dig @dyndns.yunohost.org +short ton-domaine-en.nohost.me

ppr

je n’ai pas ce fichier :unamused:

ensuite quand je fait la commande j’ai le message
yunohost dyndns update
Info : No updated needed.

J’ai donc essayer en debug :
root@morgand:/etc/yunohost/dyndns# yunohost dyndns update --debug
974 DEBUG loading actions map namespace ‘yunohost’
1138 DEBUG extra parameter classes loaded: [‘comment’, ‘ask’, ‘password’, ‘required’, ‘pattern’]
1140 DEBUG initializing base actions map parser for cli
1149 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
1732 DEBUG lock has been acquired
2153 DEBUG loading python module yunohost.dyndns took 0.420s
2155 INFO processing action [7105.1]: yunohost.dyndns.update with args={‘domain’: None, ‘key’: None, ‘dyn_host’: ‘dyndns.yunohost.org’, ‘ipv4’: None, ‘ipv6’: None}
2159 DEBUG Building zone update file …
6659 DEBUG Starting new HTTPS connection (1): ip.yunohost.org
6897 DEBUG https://ip.yunohost.org:443 “GET / HTTP/1.1” 200 11
6926 DEBUG Starting new HTTPS connection (1): ip6.yunohost.org
6933 DEBUG Could not get public IPv6 : URL https://ip6.yunohost.org invalide : ce site existe-t-il ?
6934 DEBUG Old IPv4/v6 are (93.5.47.108, None)
6935 DEBUG Requested IPv4/v6 are (93.5.47.108, None)
6937 INFO No updated needed.
6938 DEBUG action [7105.1] executed in 4.782s
6940 DEBUG lock has been released

Enfin la commande : dig @dyndns.yunohost.org +short morgand.nohost.me
176.156.112.125

Ce qui est bien mon ancienne adresse IP et pas la nouvelle

Bonsoir,

Peux-tu essayer cette commande :

yunohost dyndns subscribe -d morgand.nohost.me

ppr

yunohost dyndns subscribe -d morgand.nohost.me
Erreur : Vous avez déjà souscris à un domaine DynDNS
root@morgand:/home/morgand# yunohost dyndns subscribe -d morgand.nohost.me --debug
933 DEBUG loading actions map namespace ‘yunohost’
1097 DEBUG extra parameter classes loaded: [‘comment’, ‘ask’, ‘password’, ‘required’, ‘pattern’]
1099 DEBUG initializing base actions map parser for cli
1108 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
1698 DEBUG lock has been acquired
2144 DEBUG loading python module yunohost.dyndns took 0.443s
2146 INFO processing action [17653.1]: yunohost.dyndns.subscribe with args={‘domain’: ‘morgand.nohost.me’, ‘subscribe_host’: ‘dyndns.yunohost.org’, ‘key’: None}
2151 DEBUG action [17653.1] executed in 0.003s
2154 DEBUG lock has been released
2156 ERROR Vous avez déjà souscris à un domaine DynDNS

Hi,
I’m currently on the road and will get the output to you tomorrow.

Here we go:
root@YunoHost:~# apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
apt-transport-https jq libalgorithm-c3-perl libarchive-extract-perl libbind9-90 libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl libcpan-meta-perl libdata-optlist-perl
libdata-section-perl libdbus-1-dev libdjvulibre-text libdjvulibre21 libdns100 libfcgi-perl libgmime-2.6-0 libgpgme11 libilmbase6 libisc95 libisccc90 libisccfg90 libjasper1 libjim0.75 libjpeg8
libjq1 liblog-message-perl liblog-message-simple-perl liblwres90 libmodule-build-perl libmodule-pluggable-perl libmodule-signature-perl libmro-compat-perl libonig4 libopenexr6
libpackage-constants-perl libparams-util-perl libperl4-corelibs-perl libpng12-dev libpod-latex-perl libpod-readme-perl libpth20 libpython3.4-minimal libpython3.4-stdlib libregexp-common-perl
libslp1 libsoftware-license-perl libsub-exporter-perl libsub-install-perl libterm-ui-perl libtext-soundex-perl libtext-template-perl libwmf0.2-7 php-common php-fpm php-intl php-ldap php-mysql
php7.0-cli php7.0-common php7.0-fpm php7.0-intl php7.0-json php7.0-ldap php7.0-mysql php7.0-opcache php7.0-readline postsrsd python-cffi python-dbus-dev python-jinja2 python-markupsafe
python-ndg-httpsclient python-ply python-pycparser python-toml python3-jinja2 python3-markupsafe python3.4 python3.4-minimal zlib1g-dev
Use ‘apt autoremove’ to remove them.
The following additional packages will be installed:
dovecot-antispam dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-sieve
Suggested packages:
crm114 ufw
The following packages will be upgraded:
dovecot-antispam dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-sieve
6 upgraded, 0 newly installed, 0 to remove and 253 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3991 kB of archives.
After this operation, 1540 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y

Job for dovecot.service failed because the control process exited with error code.
See “systemctl status dovecot.service” and “journalctl -xe” for details.
invoke-rc.d: initscript dovecot, action “start” failed.
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-08-18 12:30:50 UTC; 33ms ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Process: 32534 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 1550 (code=exited, status=0/SUCCESS)

Aug 18 12:30:50 YunoHost systemd[1]: Starting Dovecot IMAP/POP3 email server…
Aug 18 12:30:50 YunoHost dovecot[32534]: doveconf: Error: Couldn’t load plugin /usr/lib/dovecot/modules/settings/libmanagesieve_login_settings.so: dlopen() failed: /usr/lib/doveco…l: str_append_c
Aug 18 12:30:50 YunoHost dovecot[32534]: doveconf: Error: Couldn’t load plugin /usr/lib/dovecot/modules/settings/libmanagesieve_settings.so: Module is for different ABI version 2.…ABIv27(2.2.27))
Aug 18 12:30:50 YunoHost dovecot[32534]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
Aug 18 12:30:50 YunoHost systemd[1]: dovecot.service: Control process exited, code=exited status=89
Aug 18 12:30:50 YunoHost systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Aug 18 12:30:50 YunoHost systemd[1]: dovecot.service: Unit entered failed state.
Aug 18 12:30:50 YunoHost systemd[1]: dovecot.service: Failed with result ‘exit-code’.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package dovecot-core (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-core

At least it now seems to find the packages which wasn’t happening before (maybe the break of a coupe of days helped).

This then comes per email:
Reading package lists…
Building dependency tree…
Reading state information…
python is already the newest version (2.7.13-2).
moulinette is already the newest version (3.6.4.1).
ssowat is already the newest version (3.6.4).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
dovecot-antispam : Depends: dovecot-abi-2.2.abiv13 but it is not installable
dovecot-imapd : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is to be installed
dovecot-ldap : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is to be installed
dovecot-lmtpd : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is to be installed
dovecot-managesieved : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is to be installed
dovecot-sieve : Depends: dovecot-core (= 1:2.2.13-12~deb8u6) but 1:2.2.27-3+deb9u4 is to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
Thanks in advance for your help

Fil

Bonjour,

Si la commande n’a pas été passée en root ou avec le préfixe sudo, peut-être essayer de la refaire avec sudo pour actualiser le dyndns, de créer un fichier “old_ip” avec ton ancienne adresse IP et recommencer de demander l’actualisation du dyndns.

Attendre un quart d’heure, voire une heure et jusqu’à 24h, afin que la propagation DNS se fasse après la demande de mise à jour DNS

sudo yunohost dyndns update
echo 176.156.112.125 > /etc/yunohost/dyndns/old_ip
sudo yunohost dyndns update

ppr

Hi,
did my cry for help get lost?