[solved] Borg ne se lance pas "yunohost app setting borg state -v failed"

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 11.3.0.2
What app is this about: borg

Describe your issue

I installed borg and it refuses to launch, I get this error: yunohost app setting borg state -v failed

Anybody would have an idea?

Share relevant logs or error messages

systemd[1]: borg.service: Consumed 5.333s CPU time.
systemd[1]: Failed to start Run backup borg.
systemd[1]: borg.service: Failed with result ‘exit-code’.
systemd[1]: borg.service: Main process exited, code=exited, status=1/FAILURE
sudo[4730]: pam_unix(sudo:session): session closed for user root
sudo[6165]: pam_unix(sudo:session): session closed for user root
sudo[6165]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
sudo[6165]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app setting borg state -v failed
sudo[6163]: pam_unix(sudo:session): session closed for user root
sudo[6163]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app setting borg mailalert
pam_unix(sudo:session): session closed for user root
pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)

There are log files located under /var/log/borg/yyMMdd_hhmm.{err,log}, (like /var/log/borg/241129_0000.err), these contain actual errors your backup process is encountering. Can you post content of example one (both *.log and *.err)?

Hi, thank you very much, it looks like it cannot connect to the borg server (which is a local Yunohost server with the Borg Server app, set up following the instructions - including the SSH key):

The err file is:

Source path ‘’ does not exist
Remote: ssh: connect to host 192.168.1.127 port 22: Connection timed out
Remote: ssh: connect to host 192.168.1.127 port 22: Connection timed out
Échec de l’exécution du script : /etc/yunohost/hooks.d/backup_method/05-borg_app
Échec de la méthode de sauvegarde personnalisée à l’étape ‘backup’

And the log file is (for testing, I’m backing up a small app only, wireguard):
Collecte des fichiers devant être sauvegardés pour wireguard…
Declaring files to be backed up…
Backup script completed for wireguard. (YunoHost will then actually copy those files to the archive).
Création d’une archive de sauvegarde à partir des fichiers collectés…
L’archive contiendra environ 22.0MB de données.
L’opération ‘Créer une archive de sauvegarde’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en uti>

Can you ping 192.168.1.127 from source (the one running Borg) system to see if the host is reachable?

1 Like

Wow, I feel really stupid now, such a basic problem… Anyway, it was because of my local network, the server to be backed up is on the main network (192.168.0.x) and the Borg backup server is on the subnet (192.168.1.x). And the ssh wasn’t passing between the 2. I put the backup server to the main network, changed the IP in the borg config, and everything works perfectly.

In short, really sorry to have made a post for such a basic problem, but thanks again for your help!

1 Like