Issues with Samba4 on 21.02.0 when using rsync

This weekend I moved from 19.07.8 on Netgear R8000 with an external USB HD running Samba3 to 21.02.0 on an x86/64 box running Samba4 with same external USB HD.

I use rsync to do nightly backups of selected directories on a Win10 pc, a Linux pc, and a Macbook Pro pc to the USB HD. On Win10 I use rsync from Cygwin. This has always worked well for me. On the Win10 box I have the R: drive mapped to \192.168.1.1\Ron

Now when new files are copied via rsync to the USB drive, when I try to view them from any windows client I don't see them because the hidden attribute is set. If I add the --inplace parameter to the rsync command that seems to cure the hidden attribute problem, but I shouldn't have to do this.

rsync also generates the following errors as seen in the system log

Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.052699,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.143000,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.183363,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.228059,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.280023,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.312189,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.326683,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]: [2021/10/11 09:55:57.353530,  0] ../../source3/smbd/posix_acls.c:2110(create_canon_ace_lists)
Mon Oct 11 09:55:57 2021 daemon.err smbd[28518]:   create_canon_ace_lists: unable to map SID S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681 to uid or gid.

New and/or updated files seem to be correct on the USB drive after rsync runs in spite of the errors.

If I open up a command prompt on Win10 and copy from C:\xyz to R:\xyz the copy works just fine and no errors are generated.

I wanted to add I'm using rsync in local mode via cygwin's drives. In the cygwin bash shell C: is /cygdrive/c and R: is /cygdrive/r

So one of rysnc commands from the shell script is:

rsync --delete -a --inplace --exclude-from 'rsync-exclude.txt' '/cygdrive/c/Work' /cygdrive/r

This keeps C:/Work synchronized with /mnt/Ron/Work on the OpenWrt mounted USB drive.