【问题标题】:Deleting Google Cloud Storage object results in "Invalid argument" and "storage_class_update_time_nano" errors删除 Google Cloud Storage 对象会导致“无效参数”和“storage_class_update_time_nano”错误
【发布时间】:2021-05-10 18:38:59
【问题描述】:

我无法从我拥有的 Google Cloud Storage 存储分区中覆盖或删除特定对象。

gsutil rmBadRequestException: 400 Invalid argument 失败:

% gsutil stat gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg
gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg:
    Creation time:          Fri, 07 Aug 2015 02:03:47 GMT
    Update time:            Fri, 17 Feb 2017 04:34:43 GMT
    Storage class:          STANDARD
    Content-Length:         46169
    Content-Type:           image/jpeg
    Metadata:               
        goog-reserved-file-mtime:1438913027
    Hash (crc32c):          UBUUbQ==
    Hash (md5):             fhU9YXjE7M6XRiT+05seeQ==
    ETag:                   CPiV3t7wlccCEAI=
    Generation:             1438913027083000
    Metageneration:         2
% gsutil rm -a gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg
Removing gs://mybucket/0e133e23-6005-4711-ac2e-24b2cc95ee05.jpg#1438913027083000...
BadRequestException: 400 Invalid argument

GCP Console 存储浏览器失败并显示 Invalid argument (1 error) 和(深入挖掘)storage_class_update_time_nano must be positive

存储桶正在使用启用了对象级 ACL 的 Standard 存储类(尽管我没有使用它们,并且我的帐户被列为相关对象的所有者)。存储桶没有保留策略,并且默认的基于事件的保留选项已禁用。它没有任何生命周期规则。

我可以删除存储桶中的其他对象。我怀疑这是 Google 方面的一个错误,尽管我无法在网上找到其他人遇到相同问题的报告(例如,Google 对 storage_class_update_time_nano 错误消息返回零结果)。

【问题讨论】:

  • 我怀疑这是一个新问题 - 我也是昨天才开始看到的,在任何地方都找不到一个相关的帖子。然后我今天在另一个项目上再次看到它并找到了你的新帖子。
  • 感谢您让我知道您也遇到了这个问题!我在issuetracker.google.com/issues/179648621 提交了一个问题。
  • 我在您的问题上看到更新 gsutil 修复了它(并确认为我修复了),但现在在 GCP Console 存储浏览器上删除那些相同类型的问题项目也可以正常工作。感谢您的报告!

标签: google-cloud-platform google-cloud-storage gsutil


【解决方案1】:

现在已解决:在 2021-02-08 早上失败的 gsutil mv 命令在四个小时后再次运行时起作用。

GCP issue that I filed,一名谷歌员工确认这是由回归引起的:

我可以确认问题出在 GCP 方面,并且与 2 月初对 GCS 进行的新更改有关。

现在我可以看到该问题已发布并修复。

【讨论】:

    猜你喜欢
    • 2014-02-12
    • 2017-04-10
    • 2014-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-03
    • 2023-03-12
    • 2017-09-30
    相关资源
    最近更新 更多