Polapo-Invest / OPT-WEP

OPT - Web Implementation
0 stars 1 forks source link

[BUG] gunicorn issues; including .wsgi_app ( /usr/local/lib/python3.11/site-packages/flask/app.py:1473 ) error #8

Closed loupdaniel closed 3 weeks ago

loupdaniel commented 1 month ago

Current Behavior

Google Cloud Run throwing error stating gunicorn issues; including .wsgi_app ( /usr/local/lib/python3.11/site-packages/flask/app.py:1473 ) error while deploying with VSCode Cloud Run extension on Google Cloud Shell.

loupdaniel commented 3 weeks ago

Possible solutions

Add an entrypoint in the app.yaml

runtime: python

api_version: 1
threadsafe: true

# the PROJECT-DIRECTORY is the one with settings.py and wsgi.py
entrypoint: gunicorn -b :$PORT main.wsgi

Reference: https://stackoverflow.com/a/52417523/21025959 https://cloud.google.com/appengine/docs/standard/python3/runtime#application_startup

Modify versions or delete all the versions specified in the requirements.txt

Reference: https://github.com/GoogleCloudPlatform/generative-ai/issues/198