[Fwd: Apache as a Rsync HTTP proxy]

John Van Essen vanes002 at umn.edu
Tue Dec 27 18:49:16 GMT 2005


Vincent,

I don't see any problems with what you have.

I have no experience with using a proxy like this, and I can find
no description of how all this works together, either.

So I have to punt.  Sorry.  Hopefully, someone else on the rsync
mailing list can help you with further suggections.

    John


On Wed, 21 Dec 2005, Vincent Blondel <vincent at xtra-net.org> wrote:
> 
> John,
> 
> see below ....
> 
> I hope this can help you.
> 
>> Vincent,
>>
>> Thanks for the additional info.  "the problem is always happening" is
>> different from "sometimes" that you used in your original email.
>>
>> The idle rsync processes implies that Apache is closing the channel
>> on its own.  So...
>>
>> What is the command that you use to run the rsync client?
> 
>    rsync -clprtzv --delete
> 
>>
>> What environment variables do you set, like RSYNC_PROXY?
> 
>   This is the result of "env" command :
> 
> _=/usr/bin/env
> BLOCKSIZE=K
> EDITOR=vi
> FTP_PASSIVE_MODE=YES
> HOME=/root
> MAIL=/var/mail/root
> PAGER=more
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
> RSYNC_PROXY=sbezoxaa:8081
> PS1=`whoami`@`hostname -s` [$PWD] #
> SHELL=/bin/ksh
> TERM=xterm
> USER=root
> _AST_FEATURES=UNIVERSE - ucb
> 
>>
>>     John
>>
>>
>> On Tue, 20 Dec 2005, Vincent Blondel <vincent at xtra-net.org> wrote:
>>>
>>> So, to be very clear, I get a server (in my LAN) that synchronizes a website (on the net) twice an hour with the rsync
>>> utility. My web server is located in a vlan that doesn't have any access on the internet.
>>>
>>> So the server access the internet through an HTTP proxy ( apache 1.3.X ) with rsync 2.6.6.
>>>
>>>     Rsync Server
>>>         ^
>>>         |
>>>      internet
>>>         ^
>>>         |
>>>      router
>>>         ^
>>>         |
>>>    Apache HTTP proxy
>>>         ^
>>>         |
>>>   Server (Rsync client)
>>>
>>> When you have a look at my httpd config, I am also using ProxyReceiveBufferSize with value 2048 and ProxyIOBufferSize
>>> with
>>> value 131072 but the problem is always happening.
>>>
>>> Each time, rsync starts, the connection breaks a few seconds after it receives the files list and at the end of the day I
>>> get 50 rsync idle processes. I get exacly the same situation on the HTTP proxy that gets 50 idle processes waiting an
>>> answer from the rsync processes.
>>
> 
> --
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html




More information about the rsync mailing list