[borg] Backup failed from

Bonsoir,

Matériel: RaspBerry PI 4B 8Go
Version de YunoHost: 11.0.9.15 (stable)
J’ai accès à mon serveur : En SSH et par la webadmin
Je viens de faire la migration vers YunoHost 11 qui c’est bien passé…

J’ai un autre problème depuis la migration… J’ai BorgBackup qui ne fait plus les sauvegardes… Il m’envoie un mail d’erreur:
https://paste.chapril.org/?e550b1851dc9bd26#EfbiNA2DptKwobbPjhTFuBG6VQfvqigWUoqn4vGtEVmu

J’ai un autre problème encours:
Pb metronome après migration 11
Et je me demandais si les deux problèmes n’était pas lié avec comme point commun le langage Python ??

Par contre cela serait bien si Borg pouvait fonctionnait pour faire mes backup!

JM

Bonjour, il me semble avoir forcer la mise à jour après la migration avec un yunohost app borg update -F, mais ce n’est peut-être pas conseillé, car je reçois depuis plusieurs semaines ce message de Diagnosis (ce qui ne vient pas de la mise à jour exécutée bien en amont).

Ceci dit: «All python apps need to be force updated after the upgrade (it will be explain in the docs) It was already like this for stretch → buster»

[WARNING] An issue was found for app Borg Backup
  - This application is currently flagged as broken on YunoHost's application catalog. This may be a temporary issue while the maintainers attempt to fix the issue. In the meantime, upgrading this app is disabled.

[WARNING] An issue was found for app Borg Local Backup
  - This application is currently flagged as broken on YunoHost's application catalog. This may be a temporary issue while the maintainers attempt to fix the issue. In the meantime, upgrading this app is disabled.

See Borg is currently flagged as broken on YunoHost's application - #2 by ljf

1 Like

Du coup je pense que tu dois pouvoir faire un
sudo yunohost app upgrade borg -F sans soucis.
Pour metronome pareil…
sudo yunohost app upgrade metronome -F

Bonjour,

Du coup les mises à jour forcé n’ont pas fonctionné…

$ sudo yunohost app upgrade metronome -F
Error: Could not find metronome in the list of installed apps:
 * borg
 * keeweb
 * my_webapp
 * nextcloud
 * rainloop
 * roundcube
 * thelounge
 * vaultwarden
 * vpnclient

Et pour:

$ sudo yunohost app upgrade borg -F

https://paste.yunohost.org/burimosuqi.sql

$ sudo yunohost log share 20221016-130036-app_upgrade-borg
Info: This log is now available via https://paste.yunohost.org/raw/laferogero

https://paste.yunohost.org/raw/laferogero

Pour metronome, cela ne semble pas être la bonne méthode…
Et pour borg, y a t-il encore un problème de dépendance cassé ??

JM

Est-ce que les migrations ont bien été effectuées ??

sudo apt update && sudo apt upgrade --fix-missing
sudo yunohost tools migrations run 0021_migrate_to_bullseye --skip

et
sudo yunohost tools migrations list --pending
puis
sudo yunohost tools migrations run --accept-disclaimer

$ sudo apt update && sudo apt upgrade --fix-missing
Hit:1 http://forge.yunohost.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                                      
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease                                         
Hit:4 https://packages.sury.org/php bullseye InRelease                                                 
Reading package lists... Done                              
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Skipping acquire of configured file 'ui/binary-armhf/Packages' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/i18n/Translation-en' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/i18n/Translation-en_US' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/Contents-armhf' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gcc-8-base
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo yunohost tools migrations run 0021_migrate_to_bullseye --skip
Error: These migrations are not pending, so cannot be skipped: 0021_migrate_to_bullseye
$ sudo yunohost tools migrations list --pending
migrations:
$ sudo yunohost tools migrations run --accept-disclaimer
Info: No migrations to run

Par contre c’est peut-être là le soucis…

1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Skipping acquire of configured file 'ui/binary-armhf/Packages' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/i18n/Translation-en' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/i18n/Translation-en_US' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'ui/Contents-armhf' as repository 'http://archive.raspberrypi.org/debian bullseye InRelease' doesn't have the component 'ui' (component misspelt in sources.list?)

Dois-je créer un fil de discussion exprès sur le forum pour ce warning ?

Par-contre maintenant, j’ai borg qui n’est plus installé sur mon YunoHost, et il refuse de me restaurer le backup…
Comme j’ai quand-même pris des précautions, et fait un clone avec rpi-clone, je vais donc redémarrer sur le clone!

JM

$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
$ cat /etc/apt/sources.list.d/extra_php_version.list 
deb https://packages.sury.org/php/ bullseye main
$ cat /etc/apt/sources.list.d/raspi.list 
deb http://archive.raspberrypi.org/debian/ bullseye main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ bullseye main ui
$ cat /etc/apt/sources.list.d/yunohost.list 
deb http://forge.yunohost.org/debian/ bullseye stable

Dois-je rajouter quelque chose dans ces fichiers ??

JM

Pour borg, essaie de faire apt install cython avant le “force upgrade” de borg

python ?

Non cython, l’erreur dans le log de borg dit

The GIT version of Borg needs Cython. Install Cython or use a released version.

Dans tous les cas l’installation de Cython ne se fait pas et revoit une erreur:

$ sudo apt install cython
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package cython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'cython' has no installation candidate

JM

apt install cython3

Ça a bien installé cython3 mais la maj forcé de Borg a planté…

$ sudo apt install cython3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bind9-utils bind9utils php-gettext php7.3-apcu php7.3-bcmath php7.3-bz2 php7.3-curl php7.3-fpm php7.3-gmp php7.3-igbinary php7.3-imagick php7.3-imap php7.3-intl php7.3-ldap php7.3-mysql php7.3-redis php7.3-zip python3-ply
  python3-publicsuffix
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  cython-doc
The following NEW packages will be installed:
  cython3
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,234 kB of archives.
After this operation, 6,215 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf cython3 armhf 0.29.21-3+b1 [1,234 kB]
Fetched 1,234 kB in 1s (1,746 kB/s)
Selecting previously unselected package cython3.
(Reading database ... 73225 files and directories currently installed.)
Preparing to unpack .../cython3_0.29.21-3+b1_armhf.deb ...
Unpacking cython3 (0.29.21-3+b1) ...
Setting up cython3 (0.29.21-3+b1) ...
$ sudo yunohost app upgrade borg -F

https://paste.yunohost.org/uduzocitol.sql

sudo yunohost log share 20221016-145952-app_upgrade-borg
Info: This log is now available via https://paste.yunohost.org/raw/fajoceniru

https://paste.yunohost.org/raw/fajoceniru

Et je pense que je ne peux plus restaurer Borg, je vais donc être obligé de redémarrer sur le clone!

JM

Bon ben ça fait la même erreur à propos de cython, ce qui est étonnant c’est que les autres n’ont pas cette erreur !

peut être que c’est lié au fait d’utiliser un rpi ?

Vu que la maj de Borg ne se fait pas, j’ai donc tenté une réinstallation, qui a échoué:
https://paste.yunohost.org/raw/iwelidibis

JM