Univention Bugzilla – Bug 43713
EBADF 'Bad file descriptor' not caught in console/protocol/client.py
Last modified: 2017-04-04 18:29:35 CEST
I had the following traceback: File "/usr/sbin/univention-management-console-server", line 243, in <module> umc_daemon.do_action() File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 186, in do_action func(self) File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 131, in _start self.app.run() File "/usr/sbin/univention-management-console-server", line 210, in run notifier.loop() File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 286, in loop step() 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/client.py", line 195, in _resend bytessent = sock.send(data) File "/usr/lib/python2.7/socket.py", line 170, in _dummy raise error(EBADF, 'Bad file descriptor') error: [Errno 9] Bad file descriptor I think there is a typo in console/protocol/client.py: # ENOEXEC: bad file descriptor -> EBADF?
Did this cause a crash of the UMC-Server?
yes
univention-management-console (9.0.45-2): r77338 | Bug #43713: handle EBADF in client
r77340 | Changelog Bug #43713
What I tested: I couldn't reliable reproduce the traceback to check the fix. But the fix looks good and the umc still works -> Verified Package: univention-management-console Version: 9.0.45-2A~4.2.0.201703031659 Branch: ucs_4.2-0
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".