Analysis and resolution of upstream prematurely closed connection while reading header from response

Source: Internet
Author: User
Background

Migrate a Nginx+uwsgi+django project, after startup, access test error 502, background nginx print errors: Upstream prematurely closed connection while reading response Header from upstream problem analysis solution online A bunch of tutorials, look dizzy, have to debug nginx configuration parameters, have to restart the background, and so on but after trying, all do not work, finally calm down to find documents to see, The root cause of this error is actually the Nginx back-end service problem, specific reference https://wenku.baidu.com/view/4947d8d685254b35eefdc8d376eeaeaad1f31601.html This document is very well written and of great practical value. Finally check the Uwsgi problem, the original is the configuration file is less than a configuration, Plugin=python, plus restart on the normal, online said this configuration if the PIP is installed Uwsgi can be removed, but in this project seemingly not, the specific reasons to be studied.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.