I have a Raspberry Pi 4B that runs a nightly rsync from a local USB disk (ext4) to a NAS (cifs).
The job has worked fine for several months. But in the last few days I am getting rsync errors which stop some files from being transferred. rsync reports "File exists (17)" errors when it is handling an updated file and attempts to rename its temporary copy on the remote destination. See log below.
The errors are associated with the kernel upgrade to 5.4.51. The errors did not occur on 4.19.118 (from apt) or 5.4.50 (from rpi-update). They do occur on 5.4.51 from either apt or rpi-update. See detailed kernel chronology below. Neither rsync (3.1.3) nor cifs-utils (2:6.8-2) have been upgraded recently.
Can anyone advise? I guess as a temporary workaround I could investigate downgrading to 4.19. But it would be good to solve the errors on the current stable kernel in apt. Please let me know if any additional logs or details are needed.
rsync output is:
Code: Select all
sudo rsync -ah --no-o --no-g --delete-after /mnt/hdd0/backup/ /mnt/nas_pi/backup_nas_copy/
Code: Select all
rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/.bupindex.DfvqrC" -> "bup/bupindex": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/.bupindex.hlink.pq3IBk" -> "bup/bupindex.hlink": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/.bupindex.meta.BUMlq1" -> "bup/bupindex.meta": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/logs/refs/heads/.aleph.L5EJOK" -> "bup/logs/refs/heads/aleph": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/logs/refs/heads/.percival.JKHxGx" -> "bup/logs/refs/heads/percival": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/logs/refs/heads/.smiley.lyQ5kj" -> "bup/logs/refs/heads/smiley": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/objects/pack/.bup.bloom.Bmr7q8" -> "bup/objects/pack/bup.bloom": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/refs/heads/.aleph.l04WSZ" -> "bup/refs/heads/aleph": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/refs/heads/.percival.hY9WoT" -> "bup/refs/heads/percival": File exists (17) rsync: rename "/mnt/nas_pi/backup_nas_copy/bup/refs/heads/.smiley.XHDzHL" -> "bup/refs/heads/smiley": File exists (17) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
- until Thursday 16th: using 5.4.50 obtained using rpi-update. No errors.
- Thursday 16th: upgraded to 5.4.51 using rpi-update. Rsync errors.
- Friday 17th: reverted to stable apt kernel (4.19.118) by reinstalling the apt kernel packages. No rsync errors.
- Today: the stable kernel in apt has been upgraded to 5.4.51. Rsync errors.