Univention Bugzilla – Bug 44463
docker app installation might fail in the first attempt
Last modified: 2017-04-24 20:41:06 CEST
UCS 4.1-4 DC Slave, Errata status of week 15/2017 The system had various apps installed successfully, including docker based apps (owncloud, etherpad, nextcloud). While trying to migrate the horde app to docker following http://wiki.univention.de/index.php?title=Horde_App_Migration, the first attempt to install the docker version of the app failed. Command was "univention-app install horde" Last lines from STDOUT: Running 65univention-mail-horde.uinst done [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/d212a31e59ec3374acef53386efc91c6706beced6b91f54f856784ae8ad26468/merged/tmp/tmpJa91X6' Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 191, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 84, in _do_it if self._install_app(app, args): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 61, in _install_app self._setup_docker_image(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 81, in _setup_docker_image self._execute_container_script(app, 'restore_data_before_setup', _credentials=False) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_base.py", line 135, in _execute_container_script return process File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/pymodules/python2.7/univention/appcenter/docker.py", line 278, in tmp_file tmp_file.close() File "/usr/lib/python2.7/tempfile.py", line 410, in close self.unlink(self.name) OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/d212a31e59ec3374acef53386efc91c6706beced6b91f54f856784ae8ad26468/merged/tmp/tmpJa91X6' Traceback (most recent call last): File "/usr/bin/univention-app", line 90, in <module> main() File "/usr/bin/univention-app", line 77, in main ret = args.func(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 191, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 84, in _do_it if self._install_app(app, args): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 61, in _install_app self._setup_docker_image(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 81, in _setup_docker_image self._execute_container_script(app, 'restore_data_before_setup', _credentials=False) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_base.py", line 135, in _execute_container_script return process File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/pymodules/python2.7/univention/appcenter/docker.py", line 278, in tmp_file tmp_file.close() File "/usr/lib/python2.7/tempfile.py", line 410, in close self.unlink(self.name) OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/lib/docker/overlay/d212a31e59ec3374acef53386efc91c6706beced6b91f54f856784ae8ad26468/merged/tmp/tmpJa91X6' I called "univention-app install horde" a second time and the app was installed successfully.
*** This bug has been marked as a duplicate of bug 44387 ***