Bug 55439 - updater/updates/check: apt.cache.LockFailedException: Failed to lock directory
updater/updates/check: apt.cache.LockFailedException: Failed to lock directory
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-11-18 14:13 CET by Mika Westphal
Modified: 2022-11-18 14:14 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022111821000188
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mika Westphal univentionstaff 2022-11-18 14:13:27 CET
Version: 5.0-2 errata339

Error:
Internal server error during "updater/updates/check".
Request: updater/updates/check

Traceback (most recent call last):
  File "%PY3%/apt/cache.py", line 90, in __enter__
    return self._lock.__enter__()
apt_pkg.Error: E:Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 344, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 247, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/updater/__init__.py", line 305, in updates_check
    apt.update()
  File "%PY3%/apt/cache.py", line 567, in update
    with _WrappedLock(apt_pkg.config.find_dir("Dir::State::Lists")):
  File "%PY3%/apt/cache.py", line 93, in __enter__
    (self._path, e))
apt.cache.LockFailedException: Failed to lock directory /var/lib/apt/lists/: E:Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)

Role: domaincontroller_master