Socket error processing request with flask, gunicorn, docker and azure Socket error processing request with flask, gunicorn, docker and azure flask flask

Socket error processing request with flask, gunicorn, docker and azure


Finally, I found it was caused by pod liveness probes, because gunicorn server can't support http and https both together currently, and if we use only https for a public domain, and the http probes check request will be failed with this error.

Solution:Change gunicorn server to Nginx or Apache.


Upgrading python version from 3.6.* to 3.7.4, it works well.


I have changed from gunicorn to uwsgi and no more headaches!!!