× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

RSYNC ERROR 4

gk2
Aspirant
Aspirant

RSYNC ERROR 4

Héllo,

 

ReadyNas 104 in version 6.10.4.

I get rsync error:

requested action not supported (code 4) at clientserver.c(1098)

when I try to rsync from a netgear to an openwrt based NAS.
If I ssh on the netgear and try to rsync the "same" command line I find in the

ps aux |grep rsync

of the task running, I get no error ! and the rsync is running...

 

NETGEAR : (client)

admin@GDISK:~$ rsync --version
rsync  version 3.1.3  protocol version 31
Copyright (C) 1996-2018 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, xattrs, iconv, symtimes, prealloc

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

OpenWrt : SnapShot : (server)

root@LS421DE:~# rsync --version
rsync  version 3.2.3  protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    no socketpairs, hardlinks, no hardlink-specials, symlinks, IPv6, atimes,
    batchfiles, inplace, append, no ACLs, no xattrs, optional protect-args,
    no iconv, symtimes, prealloc, stop-at, no crtimes
Optimizations:
    no SIMD, no asm, no openssl-crypto
Checksum list:
    md5 md4 none
Compress list:
    zlibx zlib none

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

working command:

admin@GDISK:~$ rsync -vP -8 --timeout=1800 --recursive --links --times --omit-dir-times --devices --specials --modify-window=1 --one-file-system --owner --group --no-acls --no-perms --port=873 /GDATA01/DOCUMENTS/RECUP/FILMS user2@ls421de.lpm.nddc.gk2.net::share2/

the same command appear on the ps aux, so I do not understand where is the problem...
With the default task, this error appear :

rsync error: requested action not supported (code 4) at clientserver.c(1098)

Any one could help on fix this ?

Model: RN104|ReadyNAS 100 Series 4- Bay
Message 1 of 11

Accepted Solutions
gk2
Aspirant
Aspirant

Re: RSYNC ERROR 4

The DNS name is a local resolution (I am using OpenWrt router)...

 

The error looks to be only shown when trying the job from GUI ReadNas, but the job also look to complete...

 

on the ReadyNas :

$ ps aux
root 19061 27.8 0.9 17196 5012 ? RN 13:06 0:42 rsync -vP -8 --timeout=1800 --recursive --links --times --omit-dir-times --devices --specials --ignore-times --one-file-system --owner --group --no-acls --no-perms --port=873 /tmp/19024/EBOOKS user2@10.4.2.102::share2/EBOOKS/

on the OpenWrt NAS client :

$ tail /var/log/rsyncd.log
2021/04/01 13:06:23 [23456] connect from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 13:06:23 [23456] rsync allowed access on module share2 from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:23 [23456] rsync to share2/EBOOKS/ from user2@GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:23 [23456] rsync: ACLs are not supported on this server
2021/04/01 11:06:23 [23456] rsync error: requested action not supported (code 4) at clientserver.c(1098) [Receiver=3.2.3]
2021/04/01 13:06:24 [23457] connect from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 13:06:24 [23457] rsync allowed access on module share2 from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:24 [23457] rsync to share2/EBOOKS/ from user2@GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:24 [23457] receiving file list
2021/04/01 11:38:42 [23457] sent 19978620 bytes received 12183841 bytes total size 26229514080

$ top
23458 23457 nobody R 13716 3% 42% /usr/bin/rsync --daemon --no-detach
23457 2053 nobody R 6116 1% 40% /usr/bin/rsync --daemon --no-detach

For reference :

https://forum.openwrt.org/t/solved-rsyncd-error-4/92026

 

Thanks all for your advices and help !

 

 

 

View solution in original post

Message 11 of 11

All Replies
PatrycjaG
NETGEAR Moderator

Re: RSYNC ERROR 4

Bonjour @gk2,

 

Bienvenue sur le forum Netgear 🙂

 

Pourriez-vous reformuler votre question en français afin que les autres utilisateurs puissent y avoir accès ?

 

Vous pouvez également directement poser votre question sur la partie anglaise de la Communauté.

 

Bonne journée,

Patrycja

Equipe Netgear

Message 2 of 11
StephenB
Guru

Re: RSYNC ERROR 4


@gk2 wrote:

 

admin@GDISK:~$ rsync -vP -8 --timeout=1800 --recursive --links --times --omit-dir-times --devices --specials --modify-window=1 --one-file-system --owner --group --no-acls --no-perms --port=873 /GDATA01/DOCUMENTS/RECUP/FILMS user2@ls421de.lpm.nddc.gk2.net::share2/


With the default task, this error appear :

