Cannot upgrade and migrate to YunoHost 3

Unfortunately nothing any more - it just hangs on the ssh command and nothing more happens.

I can ping the device so it seems to be responding.

btw: I’m connecting via the local IP address and not via the external dynamic address (tried that now and apparently no route to host).

I can get onto the normal webpage but if I try to access the webadmin I get a message that yunohost has encountered an internal error :confused:
:confused:

OK - so now I get through ssh local but then it closes the connection immediately also for admin:

fil@fil-desktop:~$ ssh admin@192.168.178.26
admin@192.168.178.26’s password:
Linux YunoHost 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Connection to 192.168.178.26 closed.

Hmmokay, maybe you’re getting banned sometimes due to fail2ban … Do you happen to have some SSH keys in your ~/.ssh (that usually triggers “false” failed login attempts which then makes you get banned by the machine idk)

Just got round to checking and there are, funnily enough, no keys for either the external or home-lan addresses fitting to my yuno-box.

There are a couple of keys in there but mostly pretty old.

I#ve prepared an SD-card with the backup of my server and will probably start bashing through that from your instructions tomorrow evening.

I’ll let you know how I get on.

Cheers

Fil

Echec pour moi : j’ai les messages suivant quand je fait
apt update && apt dist-upgrade && apt autoremove && apt autoclean
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
Hit:4 http://apt.syncthing.net syncthing InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
278 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
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
libalgorithm-diff-xs-perl : Depends: perlapi-5.20.0 but it is not installable
libclass-c3-xs-perl : Depends: perlapi-5.20.0 but it is not installable
libdbd-mysql-perl : Depends: perlapi-5.20.2 but it is not installable
libfcgi-perl : Depends: perlapi-5.20.2 but it is not installable
libfile-fcntllock-perl : Depends: perlapi-5.20.0 but it is not installable
libgssapi-perl : Depends: perlapi-5.20.0 but it is not installable
libhtml-parser-perl : Depends: perlapi-5.20.0 but it is not installable
libnet-dns-perl : Depends: perlapi-5.20.2 but it is not installable
libnetaddr-ip-perl : Depends: perlapi-5.20.0 but it is not installable
libparams-util-perl : Depends: perlapi-5.20.0 but it is not installable
libperl5.20 : Depends: perl-base (= 5.20.2-3+deb8u12) but 5.24.1-3+deb9u5 is installed
libsocket6-perl : Depends: perlapi-5.20.0 but it is not installable
libterm-readkey-perl : Depends: perlapi-5.20.0 but it is not installable
libtext-soundex-perl : Depends: perlapi-5.20.0 but it is not installable
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

HELP

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