FS#10882 - Cannot sync ABS

Attached to Project: Arch Linux
Opened by Andrej Podzimek (andrej) - Thursday, 10 July 2008, 18:54 GMT
Last edited by Greg (dolby) - Monday, 21 July 2008, 14:12 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Simo Leone (neotuli)
Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

ABS script fails with the following output.

==> Starting ABS sync...
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.3]

I am using rsync.archlinux.org (and the default config file). I run three ArchLinux machines. Two of them can use ABS with no problem at all. Perhaps one of my IP addresses is blocked. (But I haven't done anyting wrong to the server...)

Additional info:
* package version(s)

[andrej@xandrej ~]$ pacman -Q pacman abs rsync
pacman 3.1.4-1
abs 2.1-1
rsync 3.0.3-1

* config and/or log files etc.

#
# /etc/abs/abs.conf
#

# the top-level directory of all your PKGBUILDs
[ "$ABSROOT" = "" ] && ABSROOT="/var/abs/"

#
# Server to sync from
#
SYNCSERVER="rsync.archlinux.org"

#
# The architecture to fetch abs for
# Either i686 or x86_64
#
ARCH="i686"

#
# REPOS to be parsed by abs (in this order)
# (prefix a repo with a ! to disable it)
#
# Note: If a repo is removed, it is still fetched!
# Repos must be preceded with a ! to prevent fetching
#
REPOS=(core extra !unstable community !testing)

Steps to reproduce:

abs
This task depends upon

Closed by  Greg (dolby)
Monday, 21 July 2008, 14:12 GMT
Reason for closing:  Works for me
Comment by Allan McRae (Allan) - Thursday, 10 July 2008, 20:13 GMT
Can you run this rsync manually?

rsync -mrtv --no-motd --delete-after \
--include=/core --include=/core/bash \
--exclude=/core/* --exclude=/* \
rsync.archlinux.org::abs/i686/ /tmp/abs/
Comment by Andrej Podzimek (andrej) - Friday, 11 July 2008, 18:04 GMT
No, I can't.

[root@xandrej abs]# rsync -mrtv --no-motd --delete-after \
> --include=/core --include=/core/bash \
> --exclude=/core/* --exclude=/* \
> rsync.archlinux.org::abs/i686/ /tmp/
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.3]
Comment by Allan McRae (Allan) - Saturday, 12 July 2008, 02:09 GMT
Sounds like a network issue to me, although you do say your other computers can access it. Can you ping rsync.archlinux.org from all computers and compare ip-address.
Comment by Andrej Podzimek (andrej) - Saturday, 12 July 2008, 06:40 GMT
The address is 66.211.213.17 on all machines, no matter if they can access rsync or not. (All three of them connect from different locations and use different providers.)

Reverse mappings differ. (But this probably doesn't cause the problem...)

This is what I see on the machine that cannot connect:
64 bytes from rsync.archlinux.org (66.211.213.17): icmp_seq=1 ttl=47 time=142 ms

A machine where ABS works says:
64 bytes from 66-211-213-17.velocity.net (66.211.213.17): icmp_seq=1 ttl=51 time=123 ms
Comment by Andrej Podzimek (andrej) - Saturday, 12 July 2008, 06:52 GMT
BTW, this is what Google found about a the error message I can see:
http://www.nabble.com/Non-clean-Rsync-3.0.3-exit-on-OSX-td18247610.html

But there's a significant difference: All my machines have Intel 32-bit CPUs (Core Duo, dual Pentium III, Pentium M). So this cannot be an endianness issue.

I'm attaching the output from strace.
Comment by Allan McRae (Allan) - Saturday, 12 July 2008, 07:17 GMT
I am definite this is a network issue and not a rsync or abs issue. The question is how to fix it...
Comment by Andrej Podzimek (andrej) - Sunday, 13 July 2008, 00:41 GMT
You are right. I travelled from Prague to Zlín today and took my laptop with me. It could not connect to ABS using my connection in Prague. In Zlín, ABS worked with no problems at all on the same laptop. (Prague and Zlín are cities in the Czech Republic. (Which probably doesn't matter that much.))

Conclusions:
1) There is (probably) nothing wrong with my system.
2) The problem is IP-address-dependent.
3) ABS worked fine even in Prague just a couple of days ago.

This could happen if the rsync server was using a complex iptables configuration, possibly with a firewall daemon. For some reason or other, one of my IP addresses is now considered untrustworthy...
Comment by Allan McRae (Allan) - Sunday, 13 July 2008, 02:07 GMT
Simo: Is this something done at our end?
Comment by Orivej Desh (George_K) - Friday, 18 July 2008, 09:42 GMT
Same problem here. On both arch i686 and x86_64. rsync.archlinux.org maps to 66-211-213-17.velocity.net.
Comment by Orivej Desh (George_K) - Friday, 18 July 2008, 09:44 GMT
I forgot to mention that my problem has started just a few days ago.
Comment by Glenn Matthys (RedShift) - Friday, 18 July 2008, 15:35 GMT
Cannot confirm this. I also believe this is a networking issue on your end. Firewall? ISP? Use something like wireshark to see what's actually going over the line, that should give you more information.
Comment by Orivej Desh (George_K) - Saturday, 19 July 2008, 18:37 GMT
ABS has started working yesterday, so can't check it anymory. It was obviously not my fault.

Loading...