Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146274 - gentoo-rsync-mirror unable to rsync against Gentoo mirrors with default rsync options
Summary: gentoo-rsync-mirror unable to rsync against Gentoo mirrors with default rsync...
Status: RESOLVED DUPLICATE of bug 199128
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 08:27 UTC by Flophouse Joe
Modified: 2007-11-14 09:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flophouse Joe 2006-09-04 08:27:39 UTC
Starting 2006-09-01, I noticed that /opt/gentoo-rsync/rsync-gentoo-portage.sh (of app-admin/gentoo-rsync-mirror) was no longer able to rsync against any of the gentoo rsync mirrors it tried.

I was able to resolve the problem by changing the rsync options in /etc/rsync/gentoo-mirror.conf such that they (nearly) matched the same set of rsync options used by the regular "emerge --sync" command.  If others have the same problem as I, then perhaps these rsync options should be included in the gentoo-rsync-mirror ebuild.

Here is the working line from /etc/rsync/gentoo-mirror.conf :

OPTS="--quiet --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
Comment 1 Flophouse Joe 2006-09-04 08:28:03 UTC
Now that the problem's been described and I've provided a solution, I'll give some background information in case it proves useful to others having the same problem.

1. gentoo-rsync-mirror was working fine for me until 2006-09-01.  This just so happens to be the first time it had run after updating the system to gcc-4.1.1 and glibc-2.4-r3, which had just become available in portage.

After emerging the new gcc and glibc packages, I took care to perform sanity checks, including:
(a) following the instructions in the Gentoo GCC upgrade guide at http://www.gentoo.org/doc/en/gcc-upgrading.xml
(b) waiting until the new glibc and gcc had been emerged
(c) rebooting, then "emerge -e world"
(d) rebooting, rebuilding the kernel & modules, and rebooting again

The problem described in this bug persisted after doing all of the above.  It wasn't until I changed the rsync options that I was able to use rsync-gentoo-portage.sh successfully.

2. Pasted below is a copy of the log from /opt/gentoo-rsync/rsync-gentoo-portage.sh.log showing the error that was appearing.  The rsync mirror defined in /etc/rsync/gentoo-mirror.conf was "SRC="rsync://rsync.us.gentoo.org/gentoo-portage"".  I noticed this problem when I noticed that there didn't appear to have been any changes to the portage tree and that /opt/gentoo-rsync/portage/metadata/timestamp.chk was stale.

---- start of rsync-gentoo-portage.sh.log paste ----
Started update at Wed Aug 30 03:10:02 EDT 2006
End: Wed Aug 30 03:11:15 EDT 2006
Started update at Thu Aug 31 03:10:01 EDT 2006
End: Thu Aug 31 03:11:44 EDT 2006
Started update at Fri Sep 1 03:10:02 EDT 2006
rsync: on remote machine: --no-specials: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(473)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(616) [receiver=2.6.8]
End: Fri Sep 1 03:14:10 EDT 2006
Started update at Sat Sep 2 03:10:01 EDT 2006
rsync: on remote machine: --no-specials: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(473)
rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(465) [receiver=2.6.8]
End: Sat Sep 2 03:13:53 EDT 2006
Started update at Sat Sep 2 18:00:42 EDT 2006
rsync: on remote machine: --no-specials: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(473)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(616) [receiver=2.6.8]
End: Sat Sep 2 18:04:01 EDT 2006
Started update at Sun Sep 3 03:10:01 EDT 2006
rsync: on remote machine: --no-specials: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(473)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(616) [receiver=2.6.8]
End: Sun Sep 3 03:13:15 EDT 2006 
---- end of rsync-gentoo-portage.sh.log paste ----
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-14 09:49:02 UTC

*** This bug has been marked as a duplicate of bug 199128 ***