Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distribution: heinlein destroys Catalog of check plugins. #141

Open
wants to merge 1 commit into
base: cmk2.2
Choose a base branch
from

Conversation

jwiederh
Copy link

@jwiederh jwiederh commented Oct 6, 2023

From 2.2.0p9 on distribution: heinlein destroys Catalog of check plugins, for whatever reason. I did not troubleshoot further, but deleting it fixes the error. (Setup -> Services -> Catalog of check plugins)

Error:
Internal error: list indices must be integers or slices, not str

Traceback:
File "/omd/sites/dev2/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 183, in _process_request
resp = page_handler()
File "/omd/sites/dev2/lib/python3/cmk/gui/wsgi/applications/utils.py", line 107, in _call_auth
func()
File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 187, in wrapper
return hc().handle_page()
File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 51, in handle_page
self.page()
File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 146, in
"page": lambda self: self._wrapped_callable0,
File "/omd/sites/dev2/lib/python3/cmk/gui/wato/page_handler.py", line 87, in page_handler
mode_instance = mode_registry.get(current_mode, ModeNotImplemented)()
File "/omd/sites/dev2/lib/python3/cmk/gui/plugins/wato/utils/base_modes.py", line 31, in init
self._from_vars()
File "/omd/sites/dev2/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 56, in _from_vars
self._manpages = _get_check_catalog(only_path=())
File "/omd/sites/dev2/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 404, in _get_check_catalog
subtree[path[-1]] = [

distributino: heinlein destroys Catalog of check plugins, for whatever reason. I did not troubleshoot further, but deleting it fixes the error. (Setup -> Services -> Catalog of check plugins)

Error:
Internal error: list indices must be integers or slices, not str

Traceback:
 File "/omd/sites/dev2/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 183, in _process_request
    resp = page_handler()
  File "/omd/sites/dev2/lib/python3/cmk/gui/wsgi/applications/utils.py", line 107, in _call_auth
    func()
  File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 187, in wrapper
    return hc().handle_page()
  File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 51, in handle_page
    self.page()
  File "/omd/sites/dev2/lib/python3/cmk/gui/pages.py", line 146, in <lambda>
    "page": lambda self: self._wrapped_callable[0](),
  File "/omd/sites/dev2/lib/python3/cmk/gui/wato/page_handler.py", line 87, in page_handler
    mode_instance = mode_registry.get(current_mode, ModeNotImplemented)()
  File "/omd/sites/dev2/lib/python3/cmk/gui/plugins/wato/utils/base_modes.py", line 31, in __init__
    self._from_vars()
  File "/omd/sites/dev2/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 56, in _from_vars
    self._manpages = _get_check_catalog(only_path=())
  File "/omd/sites/dev2/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 404, in _get_check_catalog
    subtree[path[-1]] = [
@gurubert
Copy link
Member

created crash report 39c10586-27cf-11ef-bdef-e4a4710437ce

@avluis
Copy link

avluis commented Jun 12, 2024

Took me a while to find this as well; no other distribution values address the crash -- only removing the line fixes it from my limited understanding.


TypeError (list indices must be integers or slices, not str)

  File "/omd/sites/mysite/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 183, in _process_request
    resp = page_handler()
  File "/omd/sites/mysite/lib/python3/cmk/gui/wsgi/applications/utils.py", line 107, in _call_auth
    func()
  File "/omd/sites/mysite/lib/python3/cmk/gui/pages.py", line 187, in wrapper
    return hc().handle_page()
  File "/omd/sites/mysite/lib/python3/cmk/gui/pages.py", line 51, in handle_page
    self.page()
  File "/omd/sites/mysite/lib/python3/cmk/gui/pages.py", line 146, in <lambda>
    "page": lambda self: self._wrapped_callable[0](),
  File "/omd/sites/mysite/lib/python3/cmk/gui/wato/page_handler.py", line 87, in page_handler
    mode_instance = mode_registry.get(current_mode, ModeNotImplemented)()
  File "/omd/sites/mysite/lib/python3/cmk/gui/plugins/wato/utils/base_modes.py", line 31, in __init__
    self._from_vars()
  File "/omd/sites/mysite/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 56, in _from_vars
    self._manpages = _get_check_catalog(only_path=())
  File "/omd/sites/mysite/lib/python3/cmk/gui/wato/pages/check_catalog.py", line 404, in _get_check_catalog
    subtree[path[-1]] = [

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants