Issue
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?
Solution
If you really have more than the 10000 files quota in the service you're trying to deploy then you might have to reduce the number accordingly.
Other things to try:
- 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 or, for the more recent cloud SDK versions, the
.gcloudignore
file. - 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 - each with its own 10000 files limit.
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.
Answered By - Dan Cornilescu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.