gcloud预览应用程序部署抛出

wai*_*ler 4 google-app-engine gcloud

我不确定我做错了什么?我可以在cloud9中本地运行应用程序.gcloud info并没有向我展示任何与众不同的东西...任何帮助

xxxxx:~/workspace (master) $ gcloud preview app deploy --version v1
You are about to deploy the following modules:
 - valued-vault-xxxxx/default (from [/home/ubuntu/workspace/app.yaml])
     Deployed URL: [https://valued-vault-xxxxx.appspot.com]

Do you want to continue (Y/n)?  Y

Beginning deployment...
Copying files to Google Cloud Storage...
Synchronizing files to [<googlecloudsdk.api_lib.app.cloud_storage.BucketReference object at 0x7f506914f790>].
File upload done.
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Errors were encountered while copying files to App Engine.

Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Conflicting SHA1 sum for file. Expected \"d4fc6996_1e0f9444_1f1f82b3_f1v2eef4_9d5d12345\" but received \"f7f38209_fa22bdf0_9e73e6ec_7f60a936_9efc1f1e\".",
      "resourceName": "https://storage.googleapis.com/staging.valued-vault-xxxxx.appspot.com/f7f3d209fa25bcf09e73efec7f60a9369efc1f1e",
      "resourceType": "file"
    }
  ]
]
Run Code Online (Sandbox Code Playgroud)

小智 6

请遵循以下步骤:

  1. 复制资源名称的文件部分.在您的情况下,它将是:f7f3d209fa25bcf09e73efec7f60a9369efc1f1e
  2. 转到Google云端存储并选择存储桶:staging.valued-vault-xxxxx.appspot.com.appspot.com."valued-vault-xxxxx.appspot.com"是项目名称.
  3. 然后搜索"f7f3d209fa25bcf09e73efec7f60a9369efc1f1e"并将其删除
  4. 再次进行部署,它应该工作


wai*_*ler 0

对不起。我的错。无论如何,我曾经使用 Codeship 部署到 GAE。然而,即使从 Codeship 删除项目后,它也没有删除 Codeship --> GAE 身份验证 - 所以我收到了该错误。在我删除了 codeship --> GAE 连接帐户后,我现在才意识到这一点。一切正常。

简而言之,在更改部署环境之前删除所有以前的身份验证/部署服务。