Univention Bugzilla – Bug 39302
TypeError in top/query
Last modified: 2015-10-01 14:00:22 CEST
Execution of command 'top/query' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/modules/__init__.py", line 176, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 188, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/top/__init__.py", line 69, in query listEntry['command'] = ' '.join(process.cmdline) TypeError: can only join an iterable Version: 4.0-1 errata216 (Walle)
Created attachment 7155 [details] patch
2015-09-09-univention-management-console-module-top.yaml: r63547 | YAML Bug #39302 univention-management-console-module-top (4.1.0-6): r63545 | Bug #39302: fix KeyError in top/query univention-management-console-module-top (5.0.0-1): r63546 | Bug #39302: fix KeyError in top/query
As discussed I it seems that psutil have changed the api. So some attributes of a process are now functions instead of lists. This explains the TypeError.
API changes are documented here: https://github.com/giampaolo/psutil/blob/master/HISTORY.rst The new version is able to interact with both, psutil 0.9 and 2.0, 2.2, 3.0.
(In reply to Florian Best from comment #4) > API changes are documented here: > https://github.com/giampaolo/psutil/blob/master/HISTORY.rst > > The new version is able to interact with both, psutil 0.9 and 2.0, 2.2, 3.0. As requested the psutil versions from above were checked. Worked fine for every release with an API change. ucs-4.0-3 OK - debian changelog OK - yaml file ucs-4.1 OK - debian changelog
<http://errata.software-univention.de/ucs/4.0/318.html>