Hitting Max number of files and blobs for Google A

2019-05-20 22:15发布

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?

2条回答
虎瘦雄心在
2楼-- · 2019-05-20 22:40

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.

查看更多
唯我独甜
3楼-- · 2019-05-20 22:49

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?

查看更多
登录 后发表回答