amazon-s3 - GSUtil rsync 在 S3 存储桶上给出 400 不可​​重试异常

标签 amazon-s3 google-cloud-storage gsutil

我正在使用 gsutil rsync,从 s3 复制到 gs,在 gsutil 穿过存储桶后出现以下错误:

列出 s3://[bucket]/时捕获不可重试的异常:BadRequestException:400 无 CommandException:捕获不可重试的异常 - 中止 rsync

这是不受欢迎的行为,因为我可以手动从 s3 复制到 gs 其他文件。我无法使用“-C”开关绕过,因为这不是复制错误。

编辑:如果 s3 中的文件名中有“#”,gsutil 会将其替换为“?versionId=”。例如:

S3 文件名:Updaet#2_Montgomery Building Permits.xlsx

GS 在调试输出中列出为:Updaet?versionId=2_Montgomery Building Permits.xlsx

最佳答案

您能否通过运行以下命令来提供有关此故障的更多详细信息:

gsutil -D rsync your-source your-destination

然后摘录显示错误的 HTTP 请求/响应?当您这样做时,请编辑授权: header 。

如果您不想在公共(public)论坛上发布请求的详细信息,可以通过电子邮件将其发送给我:gs-team@google.com

谢谢。

关于amazon-s3 - GSUtil rsync 在 S3 存储桶上给出 400 不可​​重试异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28582964/

相关文章:

python - AWS lambda 中的 Pandas 给出了 numpy 错误

amazon-web-services - AWS CLI 使用多个凭证同步 S3 存储桶

google-cloud-storage - Google Cloud Storage - GSUtil 更新失败,因为文件被另一个进程使用

firebase - 在 Firebase 项目之间迁移 Firestore 数据

amazon-web-services - 允许在无需身份验证的情况下通过 AWS 内的 VPC 访问 AWS S3 存储桶

ruby - 使用 ruby​​ SDK 将 S3 存储桶设置为网站

python - GAE - 将优化后的图像上传到云存储

gsutil - 通过 pip 安装 Google Cloud SDK : "gsutil requires python 2.7"

python - 如果使用 python 和子进程从 pycharm 调用,gsutil 不起作用, "cannot import name _common"

google-cloud-platform - Gsutil cp 不复制文件