Bug 52958 - IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py'
IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/u...
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Sönke Schwardt-Krummrich
: interim-5
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-19 13:29 CET by Florian Best
Modified: 2021-05-25 15:59 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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 2021-03-19 13:29:18 CET
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()
Comment 1 Ingo Steuwer univentionstaff 2021-05-04 14:05:02 CEST
Has no known impact on the system once the update has been finished
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-05-11 18:25:38 CEST
(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
Comment 3 Florian Best univentionstaff 2021-05-25 15:59:46 CEST
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".