Bug 41070

Summary: UMC-Server crashes after authentication: KeyError: <socket>
Product: UCS Reporter: Florian Best <best>
Component: UMC (Generic)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Alexander Kläser <klaeser>
Severity: normal    
Priority: P5 CC: gohmann
Version: UCS 4.1Flags: best: Patch_Available+
Target Milestone: UCS 4.1-2-errata   
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): Error handling
Max CVSS v3 score:
Attachments: patch

Description Florian Best univentionstaff 2016-04-19 08:52:31 CEST
The UMC-Server crashed in our internal environment (UCS 4.1-1 errata153):

19.04.16 07:52:53.521  AUTH        ( INFO    ) : Authentication for 'mrehberg' was successful
19.04.16 07:52:53.570  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-server", line 226, in <module>
    umc_daemon.do_action()
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 186, in do_action
    func(self)
  File "/usr/sbin/univention-management-console-server", line 153, in _restart
    self._start()
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 131, in _start
    self.app.run()
  File "/usr/sbin/univention-management-console-server", line 203, in run
    notifier.loop()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 286, in loop
    step()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 273, in step
    not __sockets[ cond ][ fd ]( sock_obj ):
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/server.py", line 212, in _do_send
    state = self.__states[socket]
KeyError: <socket._socketobject object at 0x539b9f0>
Comment 1 Florian Best univentionstaff 2016-04-19 08:58:50 CEST
Created attachment 7597 [details]
patch
Comment 2 Florian Best univentionstaff 2016-05-03 14:56:23 CEST
demo.univention.de just crashed due to this error.
Comment 3 Florian Best univentionstaff 2016-06-23 19:52:53 CEST
univention-management-console.yaml:
r70595 | YAML Bug #41424, Bug #41423, Bug #41070

univention-management-console (8.0.28-15):
r70592 | Bug #41070: prevent crashing of server after authentication
Comment 4 Alexander Kläser univentionstaff 2016-07-15 16:02:29 CEST
Changes: OK, code review as the bug cannot be reproduced easily
YAML file: OK

→ VERIFIED
Comment 5 Janek Walkenhorst univentionstaff 2016-07-21 15:16:14 CEST
<http://errata.software-univention.de/ucs/4.1/212.html>