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 might have to reduce the number accordingly.
Other things to try:
.gcloudignore
file.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 app deploy
writes a log file, and tells you where that log is early in its output. Examine that log. It'll tell you what's being uploaded.
Two common ways I've seen people get into trouble are
venv
(or .venv
, if that's the name you picked) to skip_files
..git
to skip_files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With