Skip to Content
Menu
This question has been flagged
1 Reply
22963 Views

What causes this exception?

Exception happened during processing of request from ('10.100.2.71', 42799)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
    self.wfile.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
Avatar
Discard
Author Best Answer

(answered by Uku Loskit on stackoverflow, here is what he said:)

This just means that the underlying TCP connection was abruptly dropped. In this case it means that you are trying to write data to a socket that has already been closed on the other side (by the client). It is harmless, it means that while your server was sending an HTTP response to the client (browser) she stopped the request (closed the browser for example).

Avatar
Discard

Any solution of this error ?

Author

I would like to 'accept' this answer but I need 75 points to do that. Clients (browsers) commonly drop connections and it is harmless (or should be) in OpenERP.

Author

The 'improvement' I would suggest is that the log should get a one line 'info' message, not a 13 line error traceback.

I am receiving this error at least once a day. You description sounds harmless but every time this occurs my server process is killed so I have to log into my server and restart it. If this is just a drop in connection to a client should it really kill the processes? How do I stop this? (surely I should NOT have to rely on upstart and the "respawn limit unlimited" command). I'm running Version 7.0-20140202-002512 on Ubuntu.