Backup failed
franc00018 opened this issue · comments
Describe the bug
An automated backup job failed
Context
- Hardware: VPS bought onlin
- YunoHost version: 4.2.6.1
- I have access to my server: Through SSH
- Current package version: 11.5.0~ynh1
Steps to reproduce
sudo yunohost backup create --apps piwigo
Expected behavior
I expect the backup to run successfully without error as it has been doing for a long time
Logs
Info: Collecting files to be backed up for piwigo...
Info: Loading installation settings...
Info: Declaring files to be backed up...
Warning: Source path '' does not exist
Error: Could not back up piwigo
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20210627-034959-backup_create' to get help
Error: Nothing to save
Here's my log
If I'm not wrong, the error comes from
Line 31 in f26db37
The backup script looks for an app setting that doesn't exist.
Indeed, this line:
Line 124 in 1aa6ce5
is from 2 months ago, so new installs have this app setting.
But it hasn't been added in the upgrade script (I'm going to try and create a pull request to add it).
In the meantime, I have run this command:
sudo yunohost app setting piwigo datapath -v "/home/yunohost.app/piwigo"
and the backup worked. You just need to make sure that piwigo is the correct app name for you (especially if you have multiple instances).
Thanks, it solved my issue. I ran the command to add datapath, then upgraded the application version