Bug 41070 - UMC-Server crashes after authentication: KeyError: <socket>
UMC-Server crashes after authentication: KeyError: <socket>
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-2-errata
Assigned To: Florian Best
Alexander Kläser
Depends on:
  Show dependency treegraph
Reported: 2016-04-19 08:52 CEST by Florian Best
Modified: 2016-07-21 15:16 CEST (History)
1 user (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): Error handling
Max CVSS v3 score:
best: Patch_Available+

patch (986 bytes, patch)
2016-04-19 08:58 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 186, in do_action
  File "/usr/sbin/univention-management-console-server", line 153, in _restart
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 131, in _start
  File "/usr/sbin/univention-management-console-server", line 203, in run
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 286, in loop
  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]
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
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

Comment 5 Janek Walkenhorst univentionstaff 2016-07-21 15:16:14 CEST