[CRITICAL] WORKER TIMEOUT (pid:xxx) gunicorn errors usually indicates the WSGI webserver (gunicorn) closed the request early, due to worker timeout. I suspect you're hitting the default timeout value for gunicorn sync workers <http://docs.gunicorn.org/en/latest/settings.html#timeout>. The timeout value limits the length of requests and the potential fix would be to test this by changing your app.yaml entrypoint to include ‘--graceful-timeout 75’ and/or ‘--timeout 75’. This will set the timeouts to 75 seconds [1].
If the above troubleshooting step did not resolve your issue, please try / send the following: 1. Send your "app.yaml" privately 1. Increase resource (e.g. CPU) 2. Implement Exponential Backoff <https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy> - your app almost instantaneously retries to reboot after fail. Implementing this makes sure that the server is not overwhelmed with requests hitting at the same time when it comes back up. 3. gunicorn logs -> it does not log by default. To watch the logs <http://docs.gunicorn.org/en/stable/faq.html#why-i-don-t-see-any-logs-in-the-console> in the console you need to use the option “--log-file=-” or “--log-level=DEBUG” to give you an app stack trace. Please also note that for specific technical questions not related to Google Cloud Platform (like Flask or nginx), I would recommend posting a question to StackExchange / StackOverflow <https://cloud.google.com/support/docs/stackexchange> and tagging the appropriate topic. [1] 75 seconds is arbitrary, set it to higher timeout as necessary. -- 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 [email protected]. To post to this group, send email to [email protected]. 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/1af7fe11-0d3b-47a2-8c7d-182af2d5fc7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
