Error during update 2.2.0p18

CMK version: 2.2.0p18
OS version: all

Error message: assert password_hash is not None

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Hello.

During the update to 2.2.0p18 the given error ocurr:

-|  18/24 Synchronize automationuser secrets...
-|  + "Synchronize automationuser secrets" failed
-| Traceback (most recent call last):
-|   File "/omd/sites/server/lib/python3/cmk/update_config/main.py", line 223, in __call__
-|     action(self._logger, self.update_state.setdefault(action.name))
-|   File "/omd/sites/server/lib/python3/cmk/update_config/plugins/actions/automation_user_secrets.py", line 46, in __call__
-|     assert password_hash is not None
-|            ^^^^^^^^^^^^^^^^^^^^^^^^^
-| AssertionError

The checkmk distibuted environment was multiple updated from 2.1.0 to 2.2.0. Last used patch was 2.0.0p12. Same errer on appliance.
My workaround to fix the error is:

cmk-password automation

After that, the error will not occur again. Can someone confirm it?

Rg, Christian

I would say it can be confirmed, if the automation user is “old” and has no htpasswd entry. This was normal in older setups. It should be handled by the update routine :wink:

2 Likes

Thank’s Andreas. I opened a support request for this to handle this problem.

Hi all.

The Problem will be fixed in Werk
#16464

Rg, Christian