Univention Bugzilla – Bug 35396
TypeError: "'NoneType' object is not callable" in <function > _removeHandlerRef at 0x7fcf5c73ecf8> ignored
Last modified: 2014-11-26 06:54:23 CET
(In reply to Florian Best from Bug #35145 comment #4) > while installing univention-management-console-server > → Exception TypeError: "'NoneType' object is not callable" in <function > _removeHandlerRef at 0x7fcf5c73ecf8> ignored The exception is printed out 12 times when calling "univention-management-console-server --help". When i uncomment the following line in univention/management/console/log.py: > self._fallbackLogger.addHandler(fallbackLoggingHandler) the exceptions doesn't occur. +++ This bug was initially created as a clone of Bug #35145 +++ ################################################################### root@master99:~# univention-management-console-server --help Usage: univention-management-console-server [options] Options: -h, --help show this help message and exit -n, --no-daemon if set the process will not fork into the background -p PORT, --port=PORT defines an alternative port number [default 6670] -l LANGUAGE, --language=LANGUAGE defines the language to use [default: de_DE.UTF-8] -d DEBUG, --debug=DEBUG if given than debugging is activated and set to the specified level [default: 2] -L LOGFILE, --log-file=LOGFILE specifies an alternative log file [default: management-console-server] Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef at 0x7fe46577ced8> ignored #########################################################################
/usr/lib/python2.7/logging/__init__.py def _removeHandlerRef(wr): """ Remove a handler reference from the internal cleanup list. """ # This function can be called during module teardown, when globals are # set to None. If _acquireLock is None, assume this is the case and do # nothing. if _acquireLock is not None: _acquireLock() try: if wr in _handlerList: _handlerList.remove(wr) finally: _releaseLock() Seems like _releaseLock has already been deleted (but not yet _acquireLock)? Not sure how to fix this in our code.
This also occurs during umc-server reload with # invoke-rc.d univention-management-console-server reload
*** Bug 36264 has been marked as a duplicate of this bug. ***
I think this is purely cosmetical. Fixed in univention-management-console-module-top 4.1.0-3.33.201410241612 by just initializing the Logger differently (correctly). No changelog required
Sorry, I meant univention-management-console 7.1.55-2.820.201410281100
yep
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".