gcloud app deploy : This deployment has too many files

后端 未结 7 1961
無奈伤痛
無奈伤痛 2020-12-06 17:06

I got the below error, when I tried to deploy my GAE app through gcloud.

Updating service [default]...failed.                                                         


        
7条回答
  •  伪装坚强ぢ
    2020-12-06 17:27

    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:

    • you might be able to get a quota increase, see Getting error on GAE: Max number of files and blobs is 10000
    • delete whatever files are not actually needed, or just skip them during deployment see skip_files or, for the more recent cloud SDK versions, the .gcloudignore file.
    • if you have a lot of static files consider moving (some of) them to GCS instead, see Approaches for overcoming 10000 file limit on Google App Engine?
    • split the service into multiple smaller services - each with its own 10000 files limit.

    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.

提交回复
热议问题