error receiving files from protocol 29 server - Tools

This is a discussion on error receiving files from protocol 29 server - Tools ; In debian bug #493559 ( http://bugs.debian.org/493559 ) the problem is that when requesting a file from an older version rsync, the remote server gives an error: $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp rsync: on remote machine: -: unknown option rsync error: requested ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: error receiving files from protocol 29 server

  1. error receiving files from protocol 29 server

    In debian bug #493559 (http://bugs.debian.org/493559) the problem is
    that when requesting a file from an older version rsync, the remote
    server gives an error:

    $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp
    rsync: on remote machine: -: unknown option
    rsync error: requested action not supported (code 4) at clientserver.c(517)
    rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]

    Adding any option, e.g. -v or -t makes it work.
    >From using tcpdump I can see that it sends:


    --sender\n-\n.\nzones/countries/countries.rbl\n\n

    If you add -v, it sends:

    --sender\n-t\n.\nzones/countries/countries.rbl\n\n

    With 2.6.9 and no options, it sends:

    --sender\n.\nzones/countries/countries.rbl\n\n

    i.e. no extra -\n added.

    Shouldn't 3.0.3 (and 3.0.4) not duplicate the 2.6.9 behaviour when
    talking to a protocol 29 server?


    Paul
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  2. Re: error receiving files from protocol 29 server

    On Tue, 2008-09-23 at 12:58 +0200, Paul Slootman wrote:
    > In debian bug #493559 (http://bugs.debian.org/493559) the problem is
    > that when requesting a file from an older version rsync, the remote
    > server gives an error:
    >
    > $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp
    > rsync: on remote machine: -: unknown option
    > rsync error: requested action not supported (code 4) at clientserver.c(517)
    > rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
    > rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]


    This appears to be a result of adding the -e server option and
    incompletely removing it for pre-protocol-30 servers. This patch should
    fix it:

    --- a/options.c
    +++ b/options.c
    @@ -2267,7 +2267,8 @@ void server_options(char **args, int *argc_p)

    argstr[x] = '\0';

    - args[ac++] = argstr;
    + if (x != 1)
    + args[ac++] = argstr;

    #ifdef ICONV_OPTION
    if (iconv_opt) {

    The patch is also in my repository.

    Matt

    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  3. Re: error receiving files from protocol 29 server

    On Tue 23 Sep 2008, Matt McCutchen wrote:
    > On Tue, 2008-09-23 at 12:58 +0200, Paul Slootman wrote:
    > > In debian bug #493559 (http://bugs.debian.org/493559) the problem is
    > > that when requesting a file from an older version rsync, the remote
    > > server gives an error:
    > >
    > > $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp
    > > rsync: on remote machine: -: unknown option
    > > rsync error: requested action not supported (code 4) at clientserver.c(517)
    > > rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
    > > rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]

    >
    > This appears to be a result of adding the -e server option and
    > incompletely removing it for pre-protocol-30 servers. This patch should
    > fix it:


    Thanks! With your patch I can't reproduce the problem any more.


    Paul Slootman
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


+ Reply to Thread