快乐的小唠叨关于" do-release-upgrade"前几天终于找到了我。更新系统按预期进行,我花了几个小时修复弹出的明显错误。我唯一不知道且无法找到任何文档的是我设置的S3命令,用于将备份文件从我的EC2实例复制到S3存储桶。这是我在cron.daily脚本中的命令:
mysqldump -u admin -p'myPasswordHere' myDbNameHere > "$_file"
aws s3 cp "$_file" s3://my-backup-bucket/mysql/
这在升级之前有效(从LTS 14.04到LTS 16.04)。现在我有错误:
upload failed: tmp/MyDbNameHere_03_16_2017.sql.gz to
s3://my-backup-bucket/mysql/MyDbNameHere_03_16_2017.sql.gz
An error occurred (InvalidRequest) when calling the CreateMultipartUpload operation:
Missing required header for this request: x-amz-content-sha256
我不知道自己是怎样的"缺少必需的标题" - 但这似乎是问题所在。
命令行发生相同但不同的错误:
root@sys:~# aws s3 cp "dead.letter" s3://my-backup-bucket/
upload failed: ./dead.letter to s3://my-backup-bucket/dead.letter
An error occurred (InvalidRequest) when calling the PutObject operation:
Missing required header for this request: x-amz-content-sha256
*编辑 - 我按照建议将awscli
升级到最新版本。没有解决问题。