Bug 54997 - Appcenter: Docker: configure-script: Tempfile not found
Appcenter: Docker: configure-script: Tempfile not found
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: 2022-07-15 12:59 CEST by Maximilian Janßen
Modified: 2022-07-15 12:59 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: 2022070921000131
Bug group (optional): 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 Maximilian Janßen univentionstaff 2022-07-15 12:59:58 CEST
Similar Bugs: Bug 52709, Bug 45848



Version: 5.0-1 errata343

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/7b34bfc700c65299234fe60a097afd42cf6c5b0cd8cf33501b793a017508e705/merged/var/univention/tmp/tmppv5romae'

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/7b34bfc700c65299234fe60a097afd42cf6c5b0cd8cf33501b793a017508e705/merged/var/univention/tmp/tmpcf1wq6bq'

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 186, in call
    return obj.call_with_namespace(namespace)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 193, in call_with_namespace
    result = self.main(namespace)
  File "%PY3%/univention/appcenter/actions/upgrade.py", line 86, 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/upgrade.py", line 90, in do_it_once
    return super(Upgrade, 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_upgrade.py", line 126, in _do_it
    self._upgrade_image(app, args)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 187, in _upgrade_image
    self._configure(app, args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 446, in _configure
    configure.call(app=app, run_script=run_script, set_vars=set_vars, scope=scope)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 186, in call
    return obj.call_with_namespace(namespace)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 193, in call_with_namespace
    result = self.main(namespace)
  File "%PY3%/univention/appcenter/actions/configure.py", line 76, in main
    self._set_config(args.app, set_vars, args)
  File "%PY3%/univention/appcenter/actions/docker_configure.py", line 59, in _set_config
    super(Configure, self)._set_config(app, set_vars, args)
  File "%PY3%/univention/appcenter/actions/configure.py", line 116, in _set_config
    self._run_configure_script(app, args.run_script)
  File "%PY3%/univention/appcenter/actions/docker_configure.py", line 136, in _run_configure_script
    success = self._execute_container_script(app, 'configure', credentials=False, cmd_args=[action])
  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/7b34bfc700c65299234fe60a097afd42cf6c5b0cd8cf33501b793a017508e705/merged/var/univention/tmp/tmppv5romae'

Role: domaincontroller_master