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
{{ message }}
Repository navigation
3.5.0 receiver: --xattrs with --link-dest fails with "gen_entry_copy_xattrs: secure open ... No such file or directory" (works without -X) #1126
Since the receiving host runs rsync 3.5.0, my snapshot backup (push over ssh, --link-dest to the previous snapshot, --xattrs) fails in the generator with:
rsync: [generator] gen_entry_copy_xattrs: secure open of "/snapshots/<user>/20261012-132605/Documents/<dir>" failed: No such file or directory (2)
The same error is reported for all entries, not only this one. The identical command without --xattrs (still with --link-dest=../last and --acls) completes successfully.
/snapshots/<user>/last is a root-owned symlink to the previous snapshot (20260930-110733)
The new snapshot directory (20261012-132605) is created by this run, so subdirectories do not exist yet when the error occurs, while they do exist under last.
Source
The directory named in the first error is a plain directory (not a symlink), owned by the user running the backup, mode 0755, with no subdirectories.
Expected
Backup completes as with earlier versions.
Actual
Error as above, for all entries, with --xattrs + --link-dest. Without --xattrs it works.
Notes
3.5.0 changed how --link-dest and ACL/xattr handling resolve paths (secure resolver), so this may be a regression there. An old bug with a similar pattern (xattrs/ACL ENOENT with --link-dest when the directory exists only in the alt-dest) is https://bugzilla.samba.org/show_bug.cgi?id=6576, though I do not know whether it is related.
Could be 03535a6 but I could not reproduce it with a 3.2.7 sender, 3.5.0 receiver, real xattrs and the same relative last symlink. Please retry with 3.5.1 and provide both full rsync --version outputs, complete --debug=GENR3 stderr and a minimal tree preserving the failing ACLs and xattrs.
Yes. openat(0, "Documents", ...) = ENOENT is the failing fallback while the same lookup immediately succeeds relative to fd 5. Most likely 03535a6. Had some semi-related changes near this so confirm whether 3.5.1 fails; if so, rerun with strace -f -yy -e trace=%file so the fd roots are shown. Will fix the underlying cause though.
Alright. The trace narrows this down so thank you but I rebuilt the exact Debian 3.5.0+ds1-0+deb13u1 patch stack with ACL/xattr support and still cannot reproduce it with a 3.2.7 sender and the reported options. Please rerun the failing command with strace -f -yy -e trace=%file and provide the full --debug=GENR3 stderr. The -yy annotations matter here as this trace shows Documents missing relative to fd 0 and present relative to fd 5 but not what those descriptors reference.
I see the very same issue on FreeBSD since rsync v3.5.0 and now on v3.5.1, too.
For me also removing -X does not solve the issue. (But I use even more options:
-v -r -l -t -o -p -g -p -H -A -E -S -U -z)
Activity
steadytao commentedon Oct 13, 2026
Could be 03535a6 but I could not reproduce it with a 3.2.7 sender, 3.5.0 receiver, real xattrs and the same relative
lastsymlink. Please retry with 3.5.1 and provide both fullrsync --versionoutputs, complete--debug=GENR3stderr and a minimal tree preserving the failing ACLs and xattrs.JiriPrchal commentedon Oct 13, 2026
Is this strace usefull?
steadytao commentedon Oct 13, 2026
Yes.
openat(0, "Documents", ...) = ENOENTis the failing fallback while the same lookup immediately succeeds relative to fd 5. Most likely 03535a6. Had some semi-related changes near this so confirm whether 3.5.1 fails; if so, rerun withstrace -f -yy -e trace=%fileso the fd roots are shown. Will fix the underlying cause though.steadytao commentedon Oct 13, 2026
Nvm might not be that. Something in the Debian ports possibly.
steadytao commentedon Oct 13, 2026
Alright. The trace narrows this down so thank you but I rebuilt the exact Debian
3.5.0+ds1-0+deb13u1patch stack with ACL/xattr support and still cannot reproduce it with a 3.2.7 sender and the reported options. Please rerun the failing command withstrace -f -yy -e trace=%fileand provide the full--debug=GENR3stderr. The-yyannotations matter here as this trace showsDocumentsmissing relative to fd 0 and present relative to fd 5 but not what those descriptors reference.DomAsProgrammer commentedon Nov 15, 2026
I see the very same issue on FreeBSD since rsync v3.5.0 and now on v3.5.1, too.
For me also removing -X does not solve the issue. (But I use even more options:
-v -r -l -t -o -p -g -p -H -A -E -S -U -z)
However, is there any progress on this bug yet?