Bug 49669 - No timeout for app upgrade check - blocks all updates
No timeout for app upgrade check - blocks all updates
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-06-18 09:41 CEST by Ingo Steuwer
Modified: 2019-06-18 09:50 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2019-06-18 09:41:03 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
Comment 1 Ingo Steuwer univentionstaff 2019-06-18 09:50:30 CEST
FYI: the root cause of this issue has been solved by rebooting the machine.