BTW, I think this might be a regression. If I use v1.47.0, I do not have this problem. I have a different problem though:
$ rclone-v1.47.0-linux-amd64/rclone -vv copyto ./hi s3:fh-pi-holland-e-eco/test/test.txt
2023/09/15 11:30:18 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone-v1.47.0-linux-amd64/rclone" "-vv" "copyto" "./hi" "s3:fh-pi-holland-e-eco/test/test.txt"]
2023/09/15 11:30:18 DEBUG : Using config file from "/home/dtenenba/.rclone.conf"
2023/09/15 11:30:18 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:30:18 ERROR : test.txt: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "1e89d4325c3e754de1c0423effbb9f6c"
2023/09/15 11:30:18 INFO : test.txt: Removing failed copy
2023/09/15 11:30:18 ERROR : Attempt 1/3 failed with 2 errors and: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "1e89d4325c3e754de1c0423effbb9f6c"
2023/09/15 11:30:18 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:30:19 ERROR : test.txt: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "07f7cee45aec7f5d3d6cb69f07ff303e"
2023/09/15 11:30:19 INFO : test.txt: Removing failed copy
2023/09/15 11:30:19 ERROR : Attempt 2/3 failed with 2 errors and: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "07f7cee45aec7f5d3d6cb69f07ff303e"
2023/09/15 11:30:19 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:30:19 ERROR : test.txt: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "e9eb0598b7d446be4ffdb986724020d7"
2023/09/15 11:30:19 INFO : test.txt: Removing failed copy
2023/09/15 11:30:19 ERROR : Attempt 3/3 failed with 2 errors and: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "e9eb0598b7d446be4ffdb986724020d7"
2023/09/15 11:30:19 Failed to copyto: corrupted on transfer: MD5 hash differ "764efa883dda1e11db47671c4a3bbd9e" vs "e9eb0598b7d446be4ffdb986724020d7"
If I comment out the acl = bucket-owner-full-control line in my rclone.conf then I get this:
$ rclone-v1.47.0-linux-amd64/rclone -vv copyto ./hi s3:fh-pi-holland-e-eco/test/test.txt
2023/09/15 11:31:18 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone-v1.47.0-linux-amd64/rclone" "-vv" "copyto" "./hi" "s3:fh-pi-holland-e-eco/test/test.txt"]
2023/09/15 11:31:18 DEBUG : Using config file from "/home/dtenenba/.rclone.conf"
2023/09/15 11:31:18 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:31:18 ERROR : hi: Failed to copy: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>09T4XKHKHX512Q5T</RequestId><HostId>Y4AASGPfIkgbQcRDyTGdHsZaBn0GKRMt/e954RfHHuSpDhCqRi4b1849b7W67XG+1LKyf1ZgahE=</HostId></Error>
2023/09/15 11:31:18 ERROR : Attempt 1/3 failed with 2 errors and: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>09T4XKHKHX512Q5T</RequestId><HostId>Y4AASGPfIkgbQcRDyTGdHsZaBn0GKRMt/e954RfHHuSpDhCqRi4b1849b7W67XG+1LKyf1ZgahE=</HostId></Error>
2023/09/15 11:31:19 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:31:19 ERROR : hi: Failed to copy: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>MW4EDG29HV306ZSM</RequestId><HostId>EhyXJffRscFThNasadeeBr6IkZymK8bsM3zWuKJNrb/24ZmdOagYShqxFz0e8sN8pNNwR9O6xd4=</HostId></Error>
2023/09/15 11:31:19 ERROR : Attempt 2/3 failed with 2 errors and: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>MW4EDG29HV306ZSM</RequestId><HostId>EhyXJffRscFThNasadeeBr6IkZymK8bsM3zWuKJNrb/24ZmdOagYShqxFz0e8sN8pNNwR9O6xd4=</HostId></Error>
2023/09/15 11:31:19 DEBUG : hi: Couldn't find file - need to transfer
2023/09/15 11:31:19 ERROR : hi: Failed to copy: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>MW46MYHYMJJ429EJ</RequestId><HostId>iboVLGLXhRU4xqkQBjOQKmTP1ZkUr7FY68lv2slHEsHYVIIC6YuPMBOq1aO3y9TEX2mTxDFk4OI=</HostId></Error>
2023/09/15 11:31:19 ERROR : Attempt 3/3 failed with 2 errors and: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>MW46MYHYMJJ429EJ</RequestId><HostId>iboVLGLXhRU4xqkQBjOQKmTP1ZkUr7FY68lv2slHEsHYVIIC6YuPMBOq1aO3y9TEX2mTxDFk4OI=</HostId></Error>
2023/09/15 11:31:19 Failed to copyto: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>MW46MYHYMJJ429EJ</RequestId><HostId>iboVLGLXhRU4xqkQBjOQKmTP1ZkUr7FY68lv2slHEsHYVIIC6YuPMBOq1aO3y9TEX2mTxDFk4OI=</HostId></Error>
This tells me that v1.47.0 recognizes the presence of --acl bucket-owner-public-read and behaves differently depending on whether it is present or not, and v1.64.0 does not seem to.
It's not so important to me to find out why I got that data corrupted error, because I don't intend to go back and use older versions of rclone, but I did want to point out that this seems to be a regression.
EDIT: The file corruption error was due to the server_side_encryption = aws:kms line in rclone.conf. Commenting that line out makes the transfer work. We are going to go back to v1.47.0 until this is fixed.
Thanks