Bug 50514 - IOError traceback in listener.log: dangling symbolic link to syntax.d/ after migration to dh_python2
Summary: IOError traceback in listener.log: dangling symbolic link to syntax.d/ after ...
Status: RESOLVED WONTFIX
Alias: None
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
Version: UCS 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on: 50495
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-18 16:09 CET by Philipp Hahn
Modified: 2024-06-27 12:10 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Regression
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-11-18 16:09:29 CET
With UCS 4.4-2e350 i am seeing the following error in the listener.log:

18.11.19 15:43:47.690  DEBUG_INIT
18.11.19 15:43:47.700  LISTENER    ( WARN    ) : Notifier/LDAP server is hdmi1.phahn.dev:7389
18.11.19 15:43:47.700  LDAP        ( PROCESS ) : connecting to ldap://hdmi1.phahn.dev:7389
18.11.19 15:43:48.279  ADMIN       ( ERROR   ) : admin.syntax.import_syntax_files: loading '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/univention-virtual-machine-manager-schema.py' failed
18.11.19 15:43:48.280  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 91, in import_syntax_files
    with open(fn, 'r') as fd:
IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/univention-virtual-machine-manager-schema.py'


modules/univention/admin/modules.py:95 update()
modules/univention/admin/syntax.py:76 import_syntax_files()
87 »···»···»···syntax_files = (os.path.join(syntax_d, f) for f in os.listdir(syntax_d) if f.endswith('.py'))


listdir() also returns _dangling_ symbolic links, which exists, because `update-python-modules` had not yet been called when UDL was restarted.

+++ This bug was initially created as a clone of Bug #50495 +++
+++ This bug was initially created as a clone of Bug #50493 +++
Comment 1 Florian Best univentionstaff 2019-11-20 09:43:04 CET
Same reason as Bug #50338 ?
Comment 2 Jan-Luca Kiok univentionstaff 2024-06-27 12:10:22 CEST
This issue has been filed against UCS 4.4.

UCS 4.4 is out of general maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.