gcloud应用程序部署:此部署有太多的文件 [英] gcloud app deploy : This deployment has too many files

查看:1109
本文介绍了gcloud应用程序部署:此部署有太多的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 更新服务[默认]。 ..failed。 
错误:(gcloud.app.deploy)错误响应:[400]此部署文件太多。新版本仅限于此应用的10000个文件。

详细信息:[
[
{
@type:type.googleapis.com/google.rpc.BadRequest,
fieldViolations :[
{
description:这个部署文件太多,新版本只限于10000个文件。),
field:version.deployment。文件[...]
}
]
}
]
]

有什么办法可以解决这个问题吗?

解决方案

如果您试图部署的服务中的文件配额超过10000个,那么您必须减少相应的数量,详见



假设你实际上没有打到文件配额,那么这个错误通常表明你的应用程序目录中有循环/循环引用符号链接。这也可以解释一个像你在这篇文章的评论中提到的路径: https://stackoverflow.com/a/42425048/ 4495081个。你只需要修复有问题的符号链接。同样,一个简单/一致的目录结构可以帮助防止这样的问题。


I got the below error, when I tried to deploy my GAE app through gcloud.

Updating service [default]...failed.                                                                  
ERROR: (gcloud.app.deploy) Error Response: [400] This deployment has too many files. New versions are limited to 10000 files for this app.

Details: [
  [
    {
      "@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[...]"
        }
      ]
    }
  ]
]

Is there any way to tackle this problem?

解决方案

If you really have more than the 10000 files quota in the service you're trying to deploy then you'll have to reduce the number accordingly, see

Assuming you do not actually hit the files quota then the error usually indicates you have looping/circular referencing symlinks in your app directory. Which could also explain a path like the one you mentioned in a comment to this post: https://stackoverflow.com/a/42425048/4495081. You just have to fix the offending symlink(s). Again, a simple/consistent directory structure could help prevent such issues.

这篇关于gcloud应用程序部署:此部署有太多的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