Sometimes the certificate check of the system diagnostic module runs into locking problems and produces this traceback as "Problem": > Problem: Überprüfe Gültigkeit der SSL Zertifikate > > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/__init__.py", line 263, in execute > result = execute(umc_module, **kwargs) > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 290, in run > all_certificates)) > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 271, in verify_from_master > for error in verifier.verify_root(): > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 202, in verify_root > for error in self.verify(self.root_cert_path): > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 206, in verify > for error in self._verify_timestamps(cert_path): > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 171, in _verify_timestamps > valid_from = self.parse_generalized_time(cert.get_notBefore()) > File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 141, in parse_generalized_time > date = datetime.datetime.strptime(sans_mircoseconds, date_format) > ImportError: Failed to import _strptime because the import lockis held by another thread. > Univention Support Database - Erneuern der TLS/SSL-Zertifikate Running the check again usually helps.
Also reported in https://help.univention.com/t/system-fehlerdiagnose-uberprufe-gultigkeit-der-ssl-zertifikate/7525
Frequently seen in internal test environments. I increase "Who will be affected..."
*** Bug 46074 has been marked as a duplicate of this bug. ***
Problem: strptime is used/imported in a thread which prevents the thread for the diagnostic module to use it as well. Upstream bug report: https://bugs.python.org/issue7980 How to reproduce: 1) Login 2) Logout 3) Login 4) Open diagnostic module Workaround: Add "import _strptime" before using threads. management/univention-management-console/src/univention/management/console/modules/__init__.py seems to work.
I also had this bug in version 4.2, but not in version 4.3 anymore.
(In reply to b.reese from comment #5) > I also had this bug in version 4.2, but not in version 4.3 anymore. Thanks This was fixed in 4.3 in bug 46231. *** This bug has been marked as a duplicate of bug 46231 ***