Univention Bugzilla – Bug 43151
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/…/merged/tmp/tmp.kHPI9tHVWV'
Last modified: 2020-08-19 21:56:39 CEST
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'
Reported again, 4.1-4 errata366 (Vahr) IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/f2c0ff2474a01ec6a89a9b89f9ddf1e01a8e8f012b21daf4d28cd8dbbfd6e6b1/merged/etc/machine.secret'
Reprted again, 4.1-4 errata366 (Vahr) IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/a916f8973cedf719c3cd473e76790cbe663d9f886e04f70734017aa1f19e84fe/merged/etc/machine.secret'
Reported again, 4.1-4 errata366 (Vahr) IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/51872d52e2b941d48ba3d3842d6319570f4cd0b406f6d88fd9ee3b3a3e373c6f/merged/etc/machine.secret'
*** Bug 43323 has been marked as a duplicate of this bug. ***
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
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
Reverted (4.1-4 only)
Re-reverted
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'))
Complain at Bug #43336 and Bug #28497.
OK, adjusted Python 2.7 code to not complain when compiled with Python 2.6. univention-appcenter 5.0.23-60.284.201702201735
OK - univention-appcenter OK - merged to 4.2 OK - univention-appcenter.yaml
<http://errata.software-univention.de/ucs/4.1/403.html>
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
2017041921000977 Version: 4.2-0 errata2 (Lesum)
2017041921000799 Version: 4.2-0 errata2 (Lesum) Remark: bei der Installation von Horde Groupware kommt dieser Fehler. Andere Docker Images funktionieren jedoch