Symptom
During an upgrade to SAP Commerce Cloud 2211.47, the system update (ant updatesystem) fails with the following error while initializing the admin user:
|
[java] INFO [main] [Initialization] ################ Failed to initialize the 'admin' user. Reason: java.lang.IllegalArgumentException: Error decrypting property 'encodedPassword' of item <PK> [java] ERROR [main] [AbstractAntPerformable] Error occurred while performing ant task [java] de.hybris.platform.core.initialization.SystemSetupException: Failed to initialize the 'admin' user. Reason: java.lang.IllegalArgumentException: Error decrypting property 'encodedPassword' of item <PK> [java] at de.hybris.platform.core.DefaultUserInitializer.doInitializeUsers(DefaultUserInitializer.java:71) ~[coreserver.jar:?] [java] ... [java] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] [java] at de.hybris.bootstrap.loader.Loader.execute(Loader.java:144) [ybootstrap.jar:?] [java] at de.hybris.bootstrap.loader.Loader.main(Loader.java:108) [ybootstrap.jar:?] [java] Caused by: java.lang.IllegalArgumentException: Error decrypting property 'encodedPassword' of item <PK> [java] ... [java] Caused by: java.lang.IllegalStateException: error in decryption [java] at de.hybris.platform.util.encryption.ValueEncryptionStrategy.decryptViaOldKey(ValueEncryptionStrategy.java:70) ~[coreserver.jar:?] [java] at de.hybris.platform.core.DefaultUserInitializer.doInitializeUsers(DefaultUserInitializer.java:56) ~[coreserver.jar:?] [java] ... [java] Caused by: javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
|
And the "admin" user is already configured to use a secure password encoding algorithm (Argon2 or BCrypt), as confirmed by the following query:
| select p_passwordencoding from users where p_uid='admin'; |
Read more...
Environment
Product
SAP Commerce Cloud all versions
Keywords
build error, de.hybris.platform.util.encryption.ValueEncryptor, symmetric.key.file.1, decryptDataWithStrategy, decryption error, encodedPassword, initialization failure, admin user , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click
more to access the full version on SAP for Me (Login
required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.