"setattr" is failing on Datasync transfer. How to fix it?

0

I've recently setup a Datasync agent on-prem (VMWare based agent with a mounted Windows volume for storage) and although the data is syncing from S3->on-prem OK, the file attributes (timestamp) don't seem to be correct. I have many errors like this in CloudWatch:

[ERROR] Deferred error: setattr(name="/work/stats.txt", writeUid=0, writeGid=0, writeAtime=1, writeMtime=1, writeMode=0, uid=0, gid=0, atime=1710177106/0, mtime=1710177106/0, mode=000000): Permission denied

Is this a permission issue for the DataSync Agent service account or is there something that isn't configured correctly on the DataSync task?

Thomas
질문됨 4달 전426회 조회
1개 답변
2
수락된 답변

Hi Thomas,

Permission denied while performing a setattr is typically permissions related to the destination location. For example, if the destination is FSx for Windows the user must be part of the AWS Delegated FSx Adminsitrators group to properly set extended attibutes [1]. Fsx for ONTAP with SMB has similar permission requirements [2]. If you do not have a requirement to preserve the extended attributes, you can disable them from being copied as part of the DataSync task with the Copy ownership and DACLs task option. [3]

[1] https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-location-access [2] https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html [3] https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html

AWS
답변함 4달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