Bug 52709 - IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/var/lib/docker/overlay2/.../merged/etc/univention/base.conf.bak.concurrent_1602096112.62'
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/var/lib/docker/o...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-27 15:41 CET by Christian Castens
Modified: 2023-06-20 14:58 CEST (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: 2022022321000186, 2022022221000026, 2020100721000829, 2021042821000862, 2021120521000407, 2022031621000625, 2023051821000027, 2023051621000816
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 Christian Castens univentionstaff 2021-01-27 15:41:19 CET
Version: 4.4-6 errata767 (Blumenthal)

Error:
Interner Server-Fehler in "appcenter/docker/progress".
Request: appcenter/docker/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 158, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 102, in poll
    six.reraise(self.exc_info[1], None, self.exc_info[2])
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 312, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 484, in invoke_docker
    result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/upgrade.py", line 81, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 143, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_upgrade.py", line 126, in _do_it
    self._upgrade_image(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_upgrade.py", line 184, in _upgrade_image
    self._install_new_app(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_upgrade.py", line 69, in _install_new_app
    return Install._do_it(self, app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 114, in _do_it
    if self._install_app(app, args):
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _install_app
    self._start_docker_image(app, hostdn, password, args)
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 272, in _start_docker_image
    configure.call(app=app, autostart=autostart, run_script='no', set_vars=after_image_configuration)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 74, in main
    self._set_config(args.app, set_vars, args)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 59, in _set_config
    super(Configure, self)._set_config(app, set_vars, args)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 111, in _set_config
    self._set_config_via_tool(app, other_settings)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 81, in _set_config_via_tool
    self._set_config_directly(app, set_vars)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 130, in _set_config_directly
    _ucr.save()
  File "%PY2.7%/univention/config_registry/backend.py", line 621, in save
    self.__save_file(filename)
  File "%PY2.7%/univention/config_registry/backend.py", line 608, in __save_file
    reg_file = open(temp_filename, 'w')
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden:
u'/var/lib/docker/overlay2/ac25d322820f229f0ec4698894e311acbb32d2d3f3b06b0290c8cbd8387430b0/merged/etc/univention/base.conf.bak.concurrent_1602096112.62'

Role: domaincontroller_backup
Comment 1 Maximilian Janßen univentionstaff 2021-11-26 10:49:16 CET
reported again:


Version: 4.4-8 errata965 (Blumenthal)

Error: 
Interner Server-Fehler in "appcenter/docker/remote/progress".
Request: appcenter/docker/remote/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 430, in remote_progress
    return client.umc_command('appcenter/docker/progress', {'progress_id': remote_progress_id}).result
  File "%PY2.7%/univention/lib/umc.py", line 444, in umc_command
    return self.request('POST', 'command/%s' % (path,), data, headers)
  File "%PY2.7%/univention/lib/umc.py", line 524, in request
    return self.send(request)
  File "%PY2.7%/univention/lib/umc.py", line 553, in send
    raise HTTPError(request, response, self.hostname)
HTTPError: 591 on ucs-ds-a1.cc.lan (command/appcenter/docker/progress): {u'status': 591, u'message': u'Interner Server-Fehler in "appcenter/docker/progress".', u'location':
u'https://ucs-ds-a1.cc.lan/univention/command'}
Interner Server-Fehler in "appcenter/docker/progress".
Request: appcenter/docker/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 158, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 102, in poll
    six.reraise(self.exc_info[1], None, self.exc_info[2])
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 312, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 491, in invoke_docker
    result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 84, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 143, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 114, in _do_it
    if self._install_app(app, args):
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _install_app
    self._start_docker_image(app, hostdn, password, args)
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 269, in _start_docker_image
    configure.call(app=app, autostart=autostart, run_script='no', set_vars=after_image_configuration)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 74, in main
    self._set_config(args.app, set_vars, args)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 59, in _set_config
    super(Configure, self)._set_config(app, set_vars, args)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 111, in _set_config
    self._set_config_via_tool(app, other_settings)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 81, in _set_config_via_tool
    self._set_config_directly(app, set_vars)
  File "%PY2.7%/univention/appcenter/actions/docker_configure.py", line 130, in _set_config_directly
    _ucr.save()
  File "%PY2.7%/univention/config_registry/backend.py", line 621, in save
    self.__save_file(filename)
  File "%PY2.7%/univention/config_registry/backend.py", line 608, in __save_file
    reg_file = open(temp_filename, 'w')
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden:
u'/var/lib/docker/overlay2/8e1c555db5d242b64a2e492567bb15c2cbce4198b93431f339618a3625f30259/merged/etc/univention/base.conf.bak.concurrent_1619642011.01'

Role: domaincontroller_master
Comment 2 Maximilian Janßen univentionstaff 2021-12-08 12:31:16 CET
reported again:

Version: 5.0-0 errata164

Remark: Trying to restore owncloud in univention.  I backed up data base, uninstalled and reinstalled and got this error

Error: 
Internal server error during "appcenter/progress".
Request: appcenter/progress

Traceback (most recent call last):
  File "%PY3%/univention/appcenter/docker.py", line 303, in tmp_file
    yield tmp_file
  File "%PY3%/univention/appcenter/actions/docker_base.py", line 134, in _execute_container_script
    with open(error_file.name, 'r') as error_handle:
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/docker/overlay2/e33082b751471ff83ae536ac810bb98d9dbdefc5a88469a3c380e8ce7b8c6874/merged/var/univention/tmp/tmpxip9mrkl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/appcenter/docker.py", line 303, in tmp_file
    yield tmp_file
  File "%PY3%/univention/appcenter/actions/docker_base.py", line 139, in _execute_container_script
    return process
  File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "%PY3%/univention/appcenter/docker.py", line 305, in tmp_file
    tmp_file.close()
  File "/usr/lib/python3.7/tempfile.py", line 646, in close
    self._closer.close()
  File "/usr/lib/python3.7/tempfile.py", line 583, in close
    unlink(self.name)
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/docker/overlay2/e33082b751471ff83ae536ac810bb98d9dbdefc5a88469a3c380e8ce7b8c6874/merged/var/univention/tmp/tmpha36zdq3'

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/mixins.py", line 158, in progress
    ret = progress_obj.poll()
  File "%PY3%/univention/management/console/modules/mixins.py", line 102, in poll
    six.reraise(*self.exc_info)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/modules/decorators.py", line 312, in _thread
    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/appcenter/__init__.py", line 292, in run
    host_result[app.id] = self._run_local(app, action, _settings, auto_installed, progress)
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 339, in _run_local
    success = action.call(app=[app], username=self.username, password=self.password, **kwargs)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 175, in call
    return obj.call_with_namespace(namespace)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 181, in call_with_namespace
    result = self.main(namespace)
  File "%PY3%/univention/appcenter/actions/install.py", line 87, in main
    return self.do_it(args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 169, in do_it
    success = self.do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install.py", line 203, in do_it_once
    return super(Install, self).do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 214, in do_it_once
    self._do_it(app, args)
  File "%PY3%/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY3%/univention/appcenter/actions/install.py", line 117, in _do_it
    if self._install_app(app, args):
  File "%PY3%/univention/appcenter/actions/docker_install.py", line 67, in _install_app
    self._setup_docker_image(app, args)
  File "%PY3%/univention/appcenter/actions/docker_install.py", line 86, in _setup_docker_image
    process = self._execute_container_script(app, 'setup', args, cmd_kwargs={'_logger': logger})
  File "%PY3%/univention/appcenter/actions/docker_base.py", line 139, in _execute_container_script
    return process
  File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "%PY3%/univention/appcenter/docker.py", line 305, in tmp_file
    tmp_file.close()
  File "/usr/lib/python3.7/tempfile.py", line 646, in close
    self._closer.close()
  File "/usr/lib/python3.7/tempfile.py", line 583, in close
    unlink(self.name)
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/docker/overlay2/e33082b751471ff83ae536ac810bb98d9dbdefc5a88469a3c380e8ce7b8c6874/merged/var/univention/tmp/tmpxip9mrkl'

Role: domaincontroller_master
Comment 3 Maximilian Janßen univentionstaff 2023-06-20 14:53:39 CEST
Version: 5.0-3 errata668
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/docker/overlay2/28bcd5f575ebceb7de699f51098fd1b5390708980883c0b449afe66c8cb8319f/merged/var/univention/tmp/tmp4uvmoiuv'