Bug 52324 - updater-statistics cronjob doesn't handle SERVER_DOWN
updater-statistics cronjob doesn't handle SERVER_DOWN
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 55499
Blocks:
  Show dependency treegraph
 
Reported: 2020-11-07 19:37 CET by Florian Best
Modified: 2022-12-16 12:18 CET (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:
Flags outvoted (downgraded) after PO Review:
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 Florian Best univentionstaff 2020-11-07 19:37:34 CET
Seen on a customer system:

The cronjob send a mail to root:
/usr/share/univention-updater/updater-statistics > /dev/zero

Traceback (most recent call last):
   File "/usr/share/univention-updater/updater-statistics", line 114, in <module>
      main()
   File "/usr/share/univention-updater/updater-statistics", line 108, in main
      'updater/statistics': encode_additional_info(users=get_users(), role=get_role()),
   File "/usr/share/univention-updater/updater-statistics", line 100, in get_users
      lo, _ = getReadonlyAdminConnection()
   File "/usr/share/univention-updater/updater-statistics", line 88, in getReadonlyAdminConnection
      lo, position = univention.admin.uldap.getAdminConnection()
   File "/usr/lib/python2.7/dist-packages/univention/admin/uldap.py", line 166, in getAdminConnection
      lo = univention.uldap.getAdminConnection(start_tls, decode_ignorelist=decode_ignorelist)
   File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 121, in getAdminConnection
      return access(host=ucr['ldap/master'], port=port, base=ucr['ldap/base'], binddn='cn=admin,' + ucr['ldap/base'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist, reconnect=reconnect)
   File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 283, in __init__
      self.__open(ca_certfile)
   File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 367, in __open
      self.__starttls()
   File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 207, in _decorated
      return func(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/univention/uldap.py", line 381, in __starttls
      self.lo.start_tls_s()
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 954, in start_tls_s
      res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 935, in _apply_method_s
      self.reconnect(self._uri,retry_max=self._retry_max,retry_delay=self._retry_delay)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 911, in reconnect
      raise e
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}