"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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南

相關內容