RE: Password Encryption Error When Upgrading from 6.1 to 6.2

sammy fattah, modified 6 Years ago. New Member Posts: 3 Join Date: 9/6/19 Recent Posts
Hello,

I have been trying to upgrade from 6.1 to 6.2, and now I'm close to having a break down.
After upgrading I am receiving the following error after I login.

10:39:42,269 ERROR [http-bio-8080-exec-15][LoginAction:131] com.liferay.portal.PwdEncryptorException: Password upgrade was not successfully configured. Please set the property "passwords.encryption.algorithm.legacy" with the previous password encryption algorithm and restart.
com.liferay.portal.PwdEncryptorException: Password upgrade was not successfully configured. Please set the property "passwords.encryption.algorithm.legacy" with the previous password encryption algorithm and restart.
     
However, I have  passwords.encryption.algorithm.legacy=MD5 in my 6.1 legacy properties file.

Is there any other reasons this might be occurring?
Thanks for your help!
thumbnail
Amos Fong, modified 6 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts
I think the password encryption algorithm in 6.1 was SHA
https://docs.liferay.com/ce/portal/6.1/propertiesdoc/portal.properties.html#Passwords

Did you startup liferay with the property?

-Dexternal-properties=portal-legacy-6.1.properties

It should show up in the startup log if it's reading the file.
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Amos is right, SHA was the previous encryption algorithm so if you didn't change it in 6.1 you have to use it.
it's easier that you just add the following property to your portal-ext.properties during the startup of 6.2:
passwords.encryption.algorithm.legacy=SHA

(Or MD5 if you were using that one in 6.1)