Hitting Max number of files and blobs for Google App Engine

亡梦爱人 提交于 2020-01-02 12:40:11

问题


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?


回答1:


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.




回答2:


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?



来源:https://stackoverflow.com/questions/26913734/hitting-max-number-of-files-and-blobs-for-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!