Internal error: not enough values to unpack (expected 2, got 1)

After upgrading to 2.1.0p26 on Debian GNU\/Linux 10 (buster) i get an error by click on "Setup->Users":

**Internal error:** not enough values to unpack (expected 2, got 1) 

{"time": 1686033682.7926133, "os": "Debian GNU\/Linux 10 (buster)", "version": "2.1.0p26", "edition": "cre", "core": "nagios", "python_version": "3.9.16 (main, Mar 13 2023, 23:26:35) \n[GCC 12.2.0]", "python_paths": ["\/omd\/sites\/*****\/local\/lib\/python3", "\/omd\/sites\/*****\/lib\/python3\/plus", "\/omd\/sites\/*****\/lib\/python39.zip", "\/omd\/sites\/*****\/lib\/python3.9", "\/omd\/sites\/*****\/lib\/python3.9\/lib-dynload", "\/omd\/sites\/*****\/lib\/python3.9\/site-packages", "\/omd\/sites\/*****\/lib\/python3"], "id": "27160bac-0435-11ee-abc5-00155d450e0f", "crash_type": "gui", "exc_type": "ValueError", "exc_value": "not enough values to unpack (expected 2, got 1)", "exc_traceback": [["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/wsgi\/applications\/checkmk.py", 241, "_process_request", "resp = page_handler()"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/wsgi\/applications\/utils.py", 56, "_call_auth", "func()"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/pages.py", 195, "<lambda>", "return (lambda hc: lambda: hc().handle_page())(handle_class)"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/pages.py", 48, "handle_page", "self.page()"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/crash_reporting.py", 240, "page", "self._show_report_form(crash_info, details)"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/crash_reporting.py", 434, "_show_report_form", "self._add_gui_user_infos_to_details(details)"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/crash_reporting.py", 447, "_add_gui_user_infos_to_details", "users = userdb.load_users()"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/userdb.py", 893, "load_users", "val = load_custom_attr(uid, attr, conv_func)"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/userdb.py", 933, "load_custom_attr", "return conv_func(result.strip())"], ["\/omd\/sites\/*****\/lib\/python3\/cmk\/gui\/userdb.py", 645, "_convert_session_info", "session_id, last_activity = value.split(\"|\", 1)"]], "local_vars": "eyd2YWx1ZSc6ICc8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+XG4nCiAgICAgICAgICAnPE5BR0lPUz5cbicKICAgICAgICAgICcgIDxEQVRBU09VUkNFPlxuJwogICAgICAgICAgJyAgICA8VEVNUExBVEU+Y2hlY2tfbWstdXB0aW1lPC9URU1QTEFURT5cbicKICAgICAgICAgICcgICAgJwogICAgICAgICAgJzxSUkRGSUxFPi9vbWQvc2l0ZXMvbGFnYi92YXIvcG5wNG5hZ2lvcy9wZXJmZGF0YS84MzEwSEFMU1JWQVBQMDEuYWQubHNhLW5ldC5kZS9VcHRpbWVfdXB0aW1lLnJyZDwvUlJERklMRT5cbicKICAgICAgICAgICcgICAgPFJSRF9TVE9SQUdFX1RZUEU+TVVMVElQTEU8L1JSRF9TVE9SQUdFX1RZUEU+XG4nCiAgICAgICAgICAnICAgIDxSUkRfSEVBUlRCRUFUPjg0NjA8L1JSRF9IRUFSVEJFQVQ+XG4nCiAgICAgICAgICAnICAgIDxJU19NVUxUST4wPC9JU19NVUxUST5cbicKICAgICAgICAgICcgICAgPERTPjE8L0RTPlxuJwogICAgICAgICAgJyAgICA8TkFNRT51cHRpbWU8L05BTUU+XG4nCiAgICAgICAgICAnICAgIDxMQUJFTD51cHRpbWU8L0xBQkVMPlxuJwogICAgICAgICAgJyAgICA8VU5JVD48L1VOSVQ+XG4nCiAgICAgICAgICAnICAgIDxBQ1Q+MjA4NTIyNjwvQUNUPlxuJwogICAgICAgICAgJyAgICA8V0FSTj41MTg0MDAwPC9XQVJOPlxuJwogICAgICAgICAgJyAgICA8V0FSTl9NSU4+PC9XQVJOX01JTj5cbicKICAgICAgICAgICcgICAgPFdBUk5fTUFYPjwvV0FSTl9NQVg+XG4nCiAgICAgICAgICAnICAgIDxXQVJOX1JBTkdFX1RZUEU+PC9XQVJOX1JBTkdFX1RZUEU+XG4nCiAgICAgICAgICAnICAgIDxDUklUPjEyOTYwMDAwPC9DUklUPlxuJwogICAgICAgICAgJyAgICA8Q1JJVF9NSU4+PC9DUklUX01JTj5cbicKICAgICAgICAgICcgICAgPENSSVRfTUFYPjwvQ1JJVF9NQVg+XG4nCiAgICAgICAgICAnICAgIDxDUklUX1JBTkdFJ30=", "details": {"page": "crash.py", "vars": {"crash_id": "2190d5c2-0435-11ee-a342-00155d450e0f", "mode": "users", "site": "*****"}, "username": null, "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/114.0.0.0 Safari\/537.36 Edg\/114.0.1823.37", "referer": "http:\/\/10.146.69.120\/*****\/check_mk\/crash.py?crash_id=140b2f74-0435-11ee-abc5-00155d450e0f&mode=users&site=*****", "is_mobile": false, "is_ssl_request": false, "language": null, "request_method": "GET"}}

