Gentoo Archives: gentoo-user

From: Steve Freeman <trekie@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [SOLVED] Upgrade to rsync-3.2.0-r1 results in "didn't get server startup line"
Date: Mon, 06 Jul 2020 07:19:49
Message-Id: f081dcea5836149494688c79fd333a9e@dimetra.net
In Reply to: [gentoo-user] Upgrade to rsync-3.2.0-r1 results in "didn't get server startup line" by Steve Freeman
1 On 2020-06-30 20:35, Steve Freeman wrote:
2 > I have a local gentoo repo mirror that has been running well for
3 > years. It is essentially the same setup as described at
4 > https://wiki.gentoo.org/wiki/Local_Mirror except that it runs on a
5 > non-default port.
6 >
7 > After upgrading to net-misc/rsync-3.2.0-r1 (from rsync-3.1.3), I can
8 > no longer emerge --sync from my clients. I receive messages such as:
9 >
10 > # emerge --sync
11 > >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
12 > >>> Starting rsync with rsync://10.10.10.10:5873/gentoo-portage...
13 > >>> Checking server timestamp ...
14 > opening tcp connection to 10.10.10.10 port 5873
15 > Connected to 10.10.10.10
16 > msg checking charset: UTF-8
17 > sending daemon args: --server --sender -vvvvlWtprze.iLsfxCIv
18 > --timeout=180 --safe-links --inplace .
19 > gentoo-portage/metadata/timestamp.chk (8 args)
20 >
21 > rsync: didn't get server startup line
22 > [Receiver] _exit_cleanup(code=5, file=main.c, line=1777): entered
23 > rsync error: error starting client-server protocol (code 5) at
24 > main.c(1777) [Receiver=3.2.0]
25 > [Receiver] _exit_cleanup(code=5, file=main.c, line=1777): about to
26 > call exit(5)
27 [SNIPPED]
28
29
30 According to this page:
31
32 https://www.lagerhaus128.ch/?p=1281
33
34 there appears to be a bug in rsync 3.2.0 and 3.2.1 involving transfer
35 logging.
36
37 He provides two workarounds in /etc/rsyncd.conf. Both worked for me.
38 1) Disable transfer logging (commenting out "transfer logging = yes"
39 fixed my issue).
40 2) Set a log format, for example "log format = %t %a %m %f %b". This
41 is the option I chose.
42
43 I wanted to pass this on in case someone else runs into the problem.
44
45 Cheers.
46
47 -Steve Freeman