When running the Configuration Wizard it shows a pop-up with the error:
"Failed to change the password for admin user"
\HPBSM\log\configserver\configserver_all.log shows something similar to:
2017-01-19 12:29:15,586 [pool-2-thread-1] (Step.java:74) INFO - *** Executing step: change_login_password
2017-01-19 12:29:15,586 [pool-2-thread-1] (JavaTask.java:68) INFO - Start java task: com.hp.bsm.platform.security.crypt.LoginSecurityTask
2017-01-19 12:29:15,601 [pool-2-thread-1] (LegacySecurityUtils.java:51) ERROR - Failed to decrypt string returning null...
java.lang.NumberFormatException: For input string: "pa"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
.....
at java.lang.Thread.run(Thread.java:745)
2017-01-19 12:29:15,617 [pool-2-thread-1] (Step.java:82) ERROR - Task execution failed
com.mercury.infra.flowmngr.exceptions.JavaTaskInstantiationException: Failed to instantiate java task com.hp.bsm.platform.security.crypt.LoginSecurityTask
at com.mercury.infra.flowmngr.model.JavaTask.execute(JavaTask.java:89)
at com.mercury.infra.flowmngr.model.Step.executeStep(Step.java:79)
at com.mercury.infra.flowmngr.FlowManager.run(FlowManager.java:206)
at com.mercury.infra.wizard.WizardController$FlowManagerRunner.doInBackground(WizardController.java:87)
at com.hp.acm.swing.executor.SwingJob$SwingJobWorker.doInBackground(SwingJob.java:319)
at javax.swing.SwingWorker$1.call(SwingWorker.java:296)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at javax.swing.SwingWorker.run(SwingWorker.java:335)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Failed to change the password for admin user
at com.hp.bsm.platform.security.crypt.LoginSecurityTask.execute(LoginSecurityTask.java:28)
at com.mercury.infra.flowmngr.model.JavaTask.execute(JavaTask.java:79)
... 10 more
The cause of this error is that on USERS table (management schema) the password for admin user is in plain text
Execute this query against management schema to be sure that this is the issue
SELECT * FROM USERS WHERE USER_LOGIN ='admin'
If USER_PASSWORD column is in plain text, this is the cause of the error
The workaround to fix this issue is:
1. Make a backup of USERS table
2. Update password to "admin" (default one)
UPDATE USERS SET USER_PASSWORD='admin' where USER_LOGIN ='admin'
3. Change the parameter USER_DBETYPE to let BSM know that password is in plain text
UPDATE USERS SET USER_DBETYPE =0 where USER_LOGIN ='admin'
0 means plain text and 1 encrypted
4. Run the configuration wizard again and set the credentials.
After that, the password should be now encrypted on USERS table and USER_DBETYPE set to 1 again
Regards,
Elena Rojas
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.