Uwsgi Uwsgi_response_write_body_do (): Connection reset by peer Error resolution

Source: Internet
Author: User
Tags connection reset

The server architecture is: Nginx+uwsgi+django
One day, the discovery server returned the response incomplete, for example the document size is 200K, but returned only 100K to the browser.
Check the Uwsgi log, found the following error:

Mon May 16 18:01:02 2016 - uwsgi_response_write_body_do(): Connection reset by peer [core/writer.c line 322] during GET /access?gid=5&action=edit&rand=20160516180050335056 (192.168.5.205)IOError: write error

At the same time check the Nginx error log, found:

It appears that Nginx does not have permission to manipulate the directory/usr/local/nginx/uwsgi_temp/3/25

Solve:

Modify the owner of the directory to be the user who initiated the Nginx process

chown -R www  /usr/local/nginx/uwsgi_temp



Uwsgi Uwsgi_response_write_body_do (): Connection reset by peer Error resolution

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.