Bug 46911 - appcenter/query: raise AddressValueError(ip_str)
appcenter/query: raise AddressValueError(ip_str)
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-27 17:23 CEST by Johannes Keiser
Modified: 2022-08-01 16:34 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021030521000648, 2021100521000349, 2019010221000349, 2018091321000351, 2018061121001011, 2018071821000597, 2018031421001038, 2020031921001051, 2020043021000609, 2020041621001108, 2020080421000268, 2020051221000491, 2020101221000177, 2021100421000369
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 Johannes Keiser univentionstaff 2018-04-27 17:23:38 CEST
Version: 4.1-5 errata489 (Vahr)

Die Ausführung des Kommandos appcenter/query ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 281, 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/appcenter/__init__.py", line 195, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 220, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "%PY2.7%/univention/appcenter/utils.py", line 88, in docker_bridge_network_conflict
    docker0_net = ipaddr.IPv4Network(ucr_get('docker/daemon/default/opts/bip', '172.17.42.1/16'))
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1291, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1043, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError
Comment 1 Johannes Keiser univentionstaff 2018-04-27 20:07:34 CEST
Reported again: Version: 4.3-0 errata11 (Neustadt)

Interner Server-Fehler in "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 207, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 236, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "%PY2.7%/univention/appcenter/utils.py", line 91, in docker_bridge_network_conflict
    my_net = ipaddr.IPv4Network('%s/%s' % (iface['network'], iface['netmask']))
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: None
Comment 2 Johannes Keiser univentionstaff 2018-07-20 16:05:54 CEST
Version: 4.3-1 errata151 (Neustadt)

Remark: nach AD Takeover

Interner Server-Fehler in "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 212, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 241, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "%PY2.7%/univention/appcenter/utils.py", line 91, in docker_bridge_network_conflict
    my_net = ipaddr.IPv4Network('%s/%s' % (iface['network'], iface['netmask']))
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: None

Role: domaincontroller_master
Comment 3 Johannes Keiser univentionstaff 2018-07-20 17:47:24 CEST
Reported again:
Version: 4.3-0 errata112 (Neustadt)

Remark: Tried to launch App Center.

Internal server error during "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 207, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 236, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "%PY2.7%/univention/appcenter/utils.py", line 91, in docker_bridge_network_conflict
    my_net = ipaddr.IPv4Network('%s/%s' % (iface['network'], iface['netmask']))
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: None

Role: domaincontroller_master
Comment 4 Johannes Keiser univentionstaff 2018-10-04 14:01:44 CEST
Reported again: Version: 4.3-2 errata234 (Neustadt)

Interner Server-Fehler in "appcenter/query".
Request: appcenter/query
Traceback: Same as Comment 2

Role: domaincontroller_master
Comment 5 Johannes Keiser univentionstaff 2019-01-31 15:37:24 CET
Reported again: Version: 4.3-3 errata390 (Neustadt)
Traceback: Same as Comment #2
Comment 6 Christian Castens univentionstaff 2020-05-18 11:23:32 CEST
reported again:

Version: 4.4-3 errata499 (Blumenthal)

Interner Server-Fehler in "appcenter/query".
Request: appcenter/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 "/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter/__init__.py", line 253, in query
    if not self._test_for_docker_service():
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter/__init__.py", line 272, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/utils.py", line 91, in docker_bridge_network_conflict
    my_net = ipaddr.IPv4Network('%s/%s' % (iface['network'], iface['netmask']))
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "/usr/lib/python2.7/dist-packages/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: None

Role: domaincontroller_master
Comment 7 Christian Castens univentionstaff 2020-06-12 11:16:05 CEST
Reported again:

Version: 4.4-4 errata579 (Blumenthal)

Remark: only oppened AppCenter and logged in with credentials

Role: domaincontroller_master
Comment 8 Christian Castens univentionstaff 2020-06-12 14:32:19 CEST
Reported again:

