I’m having the same issue. New user trialling checkMK, 2.1.0p9 Enterprise Free.
Exception: Error running automation call bake-agents (exit code 2), error:
Error creating agent for GENERIC: Error in bakery plugin "agent_encryption" ("files" section): 'use_regular'
Traceback (most recent call last):
File "/omd/sites/cmk/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 328, in _collect_bakelet_objects
objects += function(**func_args)
File "/omd/sites/cmk/lib/python3/cmk/base/cee/api/bakery/function_types.py", line 103, in filtered_generator
for element in function(*args, **kwargs):
File "/omd/sites/cmk/lib/python3/cmk/base/cee/plugins/bakery/agent_encryption.py", line 29, in get_agent_encryption_files
conf["passphrase"], conf["use_regular"], conf["use_realtime"]
KeyError: 'use_regular'