简体   繁体   English

使用来自 WINDOWS OS 10 的 Google Cloud SDK 部署 Google App Engine 柔性环境失败

[英]Google App Engine Flexible environment deployment failed using Google Cloud SDK from WINDOWS OS 10

My production site developed in CodeIgniter Frame work, It has more than 10k files, I deployed last week successfully without any issues.我的生产站点在 CodeIgniter 框架下开发,文件超过 10k,我上周成功部署,没有任何问题。 Today My deployment got failed, I just corrected one query in script.今天我的部署失败了,我只是更正了脚本中的一个查询。

I got the below issues我有以下问题

C:\myproject>gcloud app deploy --version 13 app.yaml
Services to deploy:

descriptor:      [C:\myproject\app.yaml]
source:          [C:\myproject]
target project:  [xyz]
target service:  [uat]
target version:  [13]
target url:      [https://uat-dot-xyz.appspot.com]


Do you want to continue (Y/n)?  Y
    Beginning deployment of service [uat]...
    #============================================================#
    #= Uploading 0 files to Google Cloud Storage                =#
    #============================================================#
    File upload done.
    ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app.
    - '@type': type.googleapis.com/google.rpc.BadRequest
      fieldViolations:
      - description: This deployment has too many files. New versions are limited to 10000
          files for this app.
        field: version.deployment.files[...]

I referred the below SO posting我提到了下面的SO帖子

gcloud app deploy failed because deployment has too many files for PHP CodeIgnitor files gcloud app deploy 失败,因为部署有太多 PHP CodeIgnitor 文件的文件

gcloud app deploy: This deployment has too many files Approaches for overcoming 10000 file limit on Google App Engine? gcloud app deploy:此部署有太多文件克服 Google App Engine 上 10000 个文件限制的方法?

Communicating between google app engine services 谷歌应用引擎服务之间的通信

I enabled.gcloudignore file as per the below and created in myproject我按照以下启用了.gcloudignore 文件并在 myproject 中创建

https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore

How to include files in.gcloudignore that are ignored in.gitignore 如何将在.gitignore 中忽略的文件包含在.gcloudignore 中

C:\>gcloud config set gcloudignore/enabled true
Updated property [gcloudignore/enabled].

C:\>gcloud config list
[accessibility]
screen_reader = False
[compute]
region = region-name
zone = zone-name
[core]
account = xyz@domainname.com
disable_usage_reporting = True
project = xyz
[gcloudignore]
enabled = true

My current Cloud SDK version is: 320.0.0我当前的云 SDK 版本是:320.0.0

Installing components from version: 320.0.0从版本安装组件:320.0.0

I could not find the solution.我找不到解决方案。 Why suddenly My deployment failed Using Gcloud SDK to GAE flexible environment ( Note: My project has more than 10 k files, Upto Last week I didnt get this issue)为什么突然我的部署失败了使用 Gcloud SDK 到 GAE 柔性环境(注:我的项目有超过 10 k 的文件,直到上周我没有得到这个问题)

Plz, Help me to solve this issue, If I miss anything in this, Thanks in Advance.请帮我解决这个问题,如果我错过了任何东西,在此先感谢。

It looks that there was a change on the way App Engine deploy the files.看起来 App Engine 部署文件的方式发生了变化。

Running the command gcloud config set app/trigger_build_server_side false solved the issue运行命令gcloud config set app/trigger_build_server_side false解决了这个问题

Now on Dec 15 this change seems to be reverted and normal deploys should be working as before现在在 12 月 15 日,此更改似乎已恢复,正常部署应该像以前一样工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM