Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

self._sock.sendall Broken pipe means?

By
Rick Leir
on 8/16/13, 7:32 PM 7,604 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
1
Rick Leir
On 9/11/13, 6:11 PM

(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).

Any solution of this error ?

Jagdish Panchal
on 2/14/14, 2:36 AM

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.

Rick Leir
on 2/14/14, 5:43 AM

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

Rick Leir
on 2/14/14, 5:46 AM

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.

Sam Davey
on 9/4/14, 5:52 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/16/13, 7:32 PM
Seen: 7604 times
Last updated: 3/16/15, 8:10 AM