deflate on token returned 0 (16384 bytes left)

Dave Dykstra dwd at drdykstra.us
Tue Dec 24 13:19:01 EST 2002


First, you should know that rsyncing a .gz file is not very worthwhile
because the rsync algorithm does not do a good job of efficiently
transferring them, unless you've got a modified gzip that adds a
--rsyncable option and you used the option.  The patch is in the 2.5.5
source patches/gzip-rsyncable.diff.

According to my email record, I once found a workaround by deleting the
"|| tx_strm.avail_in != 0" on line 285 of token.c.  That change has not
been put into 2.5.5 or into a later development version because it was
unknown what the side effects were.  

- Dave Dykstra

On Mon, Dec 23, 2002 at 09:53:21AM -0500, John Murtari wrote:
> Hello All,
> 
> I have searched for this error and found similiar errors, but
> everything seems to indicate that this should be fixed in the 2.5.5
> version. 
> 
> rsync  version 2.5.5  protocol version 26
> 
> I am running rsync with -axz, trying to sync up a large gz file :
> 
> Source machine:
> 
> -rw-r--r--    1 root     other    175214792 Dec 22 00:17 /export/tools2/local/etc/httpd/logs/access/access_log.12-22-02.gz
> 
> Destination:
> -rw-r--r--    1 root     other    103372258 Dec 19 00:18 access_log.12-22-02.gz
> 
> 
> Rsync is running with rsh to a remote machine running in daemon mode.
> 
> 
> The full command line is :
> /bin/nice rsync -R -l -H --quiet --stats -axz --delete --blocking-io /export/tools2 drill::anvil 
> 
> welcome to drill.thebook.com
> 
> building file list ... done
> export/tools2/local/etc/httpd/logs/access/
> /export/tools2/local/etc/httpd/logs/access/access_log.12-22-02.gz
> deflate on token returned 0 (16384 bytes left)
> rsync error: error in rsync protocol data stream (code 12) at token.c(288)
> 
> 
> 
> If the remote copy of the file is removed, rsync will run to
> completion, so it seems to be a problem perhaps with the -z option
> trying to update a .gz file???
> 
> TIA!
> 
> -- 
>                                           John
> ___________________________________________________________________
> John Murtari                              Software Workshop Inc.
> mrlist at thebook.com 315.695.1301(x-211)    "TheBook.Com" (TM)
> http://www.thebook.com/
> -- 
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list