RSync - Failed to set times issue. Possibly more?

  • So i see this when I run RSync, just wondering if there is an easy fix and do I need to fix it.

    What am I seeing? Times not getting set, and files/attrs not transferred. Is this the same thing or two issues?


    Code
    Please wait, syncing </srv/dev-disk-by-uuid-c8cc65ab-5a54-46c2-b62b-123456789012/NAS_Disk1/DISK1/> to <admin@192.168.123.123::DISK1> ...
    sending incremental file list
    rsync: [generator] failed to set times on "200 - CONFIGS & OSes/FILE PLAN/FILES" (in DISK1): Operation not permitted (1)
    200 - CONFIGS & OSes/FILE PLAN/FILES/
    sent 3,048,988 bytes received 5,470 bytes 1,221,783.20 bytes/sec
    total size is 592,038,223,383 speedup is 193,827.59
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
    ERROR: The synchronisation failed.
    
    END OF LINE




    My setup is like:

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

    • Official Post

    What am I seeing? Times not getting set, and files/attrs not transferred. Is this the same thing or two issues?

    Possibly you do not have permissions on the files in the destination. This is one of the reasons why it is preferable to perform rsync operations in "pull" mode.

    If you still need to do it in "push" mode make sure the destination allows you to modify these files.

  • I will try it in pull mode. Even though I should have the same permissions on both systems. They are just two different machines hosting the same data.

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

    • Official Post

    The fact that they are two different machines that host the same data does not mean that the users and the permissions of these users are the same. You could have different permissions, even the files could have different permissions.

    Something I usually add to rsync jobs is this

    --chmod=0775 --chown=root:users

    You can add it in the field for additional options.

    If you always add it and do the jobs in pull mode you should never have problems. This will ensure that the files have the standard permissions on the system where they are copied. But then you will need to use those files accordingly. Don't do that if they are files with special permissions, like container files or the like.

  • Using the pull instead of push with the settings --chmod=0775 --chown=root:users seems to have done the job.


    Thanks so much.

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

  • MultiUser

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!