Since last yunohost system upgrade (passing to bookworm), I'm having this strange thing that borg backup keep failing every night with logs ending with the following:
- 2025-01-23 02:31:58,975: DEBUG - + /var/www/borg/venv/bin/borg create --stats '::auto_<appName>-{now}' .
- 2025-01-23 02:32:05,339: DEBUG - + retcode=2
- 2025-01-23 02:32:05,339: DEBUG - + popd
- 2025-01-23 02:32:05,339: DEBUG - /etc/yunohost/hooks.d/backup_method
- 2025-01-23 02:32:05,339: DEBUG - + [[ 2 == 1 ]]
- 2025-01-23 02:32:05,339: DEBUG - + [[ 2 != 0 ]]
- 2025-01-23 02:32:05,339: DEBUG - + exit 2
- 2025-01-23 02:32:05,440: ERROR - Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 301, in hook_callback
- hook_return = hook_exec(
- ^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 421, in hook_exec
- raise YunohostError("hook_exec_failed", path=path)
- yunohost.utils.error.YunohostError: Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
Each app's backup fails with this samge message (including yunohost system config and data).
I can't really figure out the meaning of the problem, those logs seem very vague to me.
Yunohost is the latest version, borg_ynh as well.
And I tried running yunohost app upgrade borg --force with no effect.
The strangest thing to me, is that I have in the same server another borg instance which sends backup of the same content to another server, and this is working fine.
On top of that, another yunohost server is sending without issues backups to the target borg server for which this one is failing.
So it seems the problem is really locate in this specific borg_ynh instance.
I had a look at the /etc/yunohost/hooks.d/backup_method/05-borg_app script and it's content and permissions are analogous to /etc/yunohost/hooks.d/backup_method/05-borg__2_app (apart from target server obviously). So nothing seems wrong in their either.
If anyone has a clue on what could be happening or how I may investigate the issue, it's very welcome :)
Since last yunohost system upgrade (passing to bookworm), I'm having this strange thing that borg backup keep failing every night with logs ending with the following:
Each app's backup fails with this samge message (including yunohost system config and data).
I can't really figure out the meaning of the problem, those logs seem very vague to me.
Yunohost is the latest version, borg_ynh as well.
And I tried running
yunohost app upgrade borg --forcewith no effect.The strangest thing to me, is that I have in the same server another borg instance which sends backup of the same content to another server, and this is working fine.
On top of that, another yunohost server is sending without issues backups to the target borg server for which this one is failing.
So it seems the problem is really locate in this specific borg_ynh instance.
I had a look at the
/etc/yunohost/hooks.d/backup_method/05-borg_appscript and it's content and permissions are analogous to/etc/yunohost/hooks.d/backup_method/05-borg__2_app(apart from target server obviously). So nothing seems wrong in their either.If anyone has a clue on what could be happening or how I may investigate the issue, it's very welcome :)