s3cmd failed too many times

前端 未结 15 1889
梦如初夏
梦如初夏 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:42

    I had the same problem with ubuntu s3cmd.

    s3cmd --guess-mime-type --acl-public put test.zip s3://www.jaumebarcelo.info/teaching/lxs/test.zip
    test.zip -> s3://www.jaumebarcelo.info/teaching/lxs/test.zip  [1 of 1]
     13037568 of 14456364    90% in  730s    17.44 kB/s  failed
    WARNING: Upload failed: /teaching/lxs/test.zip (timed out)
    WARNING: Retrying on lower speed (throttle=0.00)
    WARNING: Waiting 3 sec...
    test.zip -> s3://www.jaumebarcelo.info/teaching/lxs/test.zip  [1 of 1]
      2916352 of 14456364    20% in  182s    15.64 kB/s  failed
    WARNING: Upload failed: /teaching/lxs/test.zip (timed out)
    WARNING: Retrying on lower speed (throttle=0.01)
    WARNING: Waiting 6 sec...
    

    The solution was to update s3cmd with the instructions from s3tools.org:

    Debian & Ubuntu

    Our DEB repository has been carefully created in the most compatible way – it should work for Debian 5 (Lenny), Debian 6 (Squeeze), Ubuntu 10.04 LTS (Lucid Lynx) and for all newer and possibly for some older Ubuntu releases. Follow these steps from the command line:

    • Import S3tools signing key:

      wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -

    • Add the repo to sources.list:

      sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list

    • Refresh package cache and install the newest s3cmd:

      sudo apt-get update && sudo apt-get install s3cmd

提交回复
热议问题