AppEngine Deploy是文件的SHA1和冲突

问题描述 投票:1回答:1

我想部署一个更新到我们的应用程序,但我们遇到gcloud命令的问题,该命令未能“冲突SHA1总和文件”。这是输出:

➜ gcloud app deploy xxx-xxx-xxxx.yaml --project xxx-xxx-xxxx --quiet 

Services to deploy:

descriptor:      [/home/vzool/Workspace/xxx-xxxx-xxxxxxxxxxx/xxx-xxx-xxxx.yaml]
source:          [/home/vzool/Workspace/xxx-xxxx-xxxxxxxxxxx]
target project:  [xxx-xxx-xxxx]
target service:  [default]
target version:  [20180917t110153]
target url:      [https://xxx-xxx-xxxx.appspot.com]


Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 1 file to Google Cloud Storage                 ═╣
╚════════════════════════════════════════════════════════════╝
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.xxx-xxx-xxxx.appspot.com/c819d7599ceb31df8d4370eed1981defcb5034c6 failed with: Conflicting SHA1 sum for file. Expected "ddb6af3b_cf4bff57_613fb78d_208480fa_1717b3c4" but received "c819d759_9ceb31df_8d4370ee_d1981def_cb5034c6".

Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Conflicting SHA1 sum for file. Expected \"ddb6af3b_cf4bff57_613fb78d_208480fa_1717b3c4\" but received \"c819d759_9ceb31df_8d4370ee_d1981def_cb5034c6\".",
      "resourceName": "https://storage.googleapis.com/staging.xxx-xxx-xxxx.appspot.com/c819d7599ceb31df8d4370eed1981defcb5034c6",
      "resourceType": "file"
    }
  ]
]

我确实删除了这个文件c819d7599ceb31df8d4370eed1981defcb5034c6,但每次生成新哈希,删除整个块staging.xxx-xxx-xxxx.appspot.com,我确实清除Memcache但没有运气尝试所有这些选项! :(

我不知道该怎么做,有什么建议可以帮助我吗?

谢谢

google-app-engine google-cloud-platform google-cloud-storage
1个回答
1
投票

我认为经过一段时间的研究后,该应用程序本身具有一个实时功能,可以在您打开实时页面时更新一个文件。所以,这改变了gcloud上传的内容。 gcloud上传然后验证。如果文件在上传后更改,并且在验证之前gcloud将通过此错误在您的脸上。哈哈哈^ _ ^

© www.soinside.com 2019 - 2024. All rights reserved.