Univention Bugzilla – Bug 51508
Start UMC-Server components with Python 3
Last modified: 2021-05-25 15:58:40 CEST
The UMC scripts, servers should by default run with Python 3 in UCS 5.
univention-management-console (12.0.0-2) | Bug #51508: execute everything with Python 3 changelog-5.0-0.xml | Changelog Bug #51508
Another error occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 967, in _authentication_finished2 self.initalize_processor(request) File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 1009, in initalize_processor self.processor.set_credentials(**self.__credentials) File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 177, in set_credentials self._reload_acls_and_permitted_commands() File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 181, in _reload_acls_and_permitted_commands self._reload_acls() File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 186, in _reload_acls self.acls = LDAP_ACLs(self.lo, self._username, ucr['ldap/base']) File "/usr/lib/python3/dist-packages/univention/management/console/acl.py", line 367, in __init__ self._read_from_ldap() File "/usr/lib/python3/dist-packages/univention/management/console/acl.py", line 407, in _read_from_ldap self.acls.sort(key=getvals) TypeError: '<' not supported between instances of 'dict' and 'dict'
The UMC-Server now runs with Python 3: univention-ucs-translation-template (7.0.0-3) eaee95b12938 | Bug #51508: fix python 3 compatibility univention-management-console (12.0.6-4) 72af9204bee0 | Bug #51508: fix sorting ACL'S d230a6e6b0ec | Bug #51508 fix error in setup_saml_sp.py: c498682aa288 | Bug #51508: migrate UMC listener to Python 3 a297a9512469 | Bug #51508 UMC: enhance log output 64e3966060c9 | Bug #51508 UMC: inspect.getargspec is deprecated 94d27681dbb3 | Bug #51508 UMC: Fix TypeError: '<' not supported between instances of 'str' and 'int' db5dc393a69b | Bug #51508 UMC: execute everything with Python 3 e55a4f632777 | Bug #51508 UMC: Fix stopping UMC-Server during startup 68151b19bdbf | Bug #51508 UMC-Server: enhance debug logging during authentication changelog-5.0-0.xml ecdcc74a4ecb | Changelog Bug #51508
verified: - UMC Server is started with python3 ps aufx | grep "/usr/sbin/univention-management-console-server start" root 14054 0.0 0.0 6572 884 pts/2 S+ 15:02 0:00 \_grep /usr/sbin/univention-management-console-server start root 23681 0.0 3.0 238184 61288 ? S 11:35 0:02 /usr/bin/python3 /usr/sbin/univention-management-console-server start - changelog entry exists in doc/changelog/changelog-5.0-0.xml
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".