I got the below error, when I tried to deploy my GAE app through gcloud.
Updating service [default]...failed.
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:
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.
For python runtime 3.7, this error is solved by adding these files to a .gcloudingore not to skip_files in the app.yaml
Maybe your need ignore some files in file .gcloudignore
/vendor/
/node_modules/
/.git/
This work for me!
As mentioned in some comment, virtualenv folder can have a lot of files.
I just added venv/
as a new line into .gcloudignore
file.
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
Few things:
static
folder can get a bit messy. Try deleting it and rerunning python manage.py collectstatic
, this cut down about 2000 files for me..gcloudignore
file ignores the assets
folder, given they've just been moved to static
.