Error while updating version from 2.2 to 2.3

CMK version:2.3.0.cre
OS version:CentOS Linux release 8.3.2011

Error message:

While update from 2.2.0p14 to 2.3, got below Error. Please help to sort it out.

=================================================================
-| + “Synchronize automationuser secrets” failed
-| Traceback (most recent call last):
-| File “/omd/sites/mom01/lib/python3/cmk/update_config/main.py”, line 262, in update_config
-| action(logger, update_state.setdefault(action.name))
-| File “/omd/sites/mom01/lib/python3/cmk/update_config/plugins/actions/automation_user_secrets.py”, line 56, in call
-| if matches(automation_user_password, password_hash):
-| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-| File “/omd/sites/mom01/lib/python3/cmk/utils/crypto/password_hashing.py”, line 90, in matches
-| return bcrypt.checkpw(password.raw_bytes, password_hash.encode(“utf-8”))
-| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-| ValueError: Invalid salt

==================================================================

Thanks in Advance.

Regards,
DD

Did you manage to resolve this issue ? i encounter the same

Weird, the error is there but the site just started when running omd start
For what it matters, i went into setup->users->automation and resetted the password

Doesn’t seam to effect other functions

Same here,

Ubuntu 22.04 performing update from 2.2.0p34 to 2.3.0p16

-|  13/23 Synchronize automationuser secrets...
-| Automationuser's ('removedusername') secret does not match the password hash in etc/htpasswd. Updating the hash.
-|  + "Synchronize automationuser secrets" failed
-| Traceback (most recent call last):
-|   File "/omd/sites/ekromon_purdey/lib/python3/cmk/update_config/main.py", line 268, in update_config
-|     action(logger, update_state.setdefault(action.name))
-|   File "/omd/sites/ekromon_purdey/lib/python3/cmk/update_config/plugins/actions/automation_user_secrets.py", line 56, in __call__
-|     if matches(automation_user_password, password_hash):
-|        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-|   File "/omd/sites/ekromon_purdey/lib/python3/cmk/utils/crypto/password_hashing.py", line 90, in matches
-|     return bcrypt.checkpw(password.raw_bytes, password_hash.encode("utf-8"))
-|            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-| ValueError: Invalid salt

Am able to start the site without issues.

Hi Dinesh,

I have removed the automation user altogether.

Will recreate after I have upgraded the entire setup.

Hey,

we identified the issue and fixed it with Werk 17343 yet to be released.

Happy holidays
Max

1 Like