zuntan02のはてなブログ

備忘録的なものです。時々職場の技術者ブログにも転記してますが、メインはこちらで。

EC2インスタンスからS3にaws s3 cpでファイルを上げられないときはupdateだ

EC2インスタンスからS3にaws s3 cpでファイルを上げようとしたら以下の様なエラーで上がらない。

upload failed: ./hogehoge to s3://fugafuga/hogehoge
HTTPSConnectionPool(host='fugafuga.s3.amazonaws.com', port=443): Max retries exceeded with url: /fugafuga/hogehoge?partNumber=(省略)
 (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer)

みたいのが出てuploadできなかった。

https://github.com/aws/aws-cli/issues/449
によれば、1.4.4まで上げれば発生しないよとのこと。
”I was getting the same issue with 1.3.17 but having upgraded to the latest 1.4.4 it's no longer an issue.”

上げてみた。

yum update aws-cli
Updated:
  aws-cli.noarch 0:1.4.4-1.0.amzn1

→いけた。