Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Password Encryption Error When Upgrading from 6.1 to 6.2
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!
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!
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?
It should show up in the startup log if it's reading the file.
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.
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:
(Or MD5 if you were using that one in 6.1)
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)
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™