Errors with program diagnostics (code 13) after rsync upgrade
Maxim Usatov
maxim.usatov at bcsatellite.net
Fri Nov 15 16:08:27 UTC 2024
Dear All,
Having weird rsync issues after upgrading FreeBSD from 13.2 to 14.1 and
rsync along with it. I cannot find any solution. Setup: doing rsync
backup from the root ZFS to an SSD mounted to /media/da0p1. The rsync is
initiated as root using /etc/crontab. The log:
2024/11/15 08:30:01 [61842] building file list
<... a few hundred files listed here - no error messages! ..>
2024/11/15 08:30:41 [61842] sent 15069073 bytes received 77859 bytes
total size 104786993196
2024/11/15 08:30:41 [61842] rsync error: errors with program diagnostics
(code 13) at log.c(245) [sender=3.3.0]
I assume code 13 is related to permissions, but given rsync is started
as root, why would this happen? The same rsync commands worked on all
previous versions of FreeBSD. It also fails with the same error to a
remote SSH host. If I run my rsync backup scripts manually as root then
everything works fine, so the issue appears only when the script is
initiated by cron.
/etc/crontab entry:
30 * * * * root
/home/blackhaz/scripts/rsync-to-external-drive
rsync command in the script:
if mount | grep $TARGET_DISK; then
nice rsync --log-file=$RSYNC_LOG_FILE \
--archive --hard-links --delete --delete-excluded --sparse
--xattrs --numeric-ids --acls --progress \
/ /media/$TARGET_DISK/freebsd-backup
Would appreciate any pointers. Tried without--hard-links and getting the
same error.
Regards,
Maxim Usatov
More information about the rsync
mailing list