Bug 44463 - docker app installation might fail in the first attempt
docker app installation might fail in the first attempt
Status: RESOLVED DUPLICATE of bug 44387
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-24 19:42 CEST by Ingo Steuwer
Modified: 2017-04-24 20:41 CEST (History)
1 user (show)

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:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2017-04-24 19:42: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.
Comment 1 Florian Best univentionstaff 2017-04-24 20:41:06 CEST

*** This bug has been marked as a duplicate of bug 44387 ***