Bug 41089 - BadStatusLine exception in updater not handled
BadStatusLine exception in updater not handled
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on: 55499
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-21 09:05 CEST by Florian Best
Modified: 2022-12-16 12:18 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019111921001155
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-04-21 09:05:31 CEST
Version: 4.1-1 errata152 (Vahr)

Execution of command 'updater/updates/query' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 221, in query_releases
    self.uu.ucr_reinit()
  File "%PY2.7%/univention/updater/tools.py", line 660, in ucr_reinit
    assert self.server.access(None, '')
  File "%PY2.7%/univention/updater/tools.py", line 424, in access
    res = UCSHttpServer.opener.open(req, timeout=self.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 401, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 419, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1219, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1034, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''
Comment 1 Florian Best univentionstaff 2016-04-21 09:05:55 CEST
Reported twice on different days by the same UUID.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2016-04-21 21:26:28 CEST
A broken HTTP status line sounds as if there is some device manipulating the data flow between Univention repository server and Univention updater (proxy/firewall/...).
Comment 3 Florian Best univentionstaff 2016-06-13 07:52:44 CEST
Reported again, 4.1-2 errata183 (Vahr)
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2016-06-13 10:58:32 CEST
(In reply to Florian Best from comment #3)
> Reported again, 4.1-2 errata183 (Vahr)
Same UUID?
Comment 5 Stefan Gohmann univentionstaff 2019-01-03 07:23:56 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 6 Christian Castens univentionstaff 2020-08-12 09:23:36 CEST
reported again:

Version: 4.4-2 errata328 (Blumenthal)

Traceback(cc5d43f56c8fe134e83988f4973b8203):
Interner Server-Fehler in "updater/updates/query".
Request: updater/updates/query

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 287, in query_releases
    available_versions, blocking_components = self.uu.get_all_available_release_updates()
  File "%PY2.7%/univention/updater/tools.py", line 1015, in get_all_available_release_updates
    ver = self.get_next_version(ucs_version, components, errorsto='exception')
  File "%PY2.7%/univention/updater/tools.py", line 972, in get_next_version
    assert self.server.access(repo)
  File "%PY2.7%/univention/updater/tools.py", line 642, in access
    res = UCSHttpServer.opener.open(req, timeout=self.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 438, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 402, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''

Role: domaincontroller_backup