I’m trying to install my own docker image-based app via test-app-center on a local development UCS running in VirtualBox.
The container is started but exits prematurely with an error code. From the logs I can see that the app has no write access to the mapped volume /var/lib/univention-appcenter/apps/sphairas/conf/ i.e. it cannot create files on this volume, the container logs lots of file access “Permission denied” errors.
And then I see:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
result = self.main(namespace)
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 73, in main
return self.do_it(args)
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 105, in do_it
self._do_it(app, args)
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 63, in _do_it
ret = super(Install, self)._do_it(app, args)
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 90, in _do_it
if self._install_app(app, args):
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 57, in _install_app
self._start_docker_image(app, hostdn, password, args)
File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_base.py", line 249, in _start_docker_image
raise AppCenterErrorContainerStart(msg)
AppCenterErrorContainerStart:
The container for 4.1/xxxx=0.1 could not be started!
The image runs fine on my own development machine.
My app need to write persistent config files right after the start. What am I doing wrong?