Error Upgrading beyond 2.4.0p9 - verify rulesets

Hi,

im currently stuck on an error upgrading from 2.4.0p9 to either p10 or p11.
Bit lost right now where to start .
thanks for taking a look

**CMK version:2.4.0p9
**OS version:Debian 12

2025-09-04 15:08:10 - Updating site ‘XXXX’ from version 2.4.0p9.cre to 2.4.0p11.cre…

  • Updated etc/rabbitmq/conf.d/00-default.conf
  • Updated etc/init.d/rabbitmq
  • Unwanted local/lib/python3/cmk/special_agents (unchanged, removed by you)
  • Unwanted local/share/check_mk/web/plugins/perfometer (unchanged, removed by you)
  • Unwanted local/share/check_mk/web/plugins/metrics (unchanged, removed by you)
    Creating temporary filesystem /omd/sites/XXXX/tmp…OK
    Executing ‘cmk-update-config --conflict ask --dry-run’
    -| ATTENTION
    -| Some steps may take a long time depending on your installation.
    -| Please be patient.
    -|
    -| Cleanup precompiled host and folder files
    -| Verifying Checkmk configuration…
    -| 01/08 Legacy check plug-ins…
    -| 02/08 Rulesets…
    -| Traceback (most recent call last):
    -| File “/omd/sites/XXXX/lib/python3/cmk/update_config/main.py”, line 104, in main_check_config
    -| check_config(logger, conflict)
    -| File “/omd/sites/XXXX/lib/python3/cmk/update_config/main.py”, line 244, in check_config
    -| pre_action(logger, conflict_mode)
    -| File “/omd/sites/XXXX/lib/python3/cmk/update_config/plugins/pre_actions/rulesets.py”, line 50, in call
    -| result = _validate_rule_values(
    -| ^^^^^^^^^^^^^^^^^^^^^^
    -| File “/omd/sites/XXXX/lib/python3/cmk/update_config/plugins/pre_actions/rulesets.py”, line 134, in _validate_rule_values
    -| transformed_value = ruleset.rulespec.valuespec.transform_value(rule.value)
    -| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    -| File “/omd/sites/XXXX/lib/python3/cmk/gui/watolib/rulespecs.py”, line 1439, in transform_value
    -| return self._get_used_valuespec(value).transform_value(value)
    -| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    -| File “/omd/sites/XXXX/lib/python3/cmk/gui/valuespec/definitions.py”, line 6704, in transform_value
    -| return self.from_valuespec(self._valuespec.transform_value(self.to_valuespec(value)))
    -| ^^^^^^^^^^^^^^^^^^^^^^^^
    -| File “/omd/sites/XXXX/lib/python3/cmk/gui/utils/rule_specs/legacy_converter.py”, line 1203, in _forth
    -| return _pack_dict_groups(
    -| ^^^^^^^^^^^^^^^^^^
    -| File “/omd/sites/XXXX/lib/python3/cmk/gui/utils/rule_specs/legacy_converter.py”, line 1174, in _pack_dict_groups
    -| (nested_form := dict_elements[key_to_pack].parameter_form),
    -| ~~~~~~~~~~~~~^^^^^^^^^^^^^
    -| KeyError: ‘warn’
    -|
    -| Update aborted with Error: ‘warn’.
    -| Your site has not been modified.
    -| The update can be retried after the error has been fixed.

mkp list

Hi.
When I look at your package list, I wouldlike to point on Fortigate Pack, cause it’s disabled.
Regards,
Christian

I enabled the package and retried, same error unfortunately.

You need to find out which ruleset is affected. Old legacy form_specs no longer supported in 2.4. This is what the error mean. You can try to look also in ~/var/log/web.log if you find something point to the ruleset which raise this issue.

is this a change from p10 onwards?
I re-checked existings rules several times, i will check again and get back to you.
There are no deprecated rules I cand find.
thanks for the assistance so far

found a rule from sonicwall plugin that had corrupted values, probably after upgrading the mkp.
upgrade succeeded.
thanks