Asaf
Asaf

Reputation: 8206

Hitting Max number of files and blobs for Google App Engine

When trying to deploy my application:

appcfg.py update --oauth2 .

I'm getting:

PM Rolling back the update.
Error 400: --- begin server output ---
Max number of files and blobs is 10000.
--- end server output ---

How do I solve this?

Upvotes: 2

Views: 2020

Answers (2)

Paul Collingwood
Paul Collingwood

Reputation: 9116

You "solve" it by having less files deployed when you deploy your project. You have a few choices.

You can use Skipfiles in your app.yaml to exclude some files from being deployed:

skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$

You might want to, for example, exclude .readme files, compiled python files etc.

Or you can use ZipImport and compress your python packages and they will be unzipped on the fly during import.

Or if you are also uploading lots of static assets, put them in a bucket instead as the other answer suggests.

Upvotes: 2

Ryan
Ryan

Reputation: 2542

Looks like you are hitting this quota: https://cloud.google.com/appengine/docs/quotas#Deployments

Could you shift many of your files to Cloud Storage?

Upvotes: 0

Related Questions