syncrepo: rsync failing to update some files

This happens often with paths like:

  • lastsync
  • community/os/x86_64/community.files.tar.gz

The updated file remains stuck in e.g. community/os/x86_64/.~tmp~/community.files.tar.gz and won't get relocated to its proper path. rsync seems unable to resolve this on its own in following runs.

Some logs I saved in October:

Oct 17 18:38:01 dragon.archlinux.org syncrepo[2017609]: WARNING: community/os/x86_64/community.files.tar.gz failed verification -- update discarded (will try again).
Oct 18 12:41:04 dragon.archlinux.org syncrepo[3140845]: WARNING: community/os/x86_64/community.files.tar.gz failed verification -- update put into partial-dir (will try again).
Oct 19 17:17:03 dragon.archlinux.org syncrepo[358950]: WARNING: lastsync failed verification -- update discarded (will try again).
Oct 21 22:41:03 dragon.archlinux.org syncrepo[826587]: WARNING: lastsync failed verification -- update put into partial-dir (will try again).

The one causing files to be left behind is likely the failed verification -- update put into partial-dir (will try again) one.