<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>26605</bug_id>
          
          <creation_ts>2011-11-22 22:24:50 +0400</creation_ts>
          <short_desc>&quot;rsync a-DVD.iso ./&quot; fails in the middle (at about 1.8G)</short_desc>
          <delta_ts>2019-12-16 11:39:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 5.1</product>
          <component>rsync</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>26604</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>billmartinnn</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="QA 5.1">qa-5.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127091</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-22 22:24:50 +0400</bug_when>
    <thetext>rsync-3.0.8-alt0.M51.1

+++ This bug was initially created as a clone of Bug #26604 +++

rsync gets interrupted in the middle of the transfer of a DVD image. (I&apos;m continuing a previous partial transfer.) This has repeated many times, so there is no real progress further than about 1.8G of the file.

$ rsync -avz -P rsync.altlinux.org::beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace
opening tcp connection to rsync.altlinux.org port 873
sending daemon args: --server --sender -vvvlogDtprze.iLsf --inplace . &quot;beta/p6/simply/*rc2*i586*&quot; 
Welcome to ALT Linux Team public rsync archive!

receiving incremental file list
recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
received 1 names
recv_file_list done
get_local_name count=1 ./
recv_files(1) starting
generator starting pid=15816
delta-transmission enabled
recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,1)
generating and sending sums for 1
count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616
generate_files phase=1
recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616
  1865072912  51%   11.68MB/s    0:02:26
rsync error: timeout in data send/receive (code 30) at io.c(137) [sender=3.0.9]
rsync: connection unexpectedly closed (98438 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [receiver=3.0.8]
[receiver] _exit_cleanup(code=12, file=io.c, line=601): about to call exit(12)
rsync: connection unexpectedly closed (77 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [generator=3.0.8]
[generator] _exit_cleanup(code=12, file=io.c, line=601): about to call exit(12)
$ du -sb *
1868245616	altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
732954624	altlinux-6.0.1_rc1-simply-i586-ru-live-cd.iso
721420288	altlinux-6.0.0_beta20110620-simply-i586-ru-live-cd.iso
$ 

Perhaps, it&apos;s because of a timeout at the server side (which fails to wait enough for my client to process the initial, already-present chunk of the file)...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127093</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-11-22 23:41:59 +0400</bug_when>
    <thetext>Try this one: rsync://ftp.linux.kiev.ua/pub/Linux/ALT/beta/p6/simply/

PS: blaming a package for presumable configuration issues is, erm, funny...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127094</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-23 00:01:09 +0400</bug_when>
    <thetext>Thanks for your suggestion. I&apos;ll try your server and post what the result is.

Re blaming the program: I&apos;m not sure whether it&apos;s a configuration issue at the server side or not. Perhaps, it&apos;s a bug in rsync. 

Or it could be a feature request for rsync and the rsync protocol: the rsync client could warn the server that it&apos;s going to take some time, or send some keep-alive messages meanwhile...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127095</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-23 00:26:10 +0400</bug_when>
    <thetext>The same happens when working with ftp.linux.kiev.ua:

$ rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace
opening tcp connection to ftp.linux.kiev.ua port 873
Connected to ftp.linux.kiev.ua (62.149.13.37)
sending daemon args: --server --sender -vvvlogDtprz --inplace . &quot;pub/Linux/ALT/beta/p6/simply/*rc2*i586*&quot; 
Welcome to ftp.linux.kiev.ua rsync server!

Gigabit bandwidth for this site is generously provided
by Colocall ISP -- visit http://www.colocall.net
if you need *amazing* hosting service!

receiving file list ... 
recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
received 1 names
1 file to consider
recv_file_list done
get_local_name count=1 ./
recv_files(1) starting
generator starting pid=19250
delta-transmission enabled
recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,0)
generating and sending sums for 0
count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616
generate_files phase=1
recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616
  1851416656  51%   21.30MB/s    0:01:21
rsync error: timeout in data send/receive (code 30) at io.c(165) [sender=2.6.9]
rsync: connection unexpectedly closed (114864 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [receiver=3.0.9]
[receiver] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
rsync: connection unexpectedly closed (97 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]
[generator] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
$ 

Reproduced 2 times.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127128</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-11-23 16:12:45 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; Or it could be a feature request for rsync and the rsync protocol: the rsync
&gt; client could warn the server that it&apos;s going to take some time, or send some
&gt; keep-alive messages meanwhile...
That might make a nice upstream FR if the current rsync versions at both ends are confirmed to (mis)behave like this.

(In reply to comment #3)
&gt; The same happens when working with ftp.linux.kiev.ua:
[...]
&gt;   1851416656  51%   21.30MB/s    0:01:21
&gt; rsync error: timeout in data send/receive (code 30) at io.c(165)
[...]
&gt; Reproduced 2 times.
Could you please run it under time(1) once more?  I can tweak timeouts at f.l.k.u for us to understand whether it depends on those or not (didn&apos;t change anything yet).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127152</commentid>
    <comment_count>5</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-24 03:51:54 +0400</bug_when>
    <thetext>[imz@localhost p6beta]$ du -sh altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso 
1,8G	altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
[imz@localhost p6beta]$ du -shb altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso 
1868245616	altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
[imz@localhost p6beta]$ time rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace
opening tcp connection to ftp.linux.kiev.ua port 873
Connected to ftp.linux.kiev.ua (62.149.13.37)
sending daemon args: --server --sender -vvvlogDtprz --inplace . &quot;pub/Linux/ALT/beta/p6/simply/*rc2*i586*&quot; 
Welcome to ftp.linux.kiev.ua rsync server!

Gigabit bandwidth for this site is generously provided
by Colocall ISP -- visit http://www.colocall.net
if you need *amazing* hosting service!

receiving file list ... 
recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
received 1 names
1 file to consider
recv_file_list done
get_local_name count=1 ./
recv_files(1) starting
generator starting pid=31626
delta-transmission enabled
recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,0)
generating and sending sums for 0
count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616
generate_files phase=1
recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616
  1853231728  51%   27.01MB/s    0:01:03
rsync error: timeout in data send/receive (code 30) at io.c(165) [sender=2.6.9]
rsync: connection unexpectedly closed (114858 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [receiver=3.0.9]
[receiver] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
rsync: connection unexpectedly closed (97 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]
[generator] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
Command exited with non-zero status 12
13.85user 2.10system 3:15.33elapsed 8%CPU (0avgtext+0avgdata 0maxresident)k
3649704inputs+0outputs (6major+613minor)pagefaults 0swaps
[imz@localhost p6beta]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127153</commentid>
    <comment_count>6</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-24 04:14:50 +0400</bug_when>
    <thetext>Yes, 3 minutes is more than the default, according to /etc/rsyncd.conf:  #timeout # The &quot;timeout&quot; option allows you to override the clients choice for IO timeout for # this module. Using this option you can ensure that rsync won&apos;t wait on a dead client # forever. The timeout is specified in seconds. A value of zero means no timeout and # is the default. A good choice for anonymous rsync servers may be 600 (giving a 10 # minute timeout). Default value is 60 (one minute).  Another run, under &quot;time -v&quot;:  $ time -v rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace opening tcp connection to ftp.linux.kiev.ua port 873 Connected to ftp.linux.kiev.ua (62.149.13.37) sending daemon args: --server --sender -vvvlogDtprz --inplace . &quot;pub/Linux/ALT/beta/p6/simply/*rc2*i586*&quot;  Welcome to ftp.linux.kiev.ua rsync server!  Gigabit bandwidth for this site is generously provided by Colocall ISP -- visit http://www.colocall.net if you need *amazing* hosting service!  receiving file list ...  recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso) received 1 names 1 file to consider recv_file_list done get_local_name count=1 ./ recv_files(1) starting generator starting pid=31668 delta-transmission enabled recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,0) generating and sending sums for 0 count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616 ^[[2^generate_files phase=1 recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso) altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616   1861874928  51%   27.32MB/s    0:01:02 rsync error: timeout in data send/receive (code 30) at io.c(165) [sender=2.6.9] rsync: connection unexpectedly closed (114858 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [receiver=3.0.9] [receiver] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12) rsync: connection unexpectedly closed (97 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9] [generator] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12) Command exited with non-zero status 12 	Command being timed: &quot;rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace&quot; 	User time (seconds): 13.87 	System time (seconds): 2.16 	Percent of CPU this job got: 8% 	Elapsed (wall clock) time (h:mm:ss or m:ss): 3:08.38 	Average shared text size (kbytes): 0 	Average unshared data size (kbytes): 0 	Average stack size (kbytes): 0 	Average total size (kbytes): 0 	Maximum resident set size (kbytes): 0 	Average resident set size (kbytes): 0 	Major (requiring I/O) page faults: 2 	Minor (reclaiming a frame) page faults: 609 	Voluntary context switches: 14166 	Involuntary context switches: 5082 	Swaps: 0 	File system inputs: 3649320 	File system outputs: 0 	Socket messages sent: 0 	Socket messages received: 0 	Signals delivered: 0 	Page size (bytes): 4096 	Exit status: 12 $</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127154</commentid>
    <comment_count>7</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-24 04:16:18 +0400</bug_when>
    <thetext>Yes, 3 minutes is more than the default, according to /etc/rsyncd.conf:

#timeout
# The &quot;timeout&quot; option allows you to override the clients choice for IO timeout for
# this module. Using this option you can ensure that rsync won&apos;t wait on a dead client
# forever. The timeout is specified in seconds. A value of zero means no timeout and
# is the default. A good choice for anonymous rsync servers may be 600 (giving a 10
# minute timeout). Default value is 60 (one minute).

Another run, under &quot;time -v&quot;:

$ time -v rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace
opening tcp connection to ftp.linux.kiev.ua port 873
Connected to ftp.linux.kiev.ua (62.149.13.37)
sending daemon args: --server --sender -vvvlogDtprz --inplace . &quot;pub/Linux/ALT/beta/p6/simply/*rc2*i586*&quot; 
Welcome to ftp.linux.kiev.ua rsync server!

Gigabit bandwidth for this site is generously provided
by Colocall ISP -- visit http://www.colocall.net
if you need *amazing* hosting service!

receiving file list ... 
recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
received 1 names
1 file to consider
recv_file_list done
get_local_name count=1 ./
recv_files(1) starting
generator starting pid=31668
delta-transmission enabled
recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,0)
generating and sending sums for 0
count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616
^[[2^generate_files phase=1
recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616
  1861874928  51%   27.32MB/s    0:01:02
rsync error: timeout in data send/receive (code 30) at io.c(165) [sender=2.6.9]
rsync: connection unexpectedly closed (114858 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [receiver=3.0.9]
[receiver] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
rsync: connection unexpectedly closed (97 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]
[generator] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(12)
Command exited with non-zero status 12
	Command being timed: &quot;rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace&quot;
	User time (seconds): 13.87
	System time (seconds): 2.16
	Percent of CPU this job got: 8%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 3:08.38
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 0
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 2
	Minor (reclaiming a frame) page faults: 609
	Voluntary context switches: 14166
	Involuntary context switches: 5082
	Swaps: 0
	File system inputs: 3649320
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 12
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127170</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-11-24 18:51:26 +0400</bug_when>
    <thetext>Bumped, please retry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127203</commentid>
    <comment_count>9</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2011-11-26 05:31:56 +0400</bug_when>
    <thetext>Yes, now it proceeds successfully past that critical point: 

$ time -v rsync -avz -P ftp.linux.kiev.ua::pub/Linux/ALT/beta/p6/simply/*rc2*i586* ./ -vv --stats --inplace
opening tcp connection to ftp.linux.kiev.ua port 873
Connected to ftp.linux.kiev.ua (62.149.13.37)
sending daemon args: --server --sender -vvvlogDtprz --inplace . &quot;pub/Linux/ALT/beta/p6/simply/*rc2*i586*&quot; 
Welcome to ftp.linux.kiev.ua rsync server!

Gigabit bandwidth for this site is generously provided
by Colocall ISP -- visit http://www.colocall.net
if you need *amazing* hosting service!

receiving file list ... 
recv_file_name(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
received 1 names
1 file to consider
recv_file_list done
get_local_name count=1 ./
recv_files(1) starting
generator starting pid=10977
delta-transmission enabled
recv_generator(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso,0)
generating and sending sums for 0
count=43231 rem=17936 blength=43216 s2length=3 flength=1868245616
generate_files phase=1
recv_files(altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso)
altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso
recv mapped altlinux-6.0.1_rc2-simply-i586-ru-install-dvd5.iso of size 1868245616
  1929487450  53%  297.08kB/s    1:34:49</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127208</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-11-26 14:52:19 +0400</bug_when>
    <thetext>Let&apos;s consider it &quot;resolved&quot; then. :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>