upstream prematurely closed connection while reading response header from upstreamI tried restarting uwsgi:
restart uwsgi-emperorUwsgi restarted fine, but the problem still persisted. Uwsgi's log showed this:
Fatal Python error: Couldn't create autoTLSkey mappingThis was fixed by doubling the memory in the uwsgi config file (/etc/uwsgi/web2py.ini) from:
limit-as = 512 reload-on-as = 256 reload-on-rss = 192to
limit-as = 1024 reload-on-as = 512 reload-on-rss = 384and restarting uwsgi.