I have difficulties deploying the sample app (GitHub <https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/flexible/django_cloudsql>) to the App Engine Flexible Environment based on this official tutorial <https://cloud.google.com/python/django/flexible-environment>. I get the following error message:
Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error: [2017-01-21 17:01:14 +0000] [5] [INFO] Starting gunicorn 19.6.0 [2017-01-21 17:01:14 +0000] [5] [INFO] Listening at: http://0.0.0.0:8080 (5) [2017-01-21 17:01:14 +0000] [5] [INFO] Using worker: sync [2017-01-21 17:01:14 +0000] [8] [INFO] Booting worker with pid: 8 [2017-01-21 17:01:14 +0000] [8] [ERROR] Exception in worker process Traceback (most recent call last): File "/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker worker.init_process() File "/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 126, in init_process self.load_wsgi() File "/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 136, in load_wsgi self.wsgi = self.app.wsgi() File "/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 65, in load return self.load_wsgiapp() File "/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp return util.import_app(self.app_uri) File "/env/lib/python3.5/site-packages/gunicorn/util.py", line 357, in import_app __import__(module) ImportError: No module named 'mysite' [2017-01-21 17:01:14 +0000] [8] [INFO] Worker exiting (pid: 8) [2017-01-21 17:01:14 +0000] [5] [INFO] Shutting down: Master [2017-01-21 17:01:14 +0000] [5] [INFO] Reason: Worker failed to boot. app.yaml # [START runtime] runtime: python env: flex entrypoint: gunicorn -b :$PORT mysite.wsgi beta_settings: cloud_sql_instances: <your-cloudsql-connection-string> runtime_config: python_version: 3 # [END runtime] As far as I figured it out, the problem is that gunicorn cannot find the app. To my understanding, the entry point should something like this: entrypoint: gunicorn --chdir=/path/to/the/app -b :$PORT mysite.wsgi However, I do not know where the app gets deployed on the virtual machine. Additionally, I would expect the App Engine to sort this out on its own. You can find my Stackoverflow question here: http://stackoverflow.com/questions/41782396/deploying-a-django-app-to-app-engine-flexible-environment/41783614. Any help is appreciated. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a4a99b9f-d962-4e82-a291-f74fcc7849f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.