Bug 44484 - UNAVAILABLE not handled in AppCenter
UNAVAILABLE not handled in AppCenter
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - 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: 2017-04-27 12:37 CEST by Florian Best
Modified: 2019-05-28 11:47 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
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.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019052421000292, 2017040821000103, 2017111721000323
Bug group (optional): 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-04-27 12:37:10 CEST
UCS Version: 4.1-4 errata408 (Vahr)

Die Ausführung des Kommandos appcenter/get ist fehlgeschlagen:
  File "/usr/lib/python2.7/dist-packages/
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 860, in _apply_method_s
    return func(self,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 553, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 465, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 469, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
UNAVAILABLE: {'desc': 'Server is unavailable'}
Comment 1 Johannes Keiser univentionstaff 2017-11-28 17:56:37 CET
Reported again: Version: 4.2-2 errata222 (Lesum)

Die Ausführung des Kommandos apps/get 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/protocol/session.py", line 992, in handle
    self.initalize_processor(request)
  File "%PY2.7%/univention/management/console/protocol/session.py", line 1001, in initalize_processor
    self.processor.set_credentials(**self.__credentials)
  File "%PY2.7%/univention/management/console/protocol/session.py", line 172, in set_credentials
    self._reload_acls_and_permitted_commands()
  File "%PY2.7%/univention/management/console/protocol/session.py", line 176, in _reload_acls_and_permitted_commands
    self._reload_acls()
  File "%PY2.7%/univention/management/console/protocol/session.py", line 181, in _reload_acls
    self.acls = LDAP_ACLs(self.lo, self._username, ucr['ldap/base'])
  File "%PY2.7%/univention/management/console/acl.py", line 352, in __init__
    self._read_from_ldap()
  File "%PY2.7%/univention/management/console/acl.py", line 384, in _read_from_ldap
    policy = self._get_policy_for_dn(gDN)
  File "%PY2.7%/univention/management/console/acl.py", line 361, in _get_policy_for_dn
    policy = self.lo.getPolicies(dn, policies=[], attrs={}, result={}, fixedattrs={})
  File "%PY2.7%/univention/admin/uldap.py", line 459, in getPolicies
    return self.lo.getPolicies(dn, policies, attrs, result, fixedattrs)
  File "%PY2.7%/univention/uldap.py", line 340, in getPolicies
    self._merge_policy(policy_dn, obj_dn, object_classes, result)
  File "%PY2.7%/univention/uldap.py", line 356, in _merge_policy
    pattrs = self.get(policy_dn)
  File "%PY2.7%/univention/uldap.py", line 259, in get
    result = self.lo.search_s(dn, ldap.SCOPE_BASE, '(objectClass=*)', attr)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 559, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 918, in search_ext_s
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 860, in _apply_method_s
    return func(self,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 553, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 465, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 469, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
UNAVAILABLE: {'desc': 'Server is unavailable'}
Comment 2 Johannes Keiser univentionstaff 2019-05-28 11:47:19 CEST
Reported again: Version: 4.4-0 errata113 (Blumenthal)

Remark: Step 1 - install Server
Step 2 - deinstall Server
step 3 - install Server

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

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 260, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/protocol/session.py", line 993, in handle
    self.initalize_processor(request)
  File "%PY2.7%/univention/management/console/protocol/session.py", line 1002, in initalize_processor
    self.processor.set_credentials(**self.__credentials)
  File "%PY2.7%/univention/management/console/protocol/session.py", line 172, in set_credentials
    self._reload_acls_and_permitted_commands()
  File "%PY2.7%/univention/management/console/protocol/session.py", line 176, in _reload_acls_and_permitted_commands
    self._reload_acls()
  File "%PY2.7%/univention/management/console/protocol/session.py", line 181, in _reload_acls
    self.acls = LDAP_ACLs(self.lo, self._username, ucr['ldap/base'])
  File "%PY2.7%/univention/management/console/acl.py", line 352, in __init__
    self._read_from_ldap()
  File "%PY2.7%/univention/management/console/acl.py", line 384, in _read_from_ldap
    policy = self._get_policy_for_dn(gDN)
  File "%PY2.7%/univention/management/console/acl.py", line 361, in _get_policy_for_dn
    policy = self.lo.getPolicies(dn, policies=[], attrs={}, result={}, fixedattrs={})
  File "%PY2.7%/univention/admin/uldap.py", line 820, in getPolicies
    return self.lo.getPolicies(dn, policies, attrs, result, fixedattrs)
  File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 525, in getPolicies
    self._merge_policy(policy_dn, obj_dn, object_classes, result)
  File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 550, in _merge_policy
    pattrs = self.get(policy_dn)
  File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 383, in get
    result = self.lo.search_s(dn, ldap.SCOPE_BASE, '(objectClass=*)', attr)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 597, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 993, in search_ext_s
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 931, in _apply_method_s
    return func(self,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 591, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 503, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 507, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
UNAVAILABLE: {'desc': 'Server is unavailable'}

Role: domaincontroller_master