Modify

Ticket #970 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

ssl traceback; bcfg2-server process wedged

Reported by: Jim Rowan <jmr@…> Owned by: laszlo
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

My bcfg2-server process has hung again. strace says it's stuck in a read() call. kill -TERM does not kill it. The server is running on ubuntu lucid, both server and clients are Version: 1.1.1-1~lucid1.

The following was found on the controlling terminal where bcfg2-server was running.

File "/usr/lib/python2.6/ssl.py", line 94, in <lambda>
    self.send = lambda data, flags=0: SSLSocket.send(self, data, flags)
  File "/usr/lib/python2.6/ssl.py", line 174, in send
    v = self._sslobj.write(data)
SSLError: The write operation timed out
----------------------------------------
Error sending response (<class 'ssl.SSLError'>): The write operation timed out
----------------------------------------
Exception happened during processing of request from ('10.222.149.214', 42468)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/usr/lib/pymodules/python2.6/Bcfg2/SSLServer.py", line 249, in do_POST
    self.wfile.write(response)
  File "/usr/lib/python2.6/socket.py", line 300, in write
    self.flush()
  File "/usr/lib/python2.6/socket.py", line 286, in flush
    self._sock.sendall(buffer)
  File "/usr/lib/python2.6/ssl.py", line 203, in sendall
    v = self.send(data[count:])
  File "/usr/lib/python2.6/ssl.py", line 94, in <lambda>
    self.send = lambda data, flags=0: SSLSocket.send(self, data, flags)
  File "/usr/lib/python2.6/ssl.py", line 174, in send
    v = self._sslobj.write(data)
SSLError: The write operation timed out
----------------------------------------

Attachments

ssl_write_error.patch (911 bytes) - added by laszlo 11 years ago.
Patch to fix SSLError.py

Change History

Changed 11 years ago by laszlo

Patch to fix SSLError.py

comment:1 Changed 11 years ago by laszlo

  • Owner changed from desai to laszlo
  • Status changed from new to accepted

Try the attached path. I tested that path out as well as I could on rhel 5 w/ python 2.4. I don't have lucid handy.

comment:2 Changed 11 years ago by laszlo

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.