Univention Bugzilla – Bug 47084
univention-app crashed if docker cannot connect to image server
Last modified: 2021-05-14 16:34:02 CEST
+++ This bug was initially created as a clone of Bug #40110 +++ Reported again with higher version: Version: 4.3-0 errata0 (Neustadt) Internal server error during "appcenter/docker/progress". Request: appcenter/docker/progress Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) 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 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, 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 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 426, 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 220, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 73, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 105, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 63, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 90, in _do_it if self._install_app(app, args): File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 57, in _install_app self._start_docker_image(app, hostdn, password, args) File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 245, in _start_docker_image container = docker.create(hostname, set_vars) File "%PY2.7%/univention/appcenter/docker.py", line 359, in create container = create(self.image, command, hostname, ports, volumes, env_file, args) File "%PY2.7%/univention/appcenter/docker.py", line 174, in create return check_output(['docker', 'create'] + _args + [image] + command).strip() File "/usr/lib/python2.7/subprocess.py", line 219, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['docker', 'create', '--hostname', 'openp-38672814', '--env-file', u'/var/lib/univention-appcenter/apps/openproject/openproject.env', '-p', '40002:80/tcp', '-v', u'/var/lib/univention-appcenter/apps/openproject/data:/var/lib/univention-appcenter/apps/openproject/data', '-v', '/etc/apt/apt.conf.d/80proxy:/etc/apt/apt.conf.d/80proxy:ro', '-v', u'/var/lib/univention-appcenter/apps/openproject/conf:/var/lib/univention-appcenter/apps/openproject/conf', '-v', '/sys/fs/cgroup:/sys/fs/cgroup:ro', '--tmpfs', '/run', '--tmpfs', '/run/lock', '--security-opt', 'seccomp:/etc/docker/seccomp-systemd.json', '-e', 'container=docker', 'docker.software-univention.de/ucs-appbox-amd64:4.1-4', '/sbin/init']' returned non-zero exit status 1
Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v3 Internal server error during "appcenter/docker/progress". Request: appcenter/docker/progress Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) 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 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, 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 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 426, 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 220, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 73, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 107, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 63, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 90, in _do_it if self._install_app(app, args): File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 57, in _install_app self._start_docker_image(app, hostdn, password, args) File "%PY2.7%/univention/appcenter/actions/docker_base.py", line 222, in _start_docker_image container = docker.create(hostname, set_vars) File "%PY2.7%/univention/appcenter/docker.py", line 360, in create container = create(self.image, command, hostname, ports, volumes, env_file, args) File "%PY2.7%/univention/appcenter/docker.py", line 174, in create return check_output(['docker', 'create'] + _args + [image] + command).strip() File "/usr/lib/python2.7/subprocess.py", line 219, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['docker', 'create', '--hostname', 'gitla-08881235', '--env-file', u'/var/lib/univention-appcenter/apps/gitlab-ce/gitlab-ce.env', '-v', '/etc/apt/apt.conf.d/80proxy:/etc/apt/apt.conf.d/80proxy:ro', '-v', '/sys/fs/cgroup:/sys/fs/cgroup:ro', '-v', u'/srv/gitlab/logs:var/log/gitlab', '-v', u'/srv/gitlab/config:/etc/gitlab', '-v', u'/var/lib/univention-appcenter/apps/gitlab-ce/data:/var/lib/univention-appcenter/apps/gitlab-ce/data', '-v', u'/srv/gitlab/data:/var/opt/gitlab', '-v', u'/var/lib/univention-appcenter/apps/gitlab-ce/conf:/var/lib/univention-appcenter/apps/gitlab-ce/conf', '--tmpfs', '/run', '--tmpfs', '/run/lock', '--security-opt', 'seccomp:/etc/docker/seccomp-systemd.json', '-e', 'container=docker', 'gitlab/gitlab-ce:latest', '/sbin/init']' returned non-zero exit status 1 Role: domaincontroller_master
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.