Univention Bugzilla – Bug 40875
EOFError when loading appcenter cache
Last modified: 2016-03-17 14:28:55 CET
Execution of command 'apps/get' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/apps/__init__.py", line 60, in get app = AppManager.find(application) File "%PY2.7%/univention/appcenter/app.py", line 1024, in find apps = cls.get_all_apps_with_id(app_id) File "%PY2.7%/univention/appcenter/app.py", line 1015, in get_all_apps_with_id for app in cls._get_every_single_app(): File "%PY2.7%/univention/appcenter/app.py", line 970, in _get_every_single_app cls._cache = load(fd) EOFError
4.1-1 errata125 (Vahr)
Maybe during upgrade of the appcenter package because the cache file is removed in the postinst?
Reproduce: pkill -f appcenter; rm /var/cache/univention-appcenter/.apps.en.pkl; touch /var/cache/univention-appcenter/.apps.en.pkl;
Current workaround: rm /var/cache/univention-appcenter/.*.pkl
Created attachment 7525 [details] patch
univention-appcenter (5.0.20-21): r68034 | Bug #40875: fix EOFError if pickle cache file is empty univention-appcenter.yaml: r68036 | YAML Bug #40754 Bug #40875
I am able to reproduce it. With the latest version, it is gone. But the error seems to be Pickle related, this is not an issue with the new JSON cache.
Reported again, 4.1-1 errata126 (Vahr)
<http://errata.software-univention.de/ucs/4.1/130.html>