Hi @Stolle78,

Please use the preformatted text format for code for better readability. You can do that by highlighting the text, then pressing Ctrl+E.

The “local_vars” value in the middle is base64 encoded, you can use https://www.base64decode.org/ to decode it - it holds the values of a pnp4nagios xml file which in this context makes zero sense to me, as they have nothing to do with the user settings.

does this error persists over a restart of the checkmk apache?

Gerd

Hello Gerd, thanks for your reply.

The error ist persistent. the other components of check_mkworking well.

weird - is the crash always reporting the same value for local vars?

I can’t currently think of why it would be there, but can you check if the .xml file is somehow mentioned/included in one of the user settings or some other path where it should be?

grep RRD_HEARTBEAT -r etc/check_mk/conf.d/
grep RRD_HEARTBEAT -r etc/check_mk/multisite.d/
grep RRD_HEARTBEAT -r var/check_mk/web
i found <RRD_HEARTBEAT>8460</RRD_HEARTBEAT> in var/check_mk/web for one user.

this file seems broken. after deleting 

TypeError (argument of type 'NoneType' is not iterable)

 File "/omd/sites/*****/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 241, in _process_request
    resp = page_handler()
  File "/omd/sites/*****/lib/python3/cmk/gui/wsgi/applications/utils.py", line 56, in _call_auth
    func()
  File "/omd/sites/*****/lib/python3/cmk/gui/pages.py", line 195, in <lambda>
    return (lambda hc: lambda: hc().handle_page())(handle_class)
  File "/omd/sites/*****/lib/python3/cmk/gui/pages.py", line 48, in handle_page
    self.page()
  File "/omd/sites/*****/lib/python3/cmk/gui/pages.py", line 165, in <lambda>
    "page": lambda self: self._wrapped_callable[0](),
  File "/omd/sites/*****/lib/python3/cmk/gui/wato/page_handler.py", line 95, in page_handler
    _wato_page_handler(current_mode, mode_permissions, mode_class)
  File "/omd/sites/*****/lib/python3/cmk/gui/wato/page_handler.py", line 105, in _wato_page_handler
    mode = mode_class()
  File "/omd/sites/*****/lib/python3/cmk/gui/wato/pages/users.py", line 91, in __init__
    self._job_snapshot = userdb.UserSyncBackgroundJob().get_status_snapshot()
  File "/omd/sites/*****/lib/python3/cmk/gui/gui_background_job.py", line 218, in get_status_snapshot
    return GUIBackgroundStatusSnapshot(self)
  File "/omd/sites/*****/lib/python3/cmk/gui/gui_background_job.py", line 258, in __init__
    self._job_status = job.get_status()
  File "/omd/sites/*****/lib/python3/cmk/gui/background_job.py", line 473, in get_status
    status = self._jobstatus.get_status_from_file()
  File "/omd/sites/*****/lib/python3/cmk/gui/background_job.py", line 597, in get_status_from_file
    if "state" not in data:`Preformatted text`

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.