502 Bad Gateway nginx and how to re-deploy

44 views
Skip to first unread message

jane B

unread,
Apr 23, 2020, 4:48:44 AM4/23/20
to Google App Engine
Hello,

When I followed the guide for "Running Django on the App Engine standard environment" https://cloud.google.com/python/django/appengine and deployed the app when I went onto the browser I received a 502 Bad Gateway Nginx  error. I think I did not connect to MySQL correctly. I think I fixed this issue and I want to re-deploy my app using 
gcloud app deploy .

After following the guideline again (basically redoing it) I get this error : 
File upload done.

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app.

- '@type': type.googleapis.com/google.rpc.BadRequest

  fieldViolations:

  - description: This deployment has too many files. New versions are limited to 10000

      files for this app.

    field: version.deployment.files[...]


I want to know how to re-deploy the app with the correct code. how am I suppose to go about this?

Christian gonzalez

unread,
Apr 23, 2020, 9:43:38 AM4/23/20
to Google App Engine

Hello Jane,

 

What I understand here is that you are deploying your entire environment with the installed libraries and not just the required files.

 

Can you check that you are in the folder containing just the files that you want to deploy and that you aren't displaying unnecessary files?


Reply all
Reply to author
Forward
0 new messages