Bug 37399 - univention-management-console-server is killed after a module process dies
univention-management-console-server is killed after a module process dies
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-1-errata
Assigned To: Sönke Schwardt-Krummrich
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-19 10:04 CET by Ammar Najjar
Modified: 2015-03-25 16:42 CET (History)
5 users (show)

See Also:
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): Cleanup, Error handling
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (1.06 KB, patch)
2014-12-19 11:06 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ammar Najjar univentionstaff 2014-12-19 10:04:39 CET
It seems that "univention-management-console-server" is killed after a module process dies, which is not the desired behavior.

from management-console-server.log:

18.12.14 10:25:08.114  MAIN        ( PROCESS ) : running: ['/usr/sbin/univention-management-console-module', '-m', 'schoolcsvimport', '-s', '/var/run/univention-management-console/22548-1418916308110.socket', '-d', '2', '-l', 'de_DE.UTF-8']
18.12.14 10:25:08.365  SSL         ( WARN    ) : SSL error in _receive: (-1, 'Unexpected EOF'). Probably the socket was closed by the client.
18.12.14 10:25:08.365  MAIN        ( WARN    ) : Socket died (module=schoolwizards)
18.12.14 10:25:08.365  MAIN        ( WARN    ) : Module process schoolwizards died (pid: 29640, exit status: -1, signal: -1)
18.12.14 10:25:08.366  MAIN        ( WARN    ) : Cleaning up requests
18.12.14 10:25:08.366  MAIN        ( WARN    ) : Remove inactivity timer
18.12.14 10:25:08.372  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-server", line 210, in <module>
    umc_daemon.do_action()
  File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 186, in do_action
    func(self)
  File "/usr/sbin/univention-management-console-server", line 142, in _restart
    self._start()
  File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 131, in _start
    self.app.run()
  File "/usr/sbin/univention-management-console-server", line 192, in run
    notifier.loop()
  File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 284, in loop
    step()
  File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 271, in step
    not __sockets[ cond ][ fd ]( sock_obj ):
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 146, in _receive
    self.__states[ socket ].processor.shutdown()
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/session.py", line 249, in shutdown
    for module_name in self.__processes:
RuntimeError: dictionary changed size during iteration
Comment 1 Florian Best univentionstaff 2014-12-19 11:06:42 CET
Created attachment 6558 [details]
patch
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-03-12 10:21:27 CET
This problem is blocking the jenkins tests as the UMC server dies unexpectedly.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-03-13 16:01:49 CET
The attached patch has been applied with a small change.

univention-management-console 7.1.63-13.854.201503131531
YAML: 2015-03-13-univention-management-console.yaml

r58963 | Bug #37399: prevent fatal traceback in UMC session shutdown
r58964 | Bug #37399: added YAML
r58965 | Bug #37399: updated YAML
Comment 4 Florian Best univentionstaff 2015-03-16 09:34:27 CET
It is a followup of Bug #35231.
Comment 5 Florian Best univentionstaff 2015-03-16 10:19:31 CET
OK: reproduced the problem, no followup errors
OK: Code-Review
OK: YAML
Comment 6 Janek Walkenhorst univentionstaff 2015-03-25 16:42:42 CET
<http://errata.univention.de/ucs/4.0/125.html>