You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched the bugtracker for similar issues, including closed ones.
What did you do?
Set rsync_numtries to 0 (because I thought that this is the number of retries after failure, not the number of tries in total).
What happened?
I got error not much telling if not deceptive error:
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot -c /etc/rsnapshot/vg0.conf sync
----------------------------------------------------------------------------
ERROR: /usr/bin/rsync syntax or usage error. Does this version of rsync support --link-dest?
umount: /mnt/rsnapshot: target is busy.
ERROR: Unmount LVM snapshot failed: 8192
Logical volume vg0/rsnapshot contains a filesystem in use.
ERROR: Removal of LVM snapshot failed: 1280
What did you expect to happen
sync to succeed without error.
After rsync_numtries was set to 1 everything worked as expected.
Confirmed: the example in rsnapshot.conf.default.in is wrong. 0 does not make sense for the total number of tries, minimum needs to be 1. This should be caught by rsnapshot, too.
I will have a look into it in the coming days.
StefanMoch
pushed a commit
to StefanMoch/rsnapshot
that referenced
this issue
Mar 13, 2023
In preparation for the fix, add testcases for the rsync_numtries
configuration option:
- 1, okay
- notanumber, not okay
- negative number, not okay
These are already correctly validated.
rsnapshot#319
StefanMoch
pushed a commit
to StefanMoch/rsnapshot
that referenced
this issue
Mar 13, 2023
Since this is the number of tries – and not retries –, rsync_numtries
needs to be at least 1. This fixes the validation code for this
configuration value, its error message, the configuration example, and
related text.
rsnapshot#319
Fix validation of rsync_numtries = 0 (refs #319). Add test cases.
Since this is the number of tries – and not retries –, rsync_numtries
needs to be at least 1. This fixes the validation code for this
configuration value, its error message, the configuration example, and
related text.
---------
Co-authored-by: Stefan Moch <stefanmoch@mail.de>
Checklist
What did you do?
Set rsync_numtries to 0 (because I thought that this is the number of retries after failure, not the number of tries in total).
What happened?
I got error not much telling if not deceptive error:
What did you expect to happen
sync to succeed without error.
After rsync_numtries was set to 1 everything worked as expected.
My configuration
Environment
Other information
Also 0 should not be default value in: https://github.com/rsnapshot/rsnapshot/blob/master/rsnapshot.conf.default.in - and description there is misleading, stating that this is the number of retries.
The text was updated successfully, but these errors were encountered: