Borg list webui and from shell not avalaible

I have searched the forum for similar issues

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

1.4.5~ynh3

What YunoHost version are you running

12.1.41.2

What type of hardware are you using

Virtual machine

Describe your issue

I don’t know why and it happens, borg works and do regular daily backups but I can’t see the list in the WebUI interface.

Share relevant logs or error messages

Also when I try from the shell the command borg is not recognize ?

root@yuno:~# yunohost app shell borg
borg@yuno:~$ borg list
bash: borg: command not found

I can’t use the command like this and it works like this

app=borg; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes " /var/www/${app}/venv/bin/borg list "$(yunohost app setting $app repository)"

But, perhaps something wrong ?

Hi @rodinux ,

what happens when you run the following command (:warning: :backhand_index_pointing_right: remove any sensitive information like the passphrase before pasting :backhand_index_pointing_left: :warning:).

bash -x /var/www/borg/wrapper/borg list
bash -x /var/www/borg/wrapper/borg list
+ set -eEu -o pipefail
+ env
+ grep -q '^BORG_'
+ set -a
+ source /var/www/borg/.env
++ BORG_PASSPHRASE='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
++ BORG_REPO=ssh://user@domain.tld:xxxx/~/backup
++ BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
++ BORG_RSH='ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes '
+ sudo '--preserve-env=BORG_PASSPHRASE BORG_REPO BORG_RELOCATED_REPO_ACCESS_IS_OK BORG_RSH BORG_REMOTE_PATH ' /var/www/borg/venv/bin/borg list
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auto_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.....

```

So it works. But it does not explain why this fails to list the backups in the WebAdmin.

Maybe check the ownership of the files. They should be owned by borg. Can you check that?

The borg command isn’t on the app shell’s PATH; the wrapper calls the virtualenv binary directly, and its successful output confirms the repository is readable. Besides checking ownership as suggested, inspect the browser’s network response when opening the WebAdmin list and the PHP/YunoHost logs for the corresponding request error.