Bug 45692 - appcenter/query: ldapError: Server is unavailable
appcenter/query: ldapError: Server is unavailable
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on: 47926
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-10 14:59 CET by Florian Best
Modified: 2019-01-03 07:20 CET (History)
3 users (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?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.057
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018010321000429, 2017110221000691, 2017111621000861
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 2017-11-10 14:59:10 CET
Version: 4.2-2 errata209 (Lesum)

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

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 250, 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 199, in query
    info = domain.to_dict(apps)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 98, in to_dict
    hosts = self.get_appcenter_hosts(lo, pos)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 80, in get_appcenter_hosts
    objs = search_objects('computers/%s' % role, lo, pos)
  File "%PY2.7%/univention/appcenter/udm.py", line 115, in search_objects
    module = _get_module(module, lo, pos)
  File "%PY2.7%/univention/appcenter/udm.py", line 64, in _get_module
    udm_modules.init(lo, pos, mod)
  File "%PY2.7%/univention/admin/modules.py", line 136, in init
    update_extended_attributes(lo, module, position)
  File "%PY2.7%/univention/admin/modules.py", line 267, in update_extended_attributes
    for dn, attrs in lo.search(base=position.getDomainConfigBase(),
filter=filter_format('(&(objectClass=univentionUDMProperty)(univentionUDMPropertyModule=%s)(univentionUDMPropertyVersion=2))', [name(module)])):
  File "%PY2.7%/univention/admin/uldap.py", line 437, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Server is unavailable
Comment 1 Johannes Keiser univentionstaff 2017-11-29 12:25:30 CET
Reported again:  Version: 4.2-2 errata222 (Lesum)

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

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 250, 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 199, in query
    info = domain.to_dict(apps)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 104, in to_dict
    app_ldap_objects = search_objects('appcenter/app', lo, pos)
  File "%PY2.7%/univention/appcenter/udm.py", line 120, in search_objects
    objs = module.lookup(None, lo, filter_str, base=base)
  File "%PY2.7%/univention/admin/handlers/appcenter/app.py", line 373, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "%PY2.7%/univention/admin/uldap.py", line 437, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Server is unavailable
Comment 2 Johannes Keiser univentionstaff 2018-01-12 17:55:08 CET
Version: 4.2-3 errata256 (Lesum)

Remark: Install Kopano Webapp after installing Kopano Core

Execution of command 'appcenter/query' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 250, 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 199, in query
    info = domain.to_dict(apps)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 98, in to_dict
    hosts = self.get_appcenter_hosts(lo, pos)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 80, in get_appcenter_hosts
    objs = search_objects('computers/%s' % role, lo, pos)
  File "%PY2.7%/univention/appcenter/udm.py", line 124, in search_objects
    udm_objects.open(obj)
  File "%PY2.7%/univention/admin/objects.py", line 104, in open
    object.open()
  File "%PY2.7%/univention/admin/handlers/computers/domaincontroller_slave.py", line 413, in open
    self.nagios_open()
  File "%PY2.7%/univention/admin/nagios.py", line 180, in nagios_open
    self['nagiosServices'] = self.nagiosGetAssignedServices()
  File "%PY2.7%/univention/admin/nagios.py", line 145, in nagiosGetAssignedServices
    base=self.position.getDomain(), attr=[])
  File "%PY2.7%/univention/admin/uldap.py", line 437, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Server is unavailable
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:20:15 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.