Migration vers Stretch : repo.yunohost.org bad gateway

Bonjour,
Avec beaucoup de retard, je prends le temps de migrer mon installation.

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison
Version de YunoHost: 2.7.14.5
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

502 Bad Gateway quand accès à http://repo.yunohost.org/

Est-ce trop tard pour cette migration ?

root@YunoHost:~# sudo yunohost tools migrations migrate --accept-disclaimer
Warning: Running migration 3 migrate_to_stretch...
Hit http://archive.raspberrypi.org jessie InRelease
[...]
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Ign http://repo.yunohost.org jessie InRelease
Ign http://repo.yunohost.org jessie Release.gpg
Ign http://repo.yunohost.org jessie Release

Err http://repo.yunohost.org jessie/stable armhf Packages
  502  Bad Gateway [IP: 80.67.172.144 80]
Ign http://repo.yunohost.org jessie/stable Translation-en_GB
Ign http://repo.yunohost.org jessie/stable Translation-en
W: Failed to fetch http://repo.yunohost.org/debian/dists/jessie/stable/binary-armhf/Packages  502  Bad Gateway [IP: 80.67.172.144 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Error: Migration 3 migrate_to_stretch has failed with exception Your system is not fully up to date. Please perform a regular upgrade before running the migration to stretch., aborting

Merci d’avance
Franck

Ben ça commence à faire genre 2 ans et demi maintenant … on peut essayer de la faire marcher mais je te garanti pas que t’aura pas d’autres soucis ensuite …

Naivemnt j’éditerais /etc/apt/sources.list.d/yunohost.list, pour remplacer “repo.yunohost.org” par “forge.yunohost.org”, peut-être qu’apt sera un peu plus content (mais ptete pas) (tu peux vérifier en faisant apt update)

J’ai relancé en remplaçant par forge.yunohost.org, mais n’a pas trouvé : http://forge.yunohost.org/debian/dists/jessie/stable/binary-armhf/Packages

Même pb avec apt update

jessie n’est pas dans https://forge.yunohost.org/debian/dists/

root@YunoHost:~# sudo yunohost tools migrations migrate --accept-disclaimer
Warning: Running migration 3 migrate_to_stretch...
Ign http://forge.yunohost.org jessie InRelease
Ign http://forge.yunohost.org jessie Release.gpg
Hit http://archive.raspberrypi.org jessie InRelease
Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Ign http://forge.yunohost.org jessie Release
Err http://forge.yunohost.org jessie/stable armhf Packages
  404  Not Found [IP: 80.67.172.144 80]
Ign http://forge.yunohost.org jessie/stable Translation-en_GB
Ign http://forge.yunohost.org jessie/stable Translation-en
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 15.0 kB in 7s (1,936 B/s)
W: Failed to fetch http://forge.yunohost.org/debian/dists/jessie/stable/binary-armhf/Packages  404  Not Found [IP: 80.67.172.144 80]

Woké alors alternativement, essayes de commenter la ligne dans le yunohost.list et de relancer la migration … elle upgradera pas yunohost mais ensuite on peut redécommenter la ligne (en mettant stretch si elle a pas été mise à stretch automagiquement) et ça devrait faire l’affaire

C’est bien le caractère # pour commenter ?
Car là, il échoue à lire la liste :

`̀``
root@YunoHost:~# sudo yunohost tools migrations migrate --accept-disclaimer
Warning: Running migration 3 migrate_to_stretch…
Hit http://archive.raspberrypi.org jessie InRelease
[…]
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists…
Error: Migration 3 migrate_to_stretch has failed with exception Your system is not fully up to date. Please perform a regular upgrade before running the migration to stretch., aborting

`̀``

Alors tentons une upgrade du système avec apt update && apt dist-upgrade

apt update && apt dist-upgrade fait.

*** Please tell me who you are.
Progress: [ 99%] [##########################################################################################] 
Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@YunoHost.(none)')
warning: etckeeper failed to commit changes in /etc using git

Est-ce un problème ?
Vérification version :

root@YunoHost:~# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Est-ce OK ?

Mouarf non … c’est un vieux problème normalement fixé depuis …

Oui et non :wink: Contrairement à ce que le nom “dist-upgrade” suggère parfois, ça ne fait pas les montées de versions, ça met juste à jour “complètement” ton système mais en restant sur la version majeure de debian actuelle.

L’objectif était juste de mettre à jour entièrement le système avant de faire la montée de niveau / migration, qui force à faire ça

Bref, maintenant tu peux tenter de relancer la migration

Super :+1:
La migration vers Stretch a démarré.
Merci beaucoup d’avoir soutenu mon élan de motivation pour migrer :grinning:

1 Like

N’oublie pas de migrer vers Buster ensuite :sweat_smile: (enfin déjà faut arriver au bout de celle pour stretch…)

Arg ! ça merde sur celle vers Stretch.

La migration 3 migrate_to_stretch a échoué avec l’exception [Errno 2] No such file or directory: ‘/etc/fail2ban/filter.d/yunohost.conf’, annulation
Je suis Migration vers Stretch échouée : No such file or directory: '/etc/fail2ban/filter.d/yunohost.conf' pour corriger.

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