Bug 51838 - appcenter/docker/progress: TypeError: 'NoneType' object has no attribute '__getitem__'
appcenter/docker/progress: TypeError: 'NoneType' object has no attribute '__g...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-19 13:57 CEST by Christian Castens
Modified: 2022-01-31 09:30 CET (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: 2022012921000177, 2021050721000462, 2019082921000189, 2020051321000854, 2020051421000165, 2020052921000726, 2020090821000795, 2020090921000202, 2020121121000728, 2021011921000358, 2020110221001077, 2020110121000105, 2020110121000294, 2020090921000622
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 Christian Castens univentionstaff 2020-08-19 13:57:08 CEST
Version: 4.4-1 errata244 (Blumenthal)

Remark: Just FYI - I was stubborn and installed UCS on a btrfs root partition, changing the docker  storage driver to 'btrfs' post-install. So this error might be related to this.
If UCS ever gets to the point where btrfs is supported, this might help.

Traceback(cf56b6607dc6949e0f31f3b9d5161149):
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 260, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 156, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 312, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 452, in invoke_docker
    result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 84, in main
    return self.do_it(args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install_base.py", line 119, in do_it
    self._do_it(app, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py", line 63, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 111, in _do_it
    if self._install_app(app, args):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py", line 57, in _install_app
    self._start_docker_image(app, hostdn, password, args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_base.py", line 248, in _start_docker_image
    f_name = docker.path('/etc/machine.secret')
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py", line 305, in path
    return os.path.join(self.root_dir, filename)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py", line 220, in root_dir
    self._root_dir = self.inspect_container()['GraphDriver']['Data']['MergedDir']
TypeError: 'NoneType' object has no attribute '__getitem__'

Role: domaincontroller_master
Comment 1 Christian Castens univentionstaff 2020-08-19 15:23:10 CEST
reported again:

Version: 4.4-4 errata589 (Blumenthal)

Traceback(d41d8cd98f00b204e9800998ecf8427e):
Interner Server-Fehler in "appcenter/docker/remote/progress".
Request: appcenter/docker/remote/progress

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter/__init__.py", line 423, in remote_progress
    return client.umc_command('appcenter/docker/progress', {'progress_id': remote_progress_id}).result
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 435, in umc_command
    return self.request('POST', 'command/%s' % (path,), data, headers)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 515, in request
    return self.send(request)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 544, in send
    raise HTTPError(request, response, self.hostname)
HTTPError: 591 on ********* (command/appcenter/docker/progress): {"status": 591, "message": "Interner Server-Fehler in \"appcenter/docker/progress\".", "traceback":
"Interner Server-Fehler in \"appcenter/docker/progress\".\nRequest: appcenter/docker/progress\n\nTraceback (most recent call last):\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/base.py\", line 358, in __error_handling\n    six.reraise(etype, exc, etraceback)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/base.py\", line 261, in execute\n    function.__func__(self, request, *args, **kwargs)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 321, in _response\n    result = _multi_response(self, request)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 181, in _response\n    return function(self, request)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 443, in _response\n    return list(function(self, iterator, *nones))\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 289, in _fake_func\n    yield function(self, *args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/mixins.py\", line 158, in progress\n    ret = progress_obj.poll()\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/mixins.py\", line 102, in poll\n    six.reraise(self.exc_info[1], None, self.exc_info[2])\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 312, in _thread\n    result = _multi_response(self, request)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 181, in _response\n    return function(self, request)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 443, in _response\n    return list(function(self, iterator, *nones))\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py\", line 289, in _fake_func\n    yield function(self, *args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter/__init__.py\", line 484, in invoke_docker\n    result['success'] = action.call(app=app,
username=self.username, password=self.password, **kwargs)\n  File \"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py\", line 220, in call\n    return
obj.call_with_namespace(namespace)\n  File \"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py\", line 226, in call_with_namespace\n    result =
self.main(namespace)\n  File \"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py\", line 84, in main\n    return self.do_it(args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install_base.py\", line 119, in do_it\n    self._do_it(app, args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py\", line 71, in _do_it\n    ret = super(Install, self)._do_it(app, args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py\", line 111, in _do_it\n    if self._install_app(app, args):\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py\", line 65, in _install_app\n    self._start_docker_image(app, hostdn, password, args)\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_base.py\", line 248, in _start_docker_image\n    f_name = docker.path('/etc/machine.secret')\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py\", line 312, in path\n    return os.path.join(self.root_dir, filename)\n  File
\"/usr/lib/python2.7/dist-packages/univention/appcenter/docker.py\", line 223, in root_dir\n    self._root_dir =
self.inspect_container()['GraphDriver']['Data']['MergedDir']\nTypeError: 'NoneType' object has no attribute '__getitem__'", "location":
"https://**********/univention/command"}

Role: domaincontroller_master
Comment 2 Christian Castens univentionstaff 2020-08-26 17:06:09 CEST
reported again:
Version: 4.4-4 errata617 (Blumenthal)
Role: domaincontroller_master
Comment 3 Christian Castens univentionstaff 2020-10-01 10:15:25 CEST
reported again:
Version: 4.4-5 errata735 (Blumenthal)
Role: domaincontroller_master
Comment 4 Christian Castens univentionstaff 2021-01-08 13:39:25 CET
reported again:
Version: 4.4-6 errata787 (Blumenthal)
Role: domaincontroller_master
Comment 5 Christian Castens univentionstaff 2021-01-26 10:45:25 CET
reported again:
Version: 4.4-7 errata870 (Blumenthal)
Comment 6 Johannes Lohmer univentionstaff 2021-11-25 13:06:06 CET
Version: 4.4-8 errata969 (Blumenthal)

Remark: Horde-Installation schlägt fehlt ?!

Error:
Interner Server-Fehler in "appcenter/docker/remote/progress".
Request: appcenter/docker/remote/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 430, in remote_progress
    return client.umc_command('appcenter/docker/progress', {'progress_id': remote_progress_id}).result
  File "%PY2.7%/univention/lib/umc.py", line 444, in umc_command
    return self.request('POST', 'command/%s' % (path,), data, headers)
  File "%PY2.7%/univention/lib/umc.py", line 524, in request
    return self.send(request)
  File "%PY2.7%/univention/lib/umc.py", line 553, in send
    raise HTTPError(request, response, self.hostname)
HTTPError: 591 on ucs1.wvbr.local (command/appcenter/docker/progress): {u'status': 591, u'message': u'Interner Server-Fehler in "appcenter/docker/progress".', u'location':
u'https://****.local/univention/command'}
Interner Server-Fehler in "appcenter/docker/progress".
Request: appcenter/docker/progress

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 158, in progress
    ret = progress_obj.poll()
  File "%PY2.7%/univention/management/console/modules/mixins.py", line 102, in poll
    six.reraise(self.exc_info[1], None, self.exc_info[2])
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 312, in _thread
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 491, 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 84, in main
    return self.do_it(args)
  File "%PY2.7%/univention/appcenter/actions/install_base.py", line 143, in do_it
    self._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 71, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY2.7%/univention/appcenter/actions/install.py", line 114, in _do_it
    if self._install_app(app, args):
  File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, 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
    f_name = docker.path('/etc/machine.secret')
  File "%PY2.7%/univention/appcenter/docker.py", line 303, in path
    return os.path.join(self.root_dir, filename)
  File "%PY2.7%/univention/appcenter/docker.py", line 218, in root_dir
    self._root_dir = self.inspect_container()['GraphDriver']['Data']['MergedDir']
TypeError: 'NoneType' object has no attribute '__getitem__'

Role: domaincontroller_master

Errno: 76d4f54dead1ccdf9f3a098a7cce09f8