This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

SOLVED: rsync: get_xattr_names: llistxattr ... permission denied

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

SOLVED: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

Hello,
I have several repeating (Error-)Messeges in my Log following this scheme:
Code: Select all
rsyncd[5266]: rsync: get_xattr_names: llistxattr(""PATH" (in RSYNCMODULE)",1024) failed: Permission denied (13)
, that I could not exlain

e.G.
On the rsync-Server:
rsyncd[5266]: rsync: get_xattr_names: llistxattr(""...../Fotos" (in Foto&Video)",1024) failed: Permission denied (13)
On the rsync-Client there are some korresponding Messages in the log too - but not for all

Source (rsync-Server):
getfacl Fotos
# file: Fotos
# owner: root
# group: wheel
user:www:rwxp--aARWcCos:fd----:allow
owner@:rwxp--aARWcCos:fd----:allow
group@:rwxp--aARWcCos:fd----:allow
everyone@:------a-R-c--s:------:allow

Destination (rsync-Client):
getfacl Fotos
# file: Fotos
# owner: root
# group: wheel
user:www:rwxp--aARWcCos:fd----:allow
owner@:rwxp--aARWcCos:fd----:allow
group@:rwxp--aARWcCos:fd----:allow
everyone@:------a-R-c--s:------:allow


May I ignore thes messages or are the critical?

I have thes Errors since I made some global chages on the ACLs and inheritance structure
viewtopic.php?f=29&t=9977
Last edited by Digi-Quick on 03 Mar 2016 14:05, edited 1 time in total.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Parkcomm »

If you get a permission denied, it is not reading the files - if you are expecting them to be copied you have a problem

Are you mapping rsync to the right user? (e.g. is the user a member if wheel?)

Are you using xattr flag on the client? (-X or --xattrs)
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

Parkcomm wrote:If you get a permission denied, it is not reading the files - if you are expecting them to be copied you have a problem
Are you mapping rsync to the right user? (e.g. is the user a member if wheel?)
I have only two Users : root on Console, admin (renamed to Digi) for Nas4Free GUI

Code: Select all

Digi  	Digi  	1000  	admin, vboxusers, wheel
Are you using xattr flag on the client? (-X or --xattrs)
I don't know, used the GUI to create the rsync Jobs , executed as root (Who)

I have now disabed "Preserve permissions" and "Preserve extended attributes"

Now I have different Errors:

e.g.
rSync-Server
rsyncd[3134]: rsync: opendir "/002 - Videoprojekte in Arbeit/2009-09-01 - Geflutete Wohnung/Fotos" (in Foto&Video) failed: Permission denied (13)

Code: Select all

ls -al
drwxrwx---+  3 root  wheel        143 May 23  2015 Fotos

drwxrwx---+  3 Digi  wheel          11 May 23  2015 2009-09-01 - Geflutete Wohnung


 getfacl Fotos
# file: Fotos
# owner: root
# group: wheel
          user:www:rwxp--aARWcCos:fd----:allow
            owner@:rwxp--aARWcCos:fd----:allow
            group@:rwxp--aARWcCos:fd----:allow
         everyone@:------a-R-c--s:------:allow

getfacl "2009-09-01 - Geflutete Wohnung"
# file: 2009-09-01 - Geflutete Wohnung
# owner: Digi
# group: wheel
          user:www:rwxp--aARWcCos:fd----:allow
            owner@:rwxp--aARWcCos:fd----:allow
            group@:rwxp--aARWcCos:fd----:allow
         everyone@:------a-R-c--s:------:allow


rSync-Client:
2015/12/20 10:06:50 [5084] rsync: opendir "/002 - Videoprojekte in Arbeit/2009-09-01 - Geflutete Wohnung/Fotos" (in Foto&Video) failed: Permission denied (13)

Code: Select all

drwxrwx---+  3 root  wheel        143 May 23  2015 Fotos

drwxrwx---+  3 Digi  wheel          11 May 23  2015 2009-09-01 - Geflutete Wohnung


