Univention Bugzilla – Bug 37457
python-notifier crash
Last modified: 2015-05-07 17:41:46 CEST
Trying to fix some other bug by using some python-notifier methods causes me to not being able to fix it this way because there the next error occurs: 19.12.14 18:45:09.545 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.7/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.7/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.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/server.py", line 144, in _receive self._cleanup(socket) File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/server.py", line 351, in _cleanup self.__states[socket].__del__() File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 123, in __del__ self.processor.__del__() File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 279, in __del__ process.__del__() File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 183, in __del__ self.__process.stop() File "/usr/lib/pymodules/python2.7/notifier/popen.py", line 211, in stop cb = Callback( self.__kill, 15 ) NameError: global name 'Callback' is not defined pyflakes popen.py popen.py:35: 'types' imported but unused popen.py:211: undefined name 'Callback' popen.py:229: undefined name 'Callback' popen.py:231: undefined name 'Callback' popen.py:273: undefined name 'Callback' Patch is here, (pull request sent upstream): https://github.com/spaceone/python-notifier/commit/31f6fb21c84395c4f31d8147c323ac23ea758a4c
The UMC-server crash also happened to me in the productive environment now. I did not have much memory in the VM, the garbage collection of the UMC-server triggered this error then.
Happened again on xen12 - same traceback as in comment 0
This was reported in http://forum.univention.de/viewtopic.php?f=56&t=3890&p=14000 with a different traceback: File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 833, in _mod_connect _send_error() File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 825, in _send_error self.__processes[mod.name].__del__() File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 165, in __del__ self.__process.stop() This happens when the UMC-server can't connect to the module process after 200 connection attempts (10 seconds).
Seen this now 3 times in conjunction with docker containers.
(In reply to Florian Best from comment #3) > This was reported in > http://forum.univention.de/viewtopic.php?f=56&t=3890&p=14000 with a > different traceback: > > File > "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session. > py", line 833, in _mod_connect > _send_error() > File > "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session. > py", line 825, in _send_error > self.__processes[mod.name].__del__() > File > "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session. > py", line 165, in __del__ > self.__process.stop() > > This happens when the UMC-server can't connect to the module process after > 200 connection attempts (10 seconds). customer reported that one via Ticket#2015050421000041
python-notifier has been added to our svn in ucs-4.0/ucs-4.0-1/management/python-notifier to easier maintain it. All current patches from dev/patches and github are integrated there. The debian/control file has been converted to UTF-8. YAML: 2015-05-05-python-notifier.yaml Package has been build: Package: python-notifier Version: 0.9.7-2.28.201505051806 Branch: ucs_4.0-0 Scope: errata4.0-1 I could not get dh_python2 working, so it uses still pysupport.
*** Bug 37937 has been marked as a duplicate of this bug. ***
I could reproduce the traceback from comment 3 which worked fine with the latest python-notifier package. Otherwise the diff with crunchy's latest version looks fine. I only spotted a missing adaptation for the current python-notifier version in notifier/version.py.
I cherry-picked that commit. svn r60491.# Package: python-notifier Version: 0.9.7-3.29.201505061934
Changes: OK YAML file: OK → VERIFIED
<http://errata.univention.de/ucs/4.0/188.html>