Bug 36561 - Traceback: "Connection reset by peer" on network reconfiguration not handled
Traceback: "Connection reset by peer" on network reconfiguration not handled
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-4-errata
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on: 32818
Blocks: 28670 33091 37036 37167
  Show dependency treegraph
 
Reported: 2014-11-11 12:36 CET by Florian Best
Modified: 2014-12-03 17:15 CET (History)
8 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):
Max CVSS v3 score:


Attachments
patch (1.53 KB, patch)
2014-11-11 12:37 CET, 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 2014-11-11 12:36:26 CET
The fix had a side effect (socket is defined twice):

08.11.14 16:54:44.041  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-module", line 119, in <module>
    notifier.loop()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 284, in loop
    step()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 271, in step
    not __sockets[ cond ][ fd ]( sock_obj ):
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/modserver.py", line 151, in _recv
    except socket.error, ex:
AttributeError: '_socketobject' object has no attribute 'error'


+++ This bug was initially created as a clone of Bug #32818 +++

# tail -f /var/log/univention/management-console-module-setup.log
08.10.13 11:23:27.939  PROTOCOL    ( INFO    ) : Sending UMCP RESPONSE 138122420793716-1
08.10.13 11:23:28.027  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-module", line 112, in <module>
    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/modserver.py", line 129,
 in _recv
    data = socket.recv( RECV_BUFFER_SIZE )
error: [Errno 104] Connection reset by peer

# tail /var/log/univention/management-console-server.log
08.10.13 11:23:26.539  SSL         ( WARN    ) : SSL error in _receive: [('SSL routines', 'SSL23_READ', 'ssl handsha
08.10.13 11:23:27.936  DEBUG_INIT
08.10.13 11:23:27.936  MAIN        ( PROCESS ) : Stopping UMC server ...
08.10.13 11:23:27.937  MAIN        ( WARN    ) : Shutting down all open connections
08.10.13 11:23:27.947  MAIN        ( PROCESS ) : Starting UMC server ...
08.10.13 11:23:28.266  MAIN        ( PROCESS ) : Server started

# tail /var/log/univention/management-console-web-server.log
08.10.13 11:14:06.499  MAIN        ( PROCESS ) : SessionClient(0x2b88390): _authenticated: success=True  status=200  message=OK, operation successful
08.10.13 11:23:28.124  MAIN        ( PROCESS ) : UMCP_Dispatcher: check_queue: invalid session: sessionid='47bf040b-e94b-4291-8ca1-33c1a0702eb8'
08.10.13 11:23:28.124  MAIN        ( PROCESS ) : CPCommand (192.168.0.191:60232) response status code: 401
08.10.13 11:23:28.124  MAIN        ( PROCESS ) : CPCommand (192.168.0.191:60232) response message: None
08.10.13 11:23:28.124  MAIN        ( PROCESS ) : CPCommand (192.168.0.191:60232) response result: None
08.10.13 11:23:28.225  MAIN        ( WARN    ) : SessionClient(0x2b88a50): connection to UMC server failed
08.10.13 11:23:28.225  MAIN        ( PROCESS ) : Failed to create UMC connection: Connection failed
08.10.13 11:23:28.225  MAIN        ( PROCESS ) : CPRoot/auth: username: None, status code: 401
08.10.13 11:23:28.341  DEBUG_INIT
08.10.13 11:23:28.341  MAIN        ( PROCESS ) : Stopping UMC web server ...
08.10.13 11:23:28.343  MAIN        ( PROCESS ) : The UMC web server is still running. Will wait for 5 seconds
08.10.13 11:23:28.844  MAIN        ( PROCESS ) : Starting UMC web server ...

Browser is stuck in
  Generating SSL certificate
  93%
Comment 1 Florian Best univentionstaff 2014-11-11 12:37:28 CET
Created attachment 6339 [details]
patch

Patch attached.
Comment 2 Florian Best univentionstaff 2014-11-20 18:11:24 CET
Tagging to errata3.2-4 as this was introduces by errata 238 which has therefore no effect.
Comment 3 Florian Best univentionstaff 2014-11-20 19:08:06 CET
Package: univention-management-console
Version: 7.1.63-2.837.201411201850
User: fbest
Branch: ucs_4.0-0
Scope: errata4.0-0
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2014-11-25 20:58:52 CET
@Florian @Stefan: 
So the fix is only provided for UCS 4? Has this already been discussed?
Comment 5 Florian Best univentionstaff 2014-11-26 10:46:53 CET
(In reply to Sönke Schwardt-Krummrich from comment #4)
> @Florian @Stefan: 
> So the fix is only provided for UCS 4? Has this already been discussed?

hmm? I commited it also to 3.2-4 and created a YAML there. Sorry the last comment forgot to say this.
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2014-11-26 13:52:28 CET
OK: code change
OK: functionality
OK: YAML
Comment 7 Moritz Muehlenhoff univentionstaff 2014-12-03 14:49:08 CET
http://errata.univention.de/ucs/3.2/245.html