gcloud应用程序部署:此部署有太多的文件 [英] gcloud app deploy : This deployment has too many files
问题描述
更新服务[默认]。 ..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
- you might be able to get a quota increase, see Getting error on GAE: Max number of files and blobs is 10000
- delete whatever files are not actually needed, or just skip them during deployment see skip_files
- if you have a lot of static files consider moving (some of) them to GCS instead, see Approaches for overcoming 10000 file limit on Google App Engine?
- split the service into multiple smaller services
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屋!