Bug 790057 - [abrt] koji-1.6.0-2.fc15: SSLConnection.py:142:recv:WantWriteError
Summary: [abrt] koji-1.6.0-2.fc15: SSLConnection.py:142:recv:WantWriteError
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: koji
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:12e39d4048813e9588e9498dd0c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 15:10 UTC by Vít Ondruch
Modified: 2013-07-31 23:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-31 23:46:39 UTC
Type: ---


Attachments (Terms of Use)

Description Vít Ondruch 2012-02-13 15:10:21 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python /usr/bin/koji -d build --scratch f17-candidate rubygem-rdoc-3.12-2.fc18.src.rpm
comment:        Trying to build package on Koji. Might be related to VPN connection? Or missing hostname?
executable:     /usr/bin/koji
kernel:         3.2.5-3.fc16.x86_64
reason:         SSLConnection.py:142:recv:WantWriteError
time:           Po 13. únor 2012, 16:03:42 CET
uid:            1000
username:       vondruch

backtrace:
:SSLConnection.py:142:recv:WantWriteError
:
:Traceback (most recent call last):
:  File "/usr/bin/koji", line 5632, in <module>
:    rv = locals()[command].__call__(options, session, args)
:  File "/usr/bin/koji", line 800, in handle_build
:    activate_session(session)
:  File "/usr/bin/koji", line 5598, in activate_session
:    session.ssl_login(options.cert, options.ca, options.serverca, proxyuser=options.runas)
:  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1670, in ssl_login
:    sinfo = self.callMethod('sslLogin', proxyuser)
:  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1715, in callMethod
:    return self._callMethod(name, args, opts)
:  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1740, in _callMethod
:    return proxy.__getattr__(name)(*args)
:  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
:    return self.__send(self.__name, args)
:  File "/usr/lib64/python2.7/xmlrpclib.py", line 1575, in __request
:    verbose=self.__verbose
:  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
:    return self.single_request(host, handler, request_body, verbose)
:  File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request
:    response = h.getresponse(buffering=True)
:  File "/usr/lib64/python2.7/httplib.py", line 1027, in getresponse
:    response.begin()
:  File "/usr/lib64/python2.7/httplib.py", line 407, in begin
:    version, status, reason = self._read_status()
:  File "/usr/lib64/python2.7/httplib.py", line 365, in _read_status
:    line = self.fp.readline()
:  File "/usr/lib64/python2.7/socket.py", line 447, in readline
:    data = self._sock.recv(self._rbufsize)
:  File "/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py", line 142, in recv
:    return con.recv(bufsize, flags)
:WantWriteError
:
:Local variables in innermost frame:
:curtime: 1329145422.428851
:read: [<OpenSSL.SSL.Connection object at 0x1e266d0>]
:self: <OpenSSL.SSL.Connection object at 0x1e266d0>
:timeout: 60
:write: []
:flags: 0
:starttime: 1329145422.027911
:excpt: []
:bufsize: 8192
:con: <OpenSSL.SSL.Connection object at 0x1e266d0>

Comment 1 Fabrice Bellet 2012-07-30 19:38:20 UTC
I have the same problem. koji version is 1.7.0-2. If behind a vpn too (openvpn in bridge mode).

Comment 2 Fabrice Bellet 2012-07-30 19:52:54 UTC
The problem happens on a box where the VPN server is running on a machine doing also NAT. And it works when switching to another VPN server running on another box with a similar VPN setup (bridge), but without NAT (the IP address given to the VPN client is public).

Comment 3 Fabrice Bellet 2012-08-01 12:01:34 UTC
Maybe this SSL_ERROR_WANT_WRITE error could be handled the same way the symetric SSL_ERROR_WANT_READ is managed in koji/ssl/SSLConnection.py, with a short wait before retrying ? Adding a similar time.sleep(0.2) for SSL.WantWriteError exception around line 147 works for me without other noticeable side-effects.

When I log these errors : 

$ koji --force-auth --debug --debug-xmlrpc list-targets
send: "POST /kojihub/ssllogin HTTP/1.1\r\nHost: koji.fedoraproject.org:443\r\nAccept-Encoding: gzip\r\nUser-Agent: pyOpenSSL_XMLRPC/0.12 - xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 140\r\n\r\n<?xml version='1.0'?>\n<methodCall>\n<methodName>sslLogin</methodName>\n<params>\n<param>\n<value><nil/></value></param>\n</params>\n</methodCall>\n"
wantread
wantread
wantwrite
wantwrite
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
wantread
reply: 'HTTP/1.1 200 OK\r\n'

Comment 4 Fedora End Of Life 2013-07-03 22:07:41 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2013-07-31 23:46:43 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.