Bug 50534

Summary: univention-directory-reports-cleanup traceback & mails from cron
Product: UCS Reporter: Moritz Bunkus <m.bunkus>
Component: UMC - ReportsAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED DUPLICATE QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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:

Description Moritz Bunkus 2019-11-22 10:22:37 CET
Since upgrading the package univention-management-console-module-udm to version to 9.0.15-3A~4.4.0.201910231536 I regularly receive mails from cron with a Python traceback:

Traceback (most recent call last):
  File "/usr/sbin/univention-directory-reports-cleanup", line 46, in <module>
    for f in os.listdir(dirname):
OSError: [Errno 2] No such file or directory: '/usr/share/univention-management-console-module-udm'

Simply executing /usr/sbin/univention-directory-reports-cleanup shows the same backtrace.

How to reproduce:

1. Install a fresh UCS system & update it.
2. Run /usr/sbin/univention-directory-reports-cleanup

Version: 4.4-2 Errata 374
Comment 1 Florian Best univentionstaff 2019-11-22 10:23:38 CET
Thanks, this was already reported and fixed in Bug #50497, which is not released yet.
Workaround: mkdir /usr/share/univention-management-console-module-udm.

*** This bug has been marked as a duplicate of bug 50497 ***