rsync error: requested action not supported (code 4) at clientserver.c(1098)

Any one could help on fix this ?


Are you logging in as root on the NAS?  If not, try that first.

 

Also, by default the NAS will try to use rsync over ssh.  So also try adding -rsh=rsh to your command line, and see if that helps.

Message 3 of 11
gk2
Aspirant
Aspirant

Re: RSYNC ERROR 4

the SMB, and RSYNC-SSH works fine.

only the pure RSYNC gie me this error...

Message 4 of 11
StephenB
Guru

Re: RSYNC ERROR 4


@gk2 wrote:

the SMB, and RSYNC-SSH works fine.

only the pure RSYNC gie me this error...


Did you try adding -rsh=rsh to the command line?  If you did, then what happened?

Message 5 of 11
gk2
Aspirant
Aspirant

Re: RSYNC ERROR 4

 


@StephenB wrote:

@gk2 wrote:

the SMB, and RSYNC-SSH works fine.

only the pure RSYNC gie me this error...


Did you try adding -rsh=rsh to the command line?  If you did, then what happened?


Yes...tried...

Works fine from command line, with or without:

-rsh=rsh

It's only with the ReadNas WEBUI that I get this error with rsync.

Same command line (catched from a ps aux) in terminal work

Message 6 of 11
StephenB
Guru

Re: RSYNC ERROR 4

It is odd that the captured command line works, but the backup job doesn't.

 

But you really should be using rsync over ssh anyway, since ordinary rsync isn't encrypted, and you are sending it over the internet.

Message 7 of 11
rn_enthusiast
Virtuoso

Re: RSYNC ERROR 4


@StephenB wrote:

It is odd that the captured command line works, but the backup job doesn't.

 

But you really should be using rsync over ssh anyway, since ordinary rsync isn't encrypted, and you are sending it over the internet.


This! Please don't send un-encrypted rsync over the Internet. Rsync over SSH all the way.

Message 8 of 11
gk2
Aspirant
Aspirant

Re: RSYNC ERROR 4

Yes for the crypted ssh rsync transfer over Internet...

But this is a local rsync, which may not require encypherement !

 

 

Message 9 of 11
StephenB
Guru

Re: RSYNC ERROR 4


@gk2 wrote:

Yes for the crypted ssh rsync transfer over Internet...

But this is a local rsync, which may not require encypherement !

This is a bit confusing, since ls421de.lpm.nddc.gk2.net is a DNS name with a public IP address.

 

You might want to try using your local IP address instead of the DNS name in the backup job, and see if that behaves differently. 

 

 

Message 10 of 11
gk2
Aspirant
Aspirant

Re: RSYNC ERROR 4

The DNS name is a local resolution (I am using OpenWrt router)...

 

The error looks to be only shown when trying the job from GUI ReadNas, but the job also look to complete...

 

on the ReadyNas :

$ ps aux
root 19061 27.8 0.9 17196 5012 ? RN 13:06 0:42 rsync -vP -8 --timeout=1800 --recursive --links --times --omit-dir-times --devices --specials --ignore-times --one-file-system --owner --group --no-acls --no-perms --port=873 /tmp/19024/EBOOKS user2@10.4.2.102::share2/EBOOKS/

on the OpenWrt NAS client :

$ tail /var/log/rsyncd.log
2021/04/01 13:06:23 [23456] connect from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 13:06:23 [23456] rsync allowed access on module share2 from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:23 [23456] rsync to share2/EBOOKS/ from user2@GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:23 [23456] rsync: ACLs are not supported on this server
2021/04/01 11:06:23 [23456] rsync error: requested action not supported (code 4) at clientserver.c(1098) [Receiver=3.2.3]
2021/04/01 13:06:24 [23457] connect from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 13:06:24 [23457] rsync allowed access on module share2 from GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:24 [23457] rsync to share2/EBOOKS/ from user2@GDISK.lpm.nddc.gk2.net (10.4.2.25)
2021/04/01 11:06:24 [23457] receiving file list
2021/04/01 11:38:42 [23457] sent 19978620 bytes received 12183841 bytes total size 26229514080

$ top
23458 23457 nobody R 13716 3% 42% /usr/bin/rsync --daemon --no-detach
23457 2053 nobody R 6116 1% 40% /usr/bin/rsync --daemon --no-detach

For reference :

https://forum.openwrt.org/t/solved-rsyncd-error-4/92026

 

Thanks all for your advices and help !

 

 

 

Message 11 of 11
Top Contributors
Discussion stats
  • 10 replies
  • 3309 views
  • 1 kudo
  • 4 in conversation
Announcements