rsync: failed to set times on *** - Tools

This is a discussion on rsync: failed to set times on *** - Tools ; Hello everybody I#m trying to rsync from 1 server to another with the following command: rsync -auzv --stats /cygdrive/d/path/to/dir/ CWsync@servername::dyndns --exclude=config/ --delete >>%RSYNCLOG% 2>>%RSYNCERROR% the dyndns directory is specified in the rsync.conf on the receiving server. The server where i'm ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: rsync: failed to set times on ***

  1. rsync: failed to set times on ***


    Hello everybody

    I#m trying to rsync from 1 server to another with the following command:
    rsync -auzv --stats /cygdrive/d/path/to/dir/ CWsync@servername::dyndns
    --exclude=config/ --delete >>%RSYNCLOG% 2>>%RSYNCERROR%

    the dyndns directory is specified in the rsync.conf on the receiving server.

    The server where i'm executing the command is a windows 2003 server and the
    receiving server is a linux srver with red hat.
    on the windows server rsync version 2.6.3 protocol version 28 is
    installed.
    on the linux server rsync version 2.6.8 protocol version 29.
    after executing the command it stops after a second with the following error
    message:

    rsync: failed to set times on "****" (in dyndns): Operation not permitted
    (1)
    ****
    ****
    rsync: failed to set times on "****" (in dyndns): Operation not permitted
    (1)
    rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]:
    Connection reset by peer (104)
    rsync: read error: Connection reset by peer (104)
    rsync error: error in rsync protocol data stream (code 12) at io.c(515)

    i made the user rsyncd owner of the whole directory to synchronize so it
    can't be file system permissions.
    can anybody help me?
    thx

    --
    View this message in context: http://www.nabble.com/rsync%3A-faile...p18242600.html
    Sent from the Samba - rsync mailing list archive at Nabble.com.

    --
    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: rsync: failed to set times on ***

    On Wed, 2008-07-02 at 10:18 -0700, stratton wrote:
    > I#m trying to rsync from 1 server to another with the following command:
    > rsync -auzv --stats /cygdrive/d/path/to/dir/ CWsync@servername::dyndns
    > --exclude=config/ --delete >>%RSYNCLOG% 2>>%RSYNCERROR%
    >
    > the dyndns directory is specified in the rsync.conf on the receiving server.
    >
    > The server where i'm executing the command is a windows 2003 server and the
    > receiving server is a linux srver with red hat.
    > on the windows server rsync version 2.6.3 protocol version 28 is
    > installed.
    > on the linux server rsync version 2.6.8 protocol version 29.
    > after executing the command it stops after a second with the following error
    > message:
    >
    > rsync: failed to set times on "****" (in dyndns): Operation not permitted
    > (1)
    > ****
    > ****
    > rsync: failed to set times on "****" (in dyndns): Operation not permitted
    > (1)


    > i made the user rsyncd owner of the whole directory to synchronize so it
    > can't be file system permissions.


    Are you sure? Please post your daemon configuration and "ls -l" output
    for the affected destination files.

    > rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]:
    > Connection reset by peer (104)
    > rsync: read error: Connection reset by peer (104)
    > rsync error: error in rsync protocol data stream (code 12) at io.c(515)


    The loss of the connection looks like a separate problem. See if there
    is any information about what happened in the daemon's log file.
    Running the client and daemon under strace might yield more information.

    Also, consider upgrading to a newer version of rsync on both sides. The
    newest is 3.0.3.

    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
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkhrypUACgkQC+xSYN/RlfsJ3gCeJC8/YbvgUdcvXOIax7I8rjKA
    q68AoJsIdibN6y7WDqGd5RWNLmfdtiv7
    =R2SV
    -----END PGP SIGNATURE-----


  3. Re: rsync: failed to set times on ***



    hi matt
    Thanks for the fast answer.

    >Are you sure? Please post your daemon configuration and "ls -l" output
    >for the affected destination files.


    the destination files all belong to the rsyncd user as i made a chown -R
    rsyncd. on the whole destination directory tree.
    my daemon config looks like that:

    motd file = /etc/rsyncd.motd
    log file = /var/log/rsyncd.log
    pid file = /etc/rsyncd.pid
    syslog facility = syslog
    secrets file = /etc/rsyncd.secrets
    use chroot = false
    strict modes = false

    ***
    some more directories
    ***

    [dyndns]
    comment = "a comment"
    path = /path/to/directory
    transfer logging = yes
    read only = no
    auth users = CWsync
    >The loss of the connection looks like a separate problem. See if there
    >is any information about what happened in the daemon's log file.
    >Running the client and daemon under strace might yield more information.


    the daemon log gives these error messages:
    *****
    2008/07/02 19:01:41 [25148] rsync: mkstemp "/admin/.searchip.php.XEcBaw" (in
    dyndns) failed: Permission denied (13)
    2008/07/02 19:01:41 [25148] rsync: mkstemp "/admin/.set_access.php.d2eDSw"
    (in dyndns) failed: Permission denied (13)
    2008/07/02 19:01:41 [25148] inflate returned -3 (91 bytes)
    2008/07/02 19:01:41 [25148] rsync error: error in rsync protocol data stream
    (code 12) at token.c(421) [receiver=2.6.8]
    2008/07/02 19:01:41 [25148] rsync: connection unexpectedly closed (5574
    bytes received so far) [generator]
    2008/07/02 19:01:41 [25148] rsync error: error in rsync protocol data stream
    (code 12) at io.c(463) [generator=2.6.8]


    >Also, consider upgrading to a newer version of rsync on both sides. The
    >newest is 3.0.3.


    upgrading is almost impossible as it is in a productive environment of a big
    company and i don't wanna be responsible if the whole rsyncing breaks down.


    --
    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


    --
    View this message in context: http://www.nabble.com/rsync%3A-faile...p18254883.html
    Sent from the Samba - rsync mailing list archive at Nabble.com.

    --
    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


  4. Re: rsync: failed to set times on *** (and "inflate returned -3")

    On Thu, 2008-07-03 at 01:58 -0700, stratton wrote:
    > >Are you sure? Please post your daemon configuration and "ls -l" output
    > >for the affected destination files.

    >
    > the destination files all belong to the rsyncd user as i made a chown -R
    > rsyncd. on the whole destination directory tree.
    > my daemon config looks like that:
    >
    > motd file = /etc/rsyncd.motd
    > log file = /var/log/rsyncd.log
    > pid file = /etc/rsyncd.pid
    > syslog facility = syslog
    > secrets file = /etc/rsyncd.secrets
    > use chroot = false
    > strict modes = false
    >
    > ***
    > some more directories
    > ***
    >
    > [dyndns]
    > comment = "a comment"
    > path = /path/to/directory
    > transfer logging = yes
    > read only = no
    > auth users = CWsync


    If you are starting the daemon as root, you need "uid = rsyncd" in the
    configuration file to tell it to become user rsyncd; otherwise, the
    default is to become "nobody".

    > >The loss of the connection looks like a separate problem. See if there
    > >is any information about what happened in the daemon's log file.
    > >Running the client and daemon under strace might yield more information.

    >
    > the daemon log gives these error messages:
    > *****
    > 2008/07/02 19:01:41 [25148] rsync: mkstemp "/admin/.searchip.php.XEcBaw" (in
    > dyndns) failed: Permission denied (13)
    > 2008/07/02 19:01:41 [25148] rsync: mkstemp "/admin/.set_access.php.d2eDSw"
    > (in dyndns) failed: Permission denied (13)
    > 2008/07/02 19:01:41 [25148] inflate returned -3 (91 bytes)
    > 2008/07/02 19:01:41 [25148] rsync error: error in rsync protocol data stream
    > (code 12) at token.c(421) [receiver=2.6.8]
    > 2008/07/02 19:01:41 [25148] rsync: connection unexpectedly closed (5574
    > bytes received so far) [generator]
    > 2008/07/02 19:01:41 [25148] rsync error: error in rsync protocol data stream
    > (code 12) at io.c(463) [generator=2.6.8]


    The "inflate returned -3" is an internal error in rsync's compression
    code. Since you aren't willing to upgrade rsync, just omit the -z
    option to work around the problem.

    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
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkhtPiQACgkQC+xSYN/RlfsfWQCdEsai0PzlbDeKg0BbDJ7FV9vP
    hP4AoLNuICVy4OatMLSK8r8wk+adL0PN
    =Tne9
    -----END PGP SIGNATURE-----


+ Reply to Thread