s3cmd failed too many times

前端 未结 15 1850
梦如初夏
梦如初夏 2020-12-04 11:51

I used to be a happy s3cmd user. However recently when I try to transfer a large zip file (~7Gig) to Amazon S3, I am getting this error:

$> s3cmd put thef         


        
相关标签:
15条回答
  • 2020-12-04 12:53

    I encountered a similar error which eventually turned out to be caused by a time drift on the machine. Correctly setting the time fixed the issue for me.

    0 讨论(0)
  • 2020-12-04 12:55

    I encountered the same broken pipe error as the security group policy was set wrongly.. I blame S3 documentation.

    I wrote about how to set the policy correctly in my blog, which is:

    {
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "s3:ListBucket",
            "s3:GetBucketLocation",
            "s3:ListBucketMultipartUploads"
          ],
          "Resource": "arn:aws:s3:::example_bucket",
          "Condition": {}
        },
        {
          "Effect": "Allow",
          "Action": [
            "s3:AbortMultipartUpload",
            "s3:DeleteObject",
            "s3:DeleteObjectVersion",
            "s3:GetObject",
            "s3:GetObjectAcl",
            "s3:GetObjectVersion",
            "s3:GetObjectVersionAcl",
            "s3:PutObject",
            "s3:PutObjectAcl",
            "s3:PutObjectAclVersion"
          ],
          "Resource": "arn:aws:s3:::example_bucket/*",
          "Condition": {}
        }
      ]
    }
    
    0 讨论(0)
  • 2020-12-04 12:55

    I addressed this by simply not using s3cmd. Instead, I've had great success with the python project, S3-Multipart on GitHub. It does uploading and downloading, along with using as many threads as desired.

    0 讨论(0)
提交回复
热议问题