Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django+uwsgi: uwsgi_response_write_body_do(): Broken pipe [core/writer.c line 248]

Tags:

uwsgi

I have this weird issue in my django application. I am using the admin interface. When I try to load the change page it doesn't render completely and when i see in logs it says:

**uwsgi_response_write_body_do(): Broken pipe [core/writer.c line 248]

IOError: write error**

The page has been working fine before and suddenly this started happening. And also the behavior is inconsistent. If I reload the page multiple times, few times it renders correctly. This issue is happening in production environment and I am not able to replicate it on my local. The production server is using uwsgi 1.9.10 with nginx and django 1.5. Also I am writing custom HTML on page and there is an inline table also on the same page.

Please let me know if anyone knows why it is happening...

like image 340
user2863404 Avatar asked Oct 09 '13 15:10

user2863404


1 Answers

that error means the client (browser) disconnected before getting the full response. Check your webserver logs, maybe you hit a timeout

like image 127
roberto Avatar answered Nov 14 '22 20:11

roberto