Univention Bugzilla – Bug 35003
Traceback in stopped_notifier() if any process dies
Last modified: 2014-08-27 17:01:40 CEST
A ucs-test script throwed the following traceback. Looks like a process died at the moment, stopped_notifier() was trying to determine if the notifier is running. Traceback (most recent call last): File "/usr/share/ucs-school-import/scripts/create_ou", line 3176, in <module> with stopped_notifier(): File "/usr/lib/python2.6/contextlib.py", line 16, in __enter__ return self.gen.next() File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/utils.py", line 156, in stopped_notifier if process.name == service_name: File "/usr/lib/pymodules/python2.6/psutil/__init__.py", line 205, in name self.deproxy() File "/usr/lib/pymodules/python2.6/psutil/__init__.py", line 180, in deproxy self._procinfo = ProcessInfo(*_platform_impl.get_process_info(self._procinfo.pid)) File "/usr/lib/pymodules/python2.6/psutil/_pslinux.py", line 108, in wrapper return method(self, pid, *args, **kwargs) File "/usr/lib/pymodules/python2.6/psutil/_pslinux.py", line 123, in wrapper return callable(*args, **kwargs) File "/usr/lib/pymodules/python2.6/psutil/_pslinux.py", line 162, in get_process_info cmdline = [x for x in f.read().split('\x00') if x] IOError: [Errno 3] No such process Maybe a try-except around "if process.name == service_name:" is already sufficient as fix.
The suggested solution is reasonable and has been implemented. Changelog added.
Changelog: Ok Changeset: Ok Tested and worked
UCS@school 3.2 R2 v2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html If this error occurs again, please use "Clone This Bug".