Version: 4.4-4 errata528 (Blumenthal)

Remark: Eingabeaufforderung des Passworts für den Benutzer der auf das App-Center zugreifen möchte (Administrator-Gruppen-Account).
Nach Eingabe und Bestätigung erfolgt die Fehlermeldung.

Role: domaincontroller_master
Comment 9 Christian Castens univentionstaff 2020-08-07 12:46:58 CEST
reported again

Remark: Fehler tratt sofort nach der Installation auf, sobald man das APPcenter öffnet. Auch zwischen durch, wenn man auf eine App geklickt hat. Allerdings lassen sich die Apps
bisher dennoch problemlos installieren.

Error:
Interner Server-Fehler in "appcenter/query".
Request: appcenter/query

Role: domaincontroller_master
Comment 10 Christian Castens univentionstaff 2020-08-19 15:02:12 CEST
reported again:
Version: 4.4-4 errata589 (Blumenthal)
Role: domaincontroller_master
Comment 11 Christian Castens univentionstaff 2021-10-05 10:04:54 CEST
Version: 4.4-8 errata1001 (Blumenthal)

Error:
Internal server error during "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 253, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 272, in _test_for_docker_service
    if docker_bridge_network_conflict():
  File "%PY2.7%/univention/appcenter/utils.py", line 91, in docker_bridge_network_conflict
    my_net = ipaddr.IPv4Network('%s/%s' % (iface['network'], iface['netmask']))
  File "%PY2.7%/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "%PY2.7%/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: None

Role: domaincontroller_master
Comment 12 Maximilian Janßen univentionstaff 2022-08-01 16:34:38 CEST
Ticket: 2020092521000217
Version: 4.4-6 errata750 (Blumenthal)

Interner Server-Fehler in "appcenter/docker/remote/progress".
Request: appcenter/docker/remote/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 423, in remote_progress
    return client.umc_command('appcenter/docker/progress', {'progress_id': remote_progress_id}).result
  File "%PY2.7%/univention/lib/umc.py", line 444, in umc_command
    return self.request('POST', 'command/%s' % (path,), data, headers)
  File "%PY2.7%/univention/lib/umc.py", line 524, in request
    return self.send(request)
  File "%PY2.7%/univention/lib/umc.py", line 553, in send
    raise HTTPError(request, response, self.hostname)
HTTPError: 591 on ***.***.** (command/appcenter/docker/progress): {u'status': 591, u'message': u'Interner Server-Fehler in "appcenter/docker/progress".', u'location': u'https://***.***.**/univention/command'}
Interner Server-Fehler in "appcenter/docker/progress".
Request: appcenter/docker/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 158, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 102, in poll
    six.reraise(self.exc_info[1], None, self.exc_info[2])
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 312, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 484, in invoke_docker
    result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 84, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 143, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 114, in _do_it
    if self._install_app(app, args):
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _install_app
    self._start_docker_image(app, hostdn, password, args)
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 157, in _start_docker_image
    docker.pull()
  File "%PY2.7%/univention/appcenter/docker.py", line 457, in pull
    self.setup_docker_files()
  File "%PY2.7%/univention/appcenter/docker.py", line 465, in setup_docker_files
    self._setup_yml(recreate=True)
  File "%PY2.7%/univention/appcenter/docker.py", line 509, in _setup_yml
    network = self._get_app_network()
  File "%PY2.7%/univention/appcenter/docker.py", line 419, in _get_app_network
    docker0_net = IPv4Network(ucr_get('appcenter/docker/compose/network', '***.***.***.***/16'))
  File "%PY2.7%/ipaddr.py", line 1336, in __init__
    self._ip = self._ip_int_from_string(addr[0])
  File "%PY2.7%/ipaddr.py", line 1091, in _ip_int_from_string
    raise AddressValueError(ip_str)
AddressValueError: ***.***.***.***.***

(5 numbers in IPv4, not 4)