'Deploying App on Google App Engine - Error Response: [13] An internal Error occurred

I am trying to deploy a python app on google app engine.

I was able to preview the web successfully on cloud shell editor but when I deploy it, I obtain Error Response:[13] An internal error occurred.

This is my app.yaml content

runtime: python
env: flex
entrypoint: gunicorn -b:8078 main:app

runtime_config:
  python_version: 3.7

manual_scaling:
  instances: 2
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10
 

It doesn't also show logs that could indicate what is wrong with the application.

Thank you



Solution 1:[1]

There have been multiple iterations since the original question was asked. OP has switched from standard to flex and python27 to python37.

I think I've previously come across someone who encountered the error because they had exceeded the 1000 file limit. Since you're using python37, I assume you have a virtual environment in your project folder which you first used in running the App on your local machine. You need to have a skip_files section in your app.yaml or a .git_ignore or .gcloudignore folder and include your virtual env in it so that gcloud doesn't try to deploy it

You can also check out these other links to see if they can help you resolve your issue

  1. https://github.com/GoogleCloudPlatform/nodejs-getting-started/issues/172

  2. https://groups.google.com/g/google-appengine/c/M4acI1YElVs

If none of the above, I'm not sure one can figure out the solution without looking at the code. If your code is public, you can provide a link to the github.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 NoCommandLine