Univention Bugzilla – Bug 52958
IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py'
Last modified: 2021-05-25 15:59:46 CEST
During the upgrade to UCS 5.0 on a Memberserver we see the following traceback in the listener.log 19.03.21 01:01:14.229 DEBUG_INIT 19.03.21 01:01:14.264 LISTENER ( WARN ) : Notifier/LDAP server is master076.autotest076.local:7389 19.03.21 01:01:14.264 LDAP ( PROCESS ) : connecting to ldap://master076.autotest076.local:7389 19.03.21 01:01:16.939 ADMIN ( ERROR ) : admin.syntax.import_syntax_files: loading '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py' failed 19.03.21 01:01:16.946 ADMIN ( ERROR ) : admin.syntax.import_syntax_files: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/admin/syntax.py", line 93, in import_syntax_files with io.open(fn, 'rb') as fd: IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py' 19.03.21 01:01:16.949 ADMIN ( ERROR ) : admin.hook.import_hook_files: loading '/usr/lib/pymodules/python2.7/univention/admin/hooks.d/__init__.py' failed 19.03.21 01:01:16.949 ADMIN ( ERROR ) : admin.hook.import_hook_files: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/admin/hook.py", line 55, in import_hook_files with io.open(fn, 'rb') as fd: IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/univention/admin/hooks.d/__init__.py' https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestUpgrade/ws/SambaVersion/no-samba/Systemrolle/member/test/listener.log These exceptions are printed by univention.admin.modules.update(), which imports syntax and hook files. The only module I could find so far which does that is udm_extension.py: # grep modules.update /usr/lib/univention-directory-listener/system/*.py /usr/lib/univention-directory-listener/system/udm_extension.py: udm_modules.update() /usr/lib/univention-directory-listener/system/udm_extension.py: udm_modules.update()
Has no known impact on the system once the update has been finished
(In reply to Florian Best from comment #0) > These exceptions are printed by univention.admin.modules.update(), which > imports syntax and hook files. ACK > The only module I could find so far which does that is udm_extension.py: > # grep modules.update /usr/lib/univention-directory-listener/system/*.py > /usr/lib/univention-directory-listener/system/udm_extension.py: > udm_modules.update() > /usr/lib/univention-directory-listener/system/udm_extension.py: > udm_modules.update() ACK, I could not find any other lines that call this function either. In postup.sh, the listener module udm_extensions is resynced therefore, even if some changes were missed during the update, after the update this is fixed. I had no problems during my update attempt → VERIFIED
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".