getfacl Fotos
# file: Fotos
# owner: root
# group: wheel
          user:www:rwxp--aARWcCos:fd----:allow
            owner@:rwxp--aARWcCos:fd----:allow
            group@:rwxp--aARWcCos:fd----:allow
         everyone@:------a-R-c--s:------:allow
         
getfacl "2009-09-01 - Geflutete Wohnung"
# file: 2009-09-01 - Geflutete Wohnung
# owner: Digi
# group: wheel
          user:www:rwxp--aARWcCos:fd----:allow
            owner@:rwxp--aARWcCos:fd----:allow
            group@:rwxp--aARWcCos:fd----:allow
         everyone@:------a-R-c--s:------:allow
         


Owner of Directory "Fotos" is root (directory created with Midnight commander via ssh) and owner of parentdirectory "2009-09-01 - Geflutete Wohnung" is User Digi (directory created via network from Windows)
I thought that normally user root does have acccess and all permission per default
User Digi is Member of Group wheel and admin!

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Parkcomm »

What are the boxes you are rsyncing together (are they both nas4free)
Are you using the nas4free server rsync service?
or Are you mounting a remote fs and doing a local rsync?
etc
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

both are Nas4Free Server and Im using the built-in RSync-service

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Parkcomm »

On the server under Services|Rsync|Server|Module|Edit what are the user and group?
On the client Services|Rsync|Client|Add what is the use for "who"?
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

server: UserID, groupID, Hosts allow, Hosts deny and Auxiliary parameters are left empty (default), AccessMode = read/write,
client: who = root

Passwords are the same an both nas

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Parkcomm »

I can't see anything wrong - perhaps try

Code: Select all

lsextattr user *
lsextattr system *
Run as root in the directory above photos - and see if you get the same error
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

Server:

Code: Select all

digi-megaarchiv: 2009-09-01 - Geflutete Wohnung# lsextattr user *
20090823121516.m2ts
20090823121600.m2ts
20090823121851.m2ts
20090823122004.m2ts
20090823122235.m2ts
20090823123653.m2ts
20090901180037.m2ts
20090901185814.m2ts
Fotos
 digi-megaarchiv: 2009-09-01 - Geflutete Wohnung# lsextattr system *
20090823121516.m2ts
20090823121600.m2ts
20090823121851.m2ts
20090823122004.m2ts
20090823122235.m2ts
20090823123653.m2ts
20090901180037.m2ts
20090901185814.m2ts
Fotos
Client:

Code: Select all

digi-nas: 2009-09-01 - Geflutete Wohnung# lsextattr user *
20090823121516.m2ts
20090823121600.m2ts
20090823121851.m2ts
20090823122004.m2ts
20090823122235.m2ts
20090823123653.m2ts
20090901180037.m2ts
20090901185814.m2ts
Fotos
 digi-nas: 2009-09-01 - Geflutete Wohnung#  lsextattr system *
20090823121516.m2ts
20090823121600.m2ts
20090823121851.m2ts
20090823122004.m2ts
20090823122235.m2ts
20090823123653.m2ts
20090901180037.m2ts
20090901185814.m2ts
Fotos
As far as I see there are no extended Attributes applied...

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: rsync: get_xattr_names: llistxattr ... permission denied

Post by Parkcomm »

Try changing the user and group root:wheel in Services|Rsync|Server|Module|Edit

(The test above just showed that accessing llistxattr does not throw errors, so this should work)
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: SOLVED: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

A complete Reorg on the Owner, Rights and (Windows)ACLs - including inheritance - on both machines made it finally.

viewtopic.php?f=29&t=10472
viewtopic.php?f=29&t=10501

Finally I learned: "Don't use Midnight Commander on Console via SSH as root - this will break the structure of Owner, Rights and (Windows)ACLs"

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: SOLVED: rsync: get_xattr_names: llistxattr ... permission denied

Post by Digi-Quick »

A complete Reorg on the Owner, Rights and (Windows)ACLs - including inheritance - on both machines made it finally.

viewtopic.php?f=29&t=10472
viewtopic.php?f=29&t=10501

Finally I learned: "Don't use Midnight Commander on Console via SSH as root - this will break the structure of Owner, Rights and (Windows)ACLs"

Post Reply

Return to “RSYNC”