Bug 44827 - CalledProcessError: Command 'docker inspect' returned non-zero exit status 1
CalledProcessError: Command 'docker inspect' returned non-zero exit status 1
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-20 13:13 CEST by Florian Best
Modified: 2017-07-03 11:51 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.057
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Ticket number: 2017061821000162
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-06-20 13:13:15 CEST
Version: 4.2-0 errata45 (Lesum)

Execution of command 'appcenter/query' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 249, 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/appcenter/__init__.py", line 197, in query
    info = domain.to_dict(apps)
  File "%PY2.7%/univention/appcenter/actions/domain.py", line 109, in to_dict
    app_dict = get.to_dict(app)
  File "%PY2.7%/univention/appcenter/actions/docker_get.py", line 48, in to_dict
    ret['config'] = configure.list_config(app)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 131, in list_config
    _ucr = cls._get_app_ucr(app)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 106, in _get_app_ucr
    ucr_file = cls._get_app_ucr_filename(app)
  File "%PY2.7%/univention/appcenter/actions/configure.py", line 114, in _get_app_ucr_filename
    ucr_file = docker.path('/etc/univention/base.conf')
  File "%PY2.7%/univention/appcenter/docker.py", line 296, in path
    return os.path.join(self.root_dir, filename)
  File "%PY2.7%/univention/appcenter/docker.py", line 219, in root_dir
    self._root_dir = self.inspect_container()['GraphDriver']['Data']['MergedDir']
  File "%PY2.7%/univention/appcenter/docker.py", line 213, in inspect_container
    return inspect(self.container)
  File "%PY2.7%/univention/appcenter/docker.py", line 80, in inspect
    out = check_output(['docker', 'inspect', name])
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['docker', 'inspect', '42f25e2312b9886f02dcf6dfcedb7d14aa4c9d04269e185ff73d246a78263b4b']' returned non-zero exit status 1
Comment 1 Dirk Wiesenthal univentionstaff 2017-07-03 11:51:15 CEST
Maybe we should actually output the message from docker inspect:

root@master80:~# docker inspect 96a85dc71c750c5377952dd1479b3003ba4a5e0c950c792105123ef03cb2687c
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

root@master80:~# docker inspect auidhsdkghs
Error: No such image, container or task: auidhsdkghs

This output should be sent to the frontend along with a "send error to Univention" button.