Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django development server broken pipe error

Tags:

django

I am getting this weird error in my development server when running my django project:

Traceback (most recent call last):
  File "/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 284, in run
    self.finish_response()
  File "/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 324, in finish_response
    self.write(data)
  File "/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 403, in write
    self.send_headers()
  File "/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 467, in send_headers
    self.send_preamble()
  File "/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 385, in send_preamble
    'Date: %s\r\n' % http_date()
  File "/usr/lib/python2.7/socket.py", line 324, in write
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

Can someone shed some light on this for me?

like image 934
Darwin Tech Avatar asked Apr 20 '12 20:04

Darwin Tech


People also ask

What does broken pipe mean Django?

By "pipe" it means the TCP connection between the server and the browser. By "broken" it means closed.

What does broken pipe mean?

A broken Pipe Error is generally an Input/Output Error, which is occurred at the Linux System level. The error has occurred during the reading and writing of the files and it mainly occurs during the operations of the files.


1 Answers

This happens when the client closes the connection before the server finished sending the data. If it only happens sometimes and is not a persistent problem ignore it.

like image 125
Florian Apolloner Avatar answered Oct 09 '22 19:10

Florian Apolloner