部署到 Google App Engine 时出错...它在一天前工作得很好

Error while deploying to Google App Engine ... it was working just fine a day ago

部署工作正常...直到今天早上:

ERROR: (gcloud.app.deploy) Error Response: [3] The following errors occurred while copying files to App Engine:
File https://storage.googleapis.com/xxxxxxxxxx.appspot.com/067c4141aeb3a82a8fa29f8c55b0b4b785fa24a3 failed with: Failed to save static file.


{
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Failed to save static file.",
      "resourceName": "https://storage.googleapis.com/staging.xxxxxxxxxxxxxx.appspot.com/067c4141aeb3a82a8fa29f8c55b0b4b785fa24a3",
      "resourceType": "file"
    }

我并没有真正改变任何东西...只是一夜之间发生的事情。我也曾尝试从云存储中删除存储桶,但没有成功。有什么想法吗?

似乎有一个事件: https://status.cloud.google.com/incident/zall/20008

我只是想出了一个临时解决方法,直到他们解决问题为止:

  1. 打开存储中的暂存文件夹,
  2. 搜索有问题的文件并将其删除,
  3. 再次尝试部署,
  4. 重复所有步骤,直到成功部署

我发现了一份 2015 年 here 的旧事件报告,该报告与此类似,然后进行了修补。但在那份报告中,有人提到您可以关闭应用程序引擎 api 并且部署将会完成。我今天遇到了同样的问题并尝试了一下,它对我有用。

gcloud config set app/use_appengine_api false

确保您还为 current issue 加注星标,以便他们知道其他人也受到了影响。