Bug 54874 - RuntimeError: dictionary changed size during iteration in UMC-Server
RuntimeError: dictionary changed size during iteration in UMC-Server
Status: RESOLVED DUPLICATE of bug 43633
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
: python3-migration
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-06-15 15:08 CEST by Florian Best
Modified: 2023-06-09 16:58 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Regression
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 2022-06-15 15:08:56 CEST
I saw the following traceback in a customer environment:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 344, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 247, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 975, in _authentication_finished2
    self.processor.set_credentials(**self.__credentials)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 188, in set_credentials
    self.update_module_passwords()
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 398, in update_module_passwords
    for module_name, proc in self.__processes.items():
RuntimeError: dictionary changed size during iteration
Comment 1 Oliver Friedrich univentionstaff 2022-11-08 18:13:56 CET
Occured in my test env, too.

I tried to start the UCS@School-Import-Modul and "sometimes" got the same issue.
Comment 2 Florian Best univentionstaff 2023-06-09 16:58:15 CEST
obsolete by Bug #43633. We changed the architecture w.r.t. updating password in running module processes:
the old way was to send the information when the password was changed.
the new way is to send the credentials along with every request and if they changed the new credentials are used instead.

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