首页 > 解决方案 > 部署 Web 应用程序时出现 gcloud 应用程序引擎错误

问题描述

将文件复制到 App Engine 时出现以下错误:

无法复制文件。

将应用程序部署到 Google 云平台时显示此错误。

File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [3] The following errors occurred while copying files to App Engine:
File https://storage.googleapis.com/staging.xxxx.appspot.com/9da4e24cec2641fdeaff4b1d6c3b3d88bcf1c524 failed with: Failed to copy file.

Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Failed to copy file.",
      "resourceName": "https://storage.googleapis.com/staging.xxxxx.appspot.com/9da4e24cec2641fdeaff4b1d6c3b3d88bcf1c524",
      "resourceType": "file"
    }
  ]
]

我想生成 URL 并使用https://xxxxx.appspot.com运行项目

我尝试9da4e24cec2641fdeaff4b1d6c3b3d88bcf1c524从存储桶中删除文件staging.xxxxx.appspot.com,然后再次运行gcloud app deploy,仍然无法正常工作。

标签: pythongoogle-app-engineflaskdeploymentgcloud

解决方案


推荐阅读