AssertionError after Update to 2.1.0p26 - possibly related to check_mailboxes

CMK version: 2.1.0p26
OS version: Ubuntu 20.04 LTS

Hi there

We just updated from 2.1.0p25 to 2.1.0p26. After the update activation to the main site is not possible anymore.

Error message:

Started at: 10:39:49. Finished at: 10:39:54.
Error running automation call restart (exit code 1), error:

An error occurred: Error creating configuration: Traceback (most recent call last):
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 2100, in _hosts_worker
   hosts_data = _compute_worker_hosts_data(
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1989, in _compute_worker_hosts_data
    return [
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1990, in <listcomp>
    helper_config_manager.get_host_data(
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 2883, in get_host_data
    return self._compute_and_cache(host_class(hostname, stored_passwords))
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1251, in __init__
    super().__init__(
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1005, in __init__
    self._compute()
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1274, in _compute
    self._info.services.extend(self._cmc_services())
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/cee/microcore_config.py", line 1619, in _cmc_services
    for description, args in core_config.iter_active_check_services(
  File "/omd/sites/itbetrieb/lib/python3/cmk/base/core_config.py", line 517, in iter_active_check_services
    active_info["argument_function"](params),
  File "/omd/sites/itbetrieb/share/check_mk/checks/check_mailboxes", line 73, in check_mailboxes_arguments
    assert isinstance(password, str)

We think, that the error is related to this werk
Werk #13263: Add (non-legacy) OAuth2 support (using TenantID, ClientID and ClientSecret) to check_mailboxes active check

Our config looks like this and was working until p25. :wink:

When i disable this rule, the config is build without error.

Has someone the same error? Is this a bug? Or is our config wrong?

Best regards
Christian

1 Like

Hi,

there are several bugfixes for the mail loop in p27, so a downgrade and waiting for the new relase may be the best option.

Hi Andre

Thank you for your post and the links. Because I had searched only for “check_mailboxes”, I had not seen or considered the other werks/works. :see_no_evil:

Greetings
Christian

1 Like

Testing EWS-Mailboxes in 2.1.0p27 and the error is still there:

File “[…]/share/check_mk/checks/check_mailboxes”, line 73, in check_mailboxes_arguments
assert isinstance(password, str)
AssertionError

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.