rsync fails with "No such file or directory (2)" when renaming temporary files

Solution Verified - Updated -

Issue

  • rsync -auvh --progress /source/ root@target:/target fails with following errors:
rsync: stat "/target/.0000002547.enIcmp" failed: No such file or directory (2)
rsync: rename "/target/.0000002547.enIcmp" -> "0000002547": No such file or directory (2)
...
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
  • rsync fails on some specific files , and always fails on those files. However, there is no obvious pattern in file type, attribute, size or ownership.
  • SElinux is disabled.

Environment

  • Red Hat Enterprise Linux 7
  • ds_agent (Deep Security Agent)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content