Report this

What is the reason for this report?

upstream prematurely closed while reading response header from upstream, reques: "GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/web.sock:"

Posted on October 11, 2017

upstream prematurely closed connection while reading response header from upstream, client: xxx.xx.xx.xx, server: website.com, request: “GET / HTTP/1.1”, upstream: “uwsgi://unix:///tmp/web.sock:”, host: “website.com

How to solve this ?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

It looks like that the Gunicorn service is not running, you need to start it with:

systemctl start gunicorn.socket

As a reference, I could also suggest checking out this step-by-step tutorial on how to setup Django with Nginx and Gunicorn:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.