Bug 43151 - IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/…/merged/tmp/tmp.kHPI9tHVWV'
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/ov...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
: 43323 (view as bug list)
Depends on:
Blocks: 44387 44501
  Show dependency treegraph
 
Reported: 2016-12-09 17:45 CET by Florian Best
Modified: 2020-08-19 21:56 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016120321000091, 2016122221000153, 2016122221000199, 2016122221000331, 2017021621000217, 2017021621000413, 2017021621000468, 2017021721000181, 2017021721000555,
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 Florian Best univentionstaff 2016-12-09 17:45:08 CET
Version: 4.1-4 errata350 (Vahr)

Traceback(66ab21b01bd57cdc050e13e117734c49):
Die Ausführung des Kommandos appcenter/docker/progress ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 281, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 397, 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 183, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 189, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/remove.py", line 48, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 108, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 49, in _do_it
    super(Remove, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/remove.py", line 54, in _do_it
    self._remove_app(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 55, in _remove_app
    self._remove_docker_container(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 59, in _remove_docker_container
    if self._backup_container(app, backup_data='move') is False:
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 74, in _backup_container
    if not self._store_data(app):
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 62, in _store_data
    process = self._execute_container_script(app, 'store_data', _credentials=False)
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 132, in _execute_container_script
    with open(docker.path(error_file), 'r+b') as error_handle:
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/c3560ded3e68efa1c6386decd48fdef39fdeb48033e6d6c5d7282e7fb53dc1dc/merged/tmp/tmp.kHPI9tHVWV'
Comment 1 Florian Best univentionstaff 2017-01-02 17:26:06 CET
Reported again, 4.1-4 errata366 (Vahr)

IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/f2c0ff2474a01ec6a89a9b89f9ddf1e01a8e8f012b21daf4d28cd8dbbfd6e6b1/merged/etc/machine.secret'
Comment 2 Florian Best univentionstaff 2017-01-02 17:27:08 CET
Reprted again, 4.1-4 errata366 (Vahr)
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/a916f8973cedf719c3cd473e76790cbe663d9f886e04f70734017aa1f19e84fe/merged/etc/machine.secret'
Comment 3 Florian Best univentionstaff 2017-01-02 17:28:12 CET
Reported again, 4.1-4 errata366 (Vahr)
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/51872d52e2b941d48ba3d3842d6319570f4cd0b406f6d88fd9ee3b3a3e373c6f/merged/etc/machine.secret'
Comment 4 Dirk Wiesenthal univentionstaff 2017-01-10 20:42:44 CET
*** Bug 43323 has been marked as a duplicate of this bug. ***
Comment 5 Dirk Wiesenthal univentionstaff 2017-02-14 09:54:25 CET
This may be the cause of the Comment 0 traceback

Cannot run exec command f512a7e9fdf12c2183ed5c0df4eeeecda834b2e3d093aafc808e3eac775ca2e9 in container c84b07a89cb9ff3c22bedd4035b90e73c69e16e715caca06a5ab6cbc59d512a0: [8] System error: read parent: connection reset by peer
Error starting exec command in container f512a7e9fdf12c2183ed5c0df4eeeecda834b2e3d093aafc808e3eac775ca2e9: Cannot run exec command f512a7e9fdf12c2183ed5c0df4eeeecda834b2e3d093aafc808e3eac775ca2e9 in container c84b07a89cb9ff3c22bedd4035b90e73c69e16e715caca06a5ab6cbc59d512a0: [8] System error: read parent: connection reset by peer
Comment 6 Dirk Wiesenthal univentionstaff 2017-02-15 02:49:56 CET
Maybe it's a mere timing issue and executing mktemp thus fast after creating the container is a bad idea.

Anyway, creating it outside the container as
  /var/lib/docker/.../tmp/tmpXXXX

in
  univention-appcenter 5.0.23-52.279.201702150242
Comment 7 Dirk Wiesenthal univentionstaff 2017-02-15 23:30:00 CET
Reverted (4.1-4 only)
Comment 8 Dirk Wiesenthal univentionstaff 2017-02-18 03:56:50 CET
Re-reverted
Comment 9 Felix Botner univentionstaff 2017-02-20 12:56:48 CET
Trigger für python-support werden verarbeitet ...
Compiling /usr/lib/pymodules/python2.6/univention/appcenter/actions/docker_base.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/univention/appcenter/actions/docker_base.py', 111, 39, '\t\twith docker.tmp_file() as error_file, docker.tmp_file() as password_file:\n'))
Comment 10 Florian Best univentionstaff 2017-02-20 13:04:24 CET
Complain at Bug #43336 and Bug #28497.
Comment 11 Dirk Wiesenthal univentionstaff 2017-02-20 17:38:04 CET
OK, adjusted Python 2.7 code to not complain when compiled with Python 2.6.
  univention-appcenter 5.0.23-60.284.201702201735
Comment 12 Felix Botner univentionstaff 2017-02-21 11:08:55 CET
OK - univention-appcenter
OK - merged to 4.2
OK - univention-appcenter.yaml
Comment 13 Janek Walkenhorst univentionstaff 2017-02-22 12:33:00 CET
<http://errata.software-univention.de/ucs/4.1/403.html>
Comment 14 Florian Best univentionstaff 2017-02-23 11:14:39 CET
The following traceback belongs to this bug, as well !?!

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 281, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 417, 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 185, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 191, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/remove.py", line 49, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 109, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 50, in _do_it
    super(Remove, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/remove.py", line 55, in _do_it
    self._remove_app(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 56, in _remove_app
    self._remove_docker_container(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_remove.py", line 60, in _remove_docker_container
    if self._backup_container(app, backup_data='move') is False:
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 75, in _backup_container
    if not self._store_data(app):
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 63, in _store_data
    process = self._execute_container_script(app, 'store_data', _credentials=False)
  File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 111, in _execute_container_script
    error_file = docker.execute_with_output('mktemp').strip()
  File "%PY2.7%/univention/appcenter/docker.py", line 271, in execute_with_output
    return execute_with_output(self.container, args)
  File "%PY2.7%/univention/appcenter/docker.py", line 173, in execute_with_output
    return check_output(args)
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['docker', 'exec', 'be51951661ea01e5a151bbaa2bdd5087e705b6d29efe14c1ebf56394311e11e4', 'mktemp']' returned non-zero exit status 1
Comment 15 Florian Best univentionstaff 2017-04-21 14:54:45 CEST
2017041921000977
Version: 4.2-0 errata2 (Lesum)
Comment 16 Florian Best univentionstaff 2017-04-21 14:55:25 CEST
2017041921000799

Version: 4.2-0 errata2 (Lesum)

Remark: bei der Installation von Horde Groupware kommt dieser Fehler. Andere Docker Images funktionieren jedoch