"Connection reset by peer" withing a rsyncd strace log

thomas veymont thomas.veymont at gmail.com
Wed Mar 16 05:13:41 MDT 2011


2011/3/15 Wayne Davison <wayned at samba.org>:
> On Tue, Mar 15, 2011 at 9:09 AM, thomas veymont <thomas.veymont at gmail.com>
> wrote:
>>
>> [receiver] io timeout after 60 seconds -- exiting
>
>  You should try a larger --timeout=N value, since 60 is too small for your
> data.  Also, if the timeout is set in the rsyncd.conf file, make sure that
> the client uses a matching --timeout option, or it won't cooperate in the
> keep-alive work.
> ..wayne..
>

thanks for your answer. We tried a timeout=600 on both client and server,
but the problem still pops up, this way:

## on the server side:
(...)
[pid 28105] select(7, NULL, [6], [6], {60, 0}) = 1 (out [6], left {60, 0})
[pid 28105] write(6,
"\273\251\231\216\244\252\271\320\354\f\24\33\3\332\274\377\221\377|\377k\377]\377^\377^\377X\377p\25"...,
4092) = 4092
[pid 28105] time(NULL)                  = 1300272234
[pid 28105] select(7, NULL, [6], [6], {60, 0}) = 1 (out [6], left {60, 0})
[pid 28105] write(6, "\374\17\0\7", 4)  = -1 ECONNRESET (Connection
reset by peer)
[pid 28105] time(NULL)                  = 1300272234
[pid 28105] open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file
or directory)
[pid 28105] open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file
or directory)
[pid 28105] open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file
or directory)
[pid 28105] send(3, "<28>Mar 16 10:43:54 rsyncd[28105"..., 136,
MSG_NOSIGNAL) = 136
[pid 28105] rt_sigaction(SIGUSR1, {0x1, [], 0}, NULL, 8) = 0
[pid 28105] rt_sigaction(SIGUSR2, {0x1, [], 0}, NULL, 8) = 0
[pid 28105] time(NULL)                  = 1300272234
(...)
[pid 28105] gettimeofday({1300272234, 321975}, NULL) = 0
[pid 28105] exit_group(12)              = ?
(...)

## on the client side:
(...)
receiving file list ... done
data/2010/346/
data/2010/346/YA.UVxx.00.xx.2010.346.dta
(...)
data/2010/346/YA.UVxx.00.HHE.2010.346.dta
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(760)
[receiver=3.0.7]
rsync: connection unexpectedly closed (1102242 bytes received so far)
[generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601)
[generator=3.0.7]
(...)

this time the timeout message you saw in my first mail
did not appear. FYI the directory is arount 1Tb size, with 31000 files.

any suggestion helpful
Tom


More information about the rsync mailing list