Univention Bugzilla – Bug 37036
Traceback: "Connection reset by peer" on network reconfiguration not handled
Last modified: 2014-12-04 12:21:02 CET
4.0 +++ This bug was initially created as a clone of Bug #36561 +++ 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%
adjusted bug number in YAML file.
Was able to reproduce the traceback without the fix on a UCS 4.0-0 e0 system: - log in into UMC - open app center module - pkill -f univention-management-console-server → traceback is printed into management-console-module-appcenter.log Not reproducible if the errata package has been installed: 25.11.14 15:06:53.547 DEBUG_INIT 25.11.14 15:06:54.111 MODULE ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/4.0/index.json.gz"... 25.11.14 15:06:54.213 MODULE ( PROCESS ) : 0 file(s) are new 25.11.14 15:06:54.352 MODULE ( PROCESS ) : Found hosts: ['master40'] 25.11.14 15:06:54.365 MODULE ( PROCESS ) : Found hosts: ['backup41'] 25.11.14 15:06:54.377 MODULE ( PROCESS ) : Found hosts: ['slave42'] 25.11.14 15:06:54.390 MODULE ( PROCESS ) : Found hosts: ['member43'] 25.11.14 15:07:02.620 MODULE ( ERROR ) : Failed connection: ECONNRESET 25.11.14 15:07:02.620 MAIN ( WARN ) : Shutting down all open connections OK: code change OK: functionality OK: YAML file
http://errata.univention.de/ucs/4.0/3.html