Check_MK Discovery crashes after upgrade to v.2.4.0

CMK version: 2.4.0
OS version: Ubuntu 24.04

Error message:
Since upgrading to v.2.4.0, “Check_MK Discovery” crashes on all hosts with error
TypeError (‘NoneType’ object is not subscriptable)

Traceback:
File “/omd/sites/cmksite/lib/python3/cmk/base/modes/check_mk.py”, line 1880, in mode_check_discovery
check_results = execute_check_discovery(
File “/omd/sites/cmksite/lib/python3/cmk/checkengine/discovery/_active_check.py”, line 105, in execute_check_discovery
discovery_mode = DiscoverySettings.from_vs(params.rediscovery.get(“mode”))
File “/omd/sites/cmksite/lib/python3/cmk/checkengine/discovery/_utils.py”, line 61, in from_vs
update_host_labels=flags[“update_host_labels”],
‘NoneType’ object is not subscriptable

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
value store: loading from disk
Checkmk version 2.4.0
Updating IPv4 DNS cache for checkmk: x.x.x.x
Trying to acquire lock on /omd/sites/cmksite/var/check_mk/ipaddresses.cache
Got lock on /omd/sites/cmksite/var/check_mk/ipaddresses.cache
Releasing lock on /omd/sites/cmksite/var/check_mk/ipaddresses.cache
Released lock on /omd/sites/cmksite/var/check_mk/ipaddresses.cache

  • FETCHING DATA
    Source: SourceInfo(hostname=‘checkmk’, ipaddress=‘x.x.x.x’, ident=‘piggyback’, fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
    [cpu_tracking] Start [7fcac724db80]
    Read from cache: NoCache(path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
    0 piggyback files for ‘checkmk’.
    0 piggyback files for ‘x.x.x.x’.
    Get piggybacked data
    [cpu_tracking] Stop [7fcac724db80 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
    [cpu_tracking] Start [7fcac7018830]
    0 piggyback files for ‘checkmk’.
  • PARSE FETCHER RESULTS
    HostKey(hostname=‘checkmk’, source_type=<SourceType.HOST: 1>) → Add sections:
    Received no piggyback data
    [cpu_tracking] Stop [7fcac7018830 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
    [piggyback] Success (but no data found for this host), execution time 0.0 sec | execution_time=0.000 user_time=0.010 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.000

2.4.0p1 will be available soon. This bug has already been fixed as part of Werk #18007: Periodic service discovery: Fix parameter issue

SImilar problem here as well

1 Like

Thank you very much for the prompt response Chauhan, will be waiting for p1 :wink:

Pavlos