Bug 53304 - directory_logger.py listener: RuntimeError: dictionary changed size during iteration
directory_logger.py listener: RuntimeError: dictionary changed size during it...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Jürn Brodersen
: interim-7
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-21 08:53 CEST by Florian Best
Modified: 2021-05-25 16:03 CEST (History)
2 users (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-05-21 08:53:11 CEST
40 times in /var/log/univention/listener.log:

Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/directory_logger.py", line 200, in handler
    filterOutUnchangedAttributes(old_copy, new_copy)
  File "/usr/lib/univention-directory-listener/system/directory_logger.py", line 97, in filterOutUnchangedAttributes
    for key in keylist:
RuntimeError: dictionary changed size during iteration
Comment 1 Florian Best univentionstaff 2021-05-21 13:50:08 CEST
Fixed in:

univention-directory-logger (11.0.3-1)
079f99230e91 | Bug #53304: fix Python 3 error: RuntimeError: dictionary changed size during iteration

I could not find any other problematic for loop.
Comment 2 Jürn Brodersen univentionstaff 2021-05-25 12:49:42 CEST
No more RuntimeErrors -> OK
I didn't analyze every entry but the update seems to have been logged -> OK
logger works after the upgrade -> OK
Comment 3 Florian Best univentionstaff 2021-05-25 16:03:02 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".