[Bug 1896251] Re: rsync --delete-missing-args fails with "error: protocol incompatibility"
Steve Langasek
1896251 at bugs.launchpad.net
Fri Nov 5 23:41:06 UTC 2021
Hello Mikko, or anyone else affected,
Accepted rsync into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/rsync/3.1.3-8ubuntu0.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: rsync (Ubuntu Focal)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-focal
** Changed in: rsync (Ubuntu Bionic)
Status: In Progress => Fix Committed
** Tags added: verification-needed-bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rsync in Ubuntu.
https://bugs.launchpad.net/bugs/1896251
Title:
rsync --delete-missing-args fails with "error: protocol
incompatibility"
Status in rsync package in Ubuntu:
Fix Released
Status in rsync source package in Xenial:
Won't Fix
Status in rsync source package in Bionic:
Fix Committed
Status in rsync source package in Focal:
Fix Committed
Bug description:
[Impact]
Rsync crashes when using --delete-missing-args on a file with a
missing parent folder.
Backporting this fix will allow users to delete missing source args
when some files in the list have missing parent folders without
interruption.
This is fixed by patching in an upstream commit that allows files with
missing parent folders to be handled without aborting.
[Test Plan]
# lxc launch images:ubuntu/focal builder
# lxc exec builder bash
# apt update
# apt dist-upgrade
# apt install -y rsync
# mkdir -p a/1 b/1; echo "/1/2/3" > list
# rsync --dry-run --stats -Pav --delete-missing-args --files-from=list a b
* This should crash with exit code 2 after printing the following:
building file list ...
0 files...
file has vanished: "/root/a/1/2"
2 files to consider
ABORTING due to invalid path from sender: 1/2/3
rsync error: protocol incompatibility (code 2) at generator.c(1278) [generator=3.1.3]
[Where problems could occur]
Since the remove operation will now continue when files in the list
have missing parent folders, other errors and warnings with different
behaviors could arise instead.
A warning that may arise the most often in these situations is the
following:
warning: some files vanished before they could be transferred (code
24) at main.c(1207) [sender=3.1.3]
This appears at the end of the above test case with the new code. The
behavior is expected, but it may cause regressions due to changes in
the output of certain use cases.
[Original Description]
Running
rsync --delete-missing-args --files-from=...
fails with error message like
ABORTING due to invalid path from sender: dir1/dir2/dir3
rsync error: protocol incompatibility (code 2) at generator.c(1271) [generator=3.1.2]
if the listed directories are trying to delete full subtree of files.
According to https://bugzilla.samba.org/show_bug.cgi?id=12569 this has
been fixed in version 3.2.2.
See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863334
Could you update the rsync package or backport the fix?
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: rsync 3.1.2-2.1ubuntu1.1
ProcVersionSignature: Ubuntu 5.4.0-47.51~18.04.1-lowlatency 5.4.55
Uname: Linux 5.4.0-47-lowlatency x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CurrentDesktop: MATE
Date: Fri Sep 18 18:27:53 2020
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-01-05 (621 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: rsync
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsync/+bug/1896251/+subscriptions
More information about the foundations-bugs
mailing list