Bug 49652 - app_attributes "Can't contact LDAP server" traceback spams listener.log
app_attributes "Can't contact LDAP server" traceback spams listener.log
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: 2019-06-14 12:15 CEST by Felix Botner
Modified: 2019-06-14 12:15 CEST (History)
0 users

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:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2019-06-14 12:15:33 CEST
app_attributes: Gathering AppAttributes...
14.06.19 04:02:30.290  LISTENER    ( ERROR   ) : app_attributes: dn='univentionAppID=z3d1neu4yh_2,cn=z3d1neu4yh,cn=apps,cn=univention,dc=autotest092,dc=local' command='m'
    old={'univentionAppInstalledOnServer': ['backup092.autotest092.local'], 'entryCSN': ['20190614020159.178209Z#000000#000#000000'], 'entryDN': ['univentionAppID=z3d1neu4yh_2,cn=z3d1neu4yh,cn=apps,cn=univention,dc=autotest092,dc=local'], 'objectClass': ['univentionApp', 'top', 'univentionObject'], 'univentionAppCategory': ['System services'], 'univentionObjectType': ['appcenter/app'], 'hasSubordinates': ['FALSE'], 'univentionAppName': ['[en] z3d1neu4yh'], 'modifiersName': ['cn=backup092,cn=dc,cn=computers,dc=autotest092,dc=local'], 'modifyTimestamp': ['20190614020159Z'], 'univentionAppDefaultPackages': ['mb8p6oa3bn'], 'entryUUID': ['23610842-2294-1039-9029-a5b537fe5b38'], 'createTimestamp': ['20190614020159Z'], 'univentionAppID': ['z3d1neu4yh_2'], 'structuralObjectClass': ['univentionApp'], 'subschemaSubentry': ['cn=Subschema'], 'univentionAppVersion': ['2'], 'creatorsName': ['cn=backup092,cn=dc,cn=computers,dc=autotest092,dc=local'], 'univentionAppServerRole': ['domaincontroller_master', 'memberserver', 'domaincontroller_slave', 'domaincontroller_backup']}
    new={'hasSubordinates': ['FALSE'], 'entryCSN': ['20190614020230.280593Z#000000#000#000000'], 'entryDN': ['univentionAppID=z3d1neu4yh_2,cn=z3d1neu4yh,cn=apps,cn=univention,dc=autotest092,dc=local'], 'objectClass': ['univentionApp', 'top', 'univentionObject'], 'univentionAppCategory': ['System services'], 'univentionObjectType': ['appcenter/app'], 'univentionAppName': ['[en] z3d1neu4yh'], 'modifiersName': ['cn=backup092,cn=dc,cn=computers,dc=autotest092,dc=local'], 'modifyTimestamp': ['20190614020230Z'], 'univentionAppDefaultPackages': ['mb8p6oa3bn'], 'entryUUID': ['23610842-2294-1039-9029-a5b537fe5b38'], 'createTimestamp': ['20190614020159Z'], 'univentionAppID': ['z3d1neu4yh_2'], 'structuralObjectClass': ['univentionApp'], 'subschemaSubentry': ['cn=Subschema'], 'univentionAppVersion': ['2'], 'creatorsName': ['cn=backup092,cn=dc,cn=computers,dc=autotest092,dc=local'], 'univentionAppServerRole': ['domaincontroller_master', 'memberserver', 'domaincontroller_slave', 'domaincontroller_backup']}
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/listener/api_adapter.py", line 150, in _handler
    self._module_handler.modify(dn, old, new, self._saved_old_dn if self._rename else None)
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 198, in modify
    self._write_json_without_some_debug_output()
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 66, in _write_json_without_some_debug_output
    self._write_json()
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 79, in _write_json
    app_objs = search_objects('appcenter/app', self.lo, self.po)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/udm.py", line 126, in search_objects
    objs = module.lookup(None, _lo, str(conj), base=_base)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/appcenter/app.py", line 375, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 764, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Can't contact LDAP server
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/listener/api_adapter.py", line 158, in _handler
    self._module_handler.error_handler(dn, old, new, command, exc_type, exc_value, exc_traceback)
  File "/usr/lib/pymodules/python2.7/univention/listener/api_adapter.py", line 150, in _handler
    self._module_handler.modify(dn, old, new, self._saved_old_dn if self._rename else None)
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 198, in modify
    self._write_json_without_some_debug_output()
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 66, in _write_json_without_some_debug_output
    self._write_json()
  File "/usr/lib/univention-directory-listener/system/app_attributes.py", line 79, in _write_json
    app_objs = search_objects('appcenter/app', self.lo, self.po)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/udm.py", line 126, in search_objects
    objs = module.lookup(None, _lo, str(conj), base=_base)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/appcenter/app.py", line 375, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 764, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
univention.admin.uexceptions.ldapError: Can't contact LDAP server

A lot of these message make the listener.log from the jenknins tests hard to read. Could we just print an error message instead of the traceback?