Univention Bugzilla – Bug 49669
No timeout for app upgrade check - blocks all updates
Last modified: 2019-06-18 09:50:30 CEST
On a UCS 4.4 Errata 147 system that needs a reboot "docker ps" takes forever (reasons unknown). "univention-upgrade" tries to identify App upgrades; the check includes running a "docker ps". "univention-upgrade" waits forever for "docker ps". As this blocks all other upgrade processes both "univention-upgrade" and the UMC module are blocked. Traceback if "univention-upgrade" is interrupted with Ctrl-C: # univention-upgrade Starting univention-upgrade. Current UCS version is 4.4-0 errata147 Checking for local repository: none Checking for package updates: none Checking for app updates: ^C Traceback (most recent call last): File "/usr/sbin/univention-upgrade", line 481, in <module> main() File "/usr/sbin/univention-upgrade", line 421, in main do_update(options) File "/usr/sbin/univention-upgrade", line 444, in do_update update_available = performUpdate(options, checkForUpdates=options.check, silent=False) File "/usr/sbin/univention-upgrade", line 140, in performUpdate if func(options, checkForUpdates, silent): File "/usr/sbin/univention-upgrade", line 271, in do_app_updates app_upgrade_search.call() File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call return obj.call_with_namespace(namespace) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/upgrade_search.py", line 60, in main upgrade_available = self._check_for_upgrades(app) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_upgrade_search.py", line 47, in _check_for_upgrades if not docker.is_running(): File "/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py", line 232, in is_running return self._find_container(only_running=True) File "/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py", line 237, in _find_container out = ps(only_running=only_running) File "/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py", line 118, in ps return check_output(args) File "/usr/lib/python2.7/subprocess.py", line 213, in check_output output, unused_err = process.communicate() File "/usr/lib/python2.7/subprocess.py", line 471, in communicate stdout = _eintr_retry_call(self.stdout.read) File "/usr/lib/python2.7/subprocess.py", line 121, in _eintr_retry_call return func(*args) KeyboardInterrupt
FYI: the root cause of this issue has been solved by rebooting the machine.