View previous topic :: View next topic |
Author |
Message |
peaceful Apprentice
Joined: 06 Jun 2003 Posts: 287 Location: Utah
|
Posted: Fri Nov 21, 2003 3:12 pm Post subject: Why does rsync fail so much when doing 'emerge sync' ? |
|
|
When I do an 'emerge sync', rsync usually ancounters the following error with one or two servers before finding one that actually works completely.
Anyone know what's causing this?
Code: | rsync: connection unexpectedly closed (1490379 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
|
|
|
Back to top |
|
|
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
|
Back to top |
|
|
Angry Geek Apprentice
Joined: 23 Apr 2003 Posts: 162 Location: .uk
|
Posted: Fri Nov 21, 2003 7:00 pm Post subject: |
|
|
I have exactly the same issue and my net connection is fairly stable. Only seems to be rsync that has the issue, all other services work fine. _________________ Linux user 327411. Go get counted! |
|
Back to top |
|
|
peaceful Apprentice
Joined: 06 Jun 2003 Posts: 287 Location: Utah
|
Posted: Sun Nov 23, 2003 5:12 am Post subject: Rock Solid |
|
|
Oopsz wrote: | That happens when the stream gets dropped somewhere.. how solid is your net connection? |
My connection is rock solid. I'm running on dual-T3's.
(Beat that ) |
|
Back to top |
|
|
JSharku Apprentice
Joined: 09 Feb 2003 Posts: 189 Location: Belgium
|
Posted: Sun Nov 23, 2003 6:15 am Post subject: |
|
|
I often have the same problem when manually doing an 'emerge sync' however my rsync cron script (adapted from the Gentoo rsync mirror Howto) is run I hardly ever have problems with rsyncing. The script itself:
Code: |
#!/bin/bash
RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times --devices --compress --delete
--delete-after --exclude=distfiles/ --exclude=packages/ --timeout=600"
SRC="rsync://rsync.gentoo.skynet.be/gentoo-portage"
DST="/usr/portage/"
BASENAME="/usr/bin/basename"
echo "Started update at "`date` >> /var/log/`$BASENAME $0`.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> /var/log/`$BASENAME $0`.log 2>&1
echo " Ended update at "`date` >> /var/log/`$BASENAME $0`.log 2>&1
|
Sharku |
|
Back to top |
|
|
c_kuzmanic Guru
Joined: 18 Apr 2002 Posts: 488 Location: Los Angeles , California
|
Posted: Mon Nov 24, 2003 5:59 am Post subject: |
|
|
I had this problem when using mm-sources and the supplied nforce-net driver (forcedeth). Drove me nutts, using a hacked up version of the original nvnet driver from nvidia finally fixed it. |
|
Back to top |
|
|
|