Bug 26604 - "rsync a-DVD.iso ./" fails in the middle (at about 1.8G)
Summary: "rsync a-DVD.iso ./" fails in the middle (at about 1.8G)
Status: NEW
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: ftp.altlinux.org (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on: 26605
Blocks:
  Show dependency tree
 
Reported: 2011-11-22 22:20 MSK by Ivan Zakharyaschev
Modified: 2011-11-22 22:27 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2011-11-22 22:20:50 MSK
rsync gets interrupted in the middle of the transfer of a DVD image. (I'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 . "beta/p6/simply/*rc2*i586*" 
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'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)...
Comment 1 Ivan Zakharyaschev 2011-11-22 22:23:11 MSK
rsync-3.0.8-alt0.M51.1 from branch 5.1.
Comment 2 Ivan Zakharyaschev 2011-11-22 22:27:41 MSK
There must be enough space there:

$ df . -h
Файловая система      Разм  Исп  Дост  Исп% смонтирована на
/dev/sda5              11G  8,9G  1,9G  83% /var
$