Multiple errors in upgrading Liferay from 6.2 to 7.2Multiple errors in upgrading Liferay from 6.2 to 7.2https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1180303992024-03-28T22:08:57Z2024-03-28T22:08:57ZRE: Multiple errors in upgrading Liferay from 6.2 to 7.2Alberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180829202019-12-15T02:33:06Z2019-12-15T02:33:06ZHi Sam,We are here to help, really happy you completed the upgrade :-)<br />Thanks.Alberto Chaparro2019-12-15T02:33:06ZRE: Multiple errors in upgrading Liferay from 6.2 to 7.2Sam Colletthttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180724282019-12-13T16:02:24Z2019-12-13T16:02:24ZHi Alberto,<br />The first error appeared to be data related, I have en_GB as the only language in the database, so as a result there are templates set that only don't have en_US (resulting in the null).<br />The second error was encoding related, some of the columns were latin1, so setting the tables to utf8 and removing the collation from the columns fixed the OSGI related issues.<br />Setting the legacy algorithm fixed the login issue and since the OSGI modules now deploy properly I can see the sites and content as expected.<br />Thanks again for the help.Sam Collett2019-12-13T16:02:24ZRE: Multiple errors in upgrading Liferay from 6.2 to 7.2Alberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180315652019-12-09T17:11:34Z2019-12-09T17:11:34ZHi Sam,<br />Regarding this:<br /><em></em><br /><em>2019-12-09 14:50:14.141 INFO [main][UpgradeProcess:107] Failed upgrade process com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal in 6250 ms<br />INFO - Failed upgrade process com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal in 6250 ms<br />2019-12-09 14:50:14.157 ERROR [main][ReleaseManagerOSGiCommands:147] Failed upgrade process for module com.liferay.journal.service<br />com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.dynamic.data.mapping.exception.TemplateNameException: Name is null</em><br /><br />Be sure that you have configure the locales in the same way you have them in 6.1. Review the name for all DDMTemplate records in 6.2.<em>2019-12-09 </em><br /><em>15:21:15.005 ERROR [http-nio-8080-exec-9][LoginMVCActionCommand:147] com.liferay.portal.kernel.exception.PwdEncryptorException: invalid keyLength value<br />com.liferay.portal.kernel.exception.PwdEncryptorException: invalid keyLength value<br /> at com.liferay.portal.security.pwd.PBKDF2PasswordEncryptor.encrypt(PBKDF2PasswordEncryptor.java:90)</em><br />This is common when you haven't configured the property<br />passwords.encryption.algorithm.legacy<br />before the upgrade to 6.2:<br />https://portal.liferay.dev/docs/6-2/deploy/-/knowledge_base/d/upgrading-liferay#review-the-liferay-62-properties-defaults<br />You have to keep that property in 7.2 too.Alberto Chaparro2019-12-09T17:11:34ZRE: Multiple errors in upgrading Liferay from 6.2 to 7.2David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180288992019-12-09T16:31:20Z2019-12-09T16:31:20ZHey, Sam, welcome.<br /><br />The first error looks like a data issue. This typically requires some kind of cleanup to resolve. Typically I will start with a backup of the database, try the upgrade, and on failed records I'll investigate the failure. Sometimes the record gets deleted, sometimes the data just needs to be populated, etc. But I maintain an SQL file w/ all of my "fixes" in it.<br /><br />Then I restore the database, run my "fixing" SQL script, then try the upgrade again. Wash, rinse, repeat until you get successfully through the upgrade. The good news is that the script you end up with is ready to run against your prod database when you're ready. It's hard to provide a specific resolution to each data problem because they can be varied per environment.<br /><br />The second error looks like it is related to UTF8 charset. I'm not sure how you created your database, but Liferay does expect that the database will be created using the utf8 charset. Since you're getting errors on it, either the database is not set up for UTF8 or your connection profile isn't using UTF8 or maybe you have an older driver or ... Not sure, but it is definitely connected with UTF8 interpretation.David H Nebinger2019-12-09T16:31:20ZMultiple errors in upgrading Liferay from 6.2 to 7.2Sam Colletthttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180303982019-12-09T15:18:23Z2019-12-09T15:18:23ZI am doing some work on upgrading a Liferay 6.1 site to Liferay 7.2, so far I have managed to upgrade Liferay 6.1 to Liferay 6.2, but I cannot upgrade from 6.2 to 7.2.<br />I am getting the following error when upgrading from Liferay 6.2 to 7.2: <br /><br />2019-12-09 14:50:14.141 INFO [main][UpgradeProcess:107] Failed upgrade process com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal in 6250 ms<br />INFO - Failed upgrade process com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal in 6250 ms<br />2019-12-09 14:50:14.157 ERROR [main][ReleaseManagerOSGiCommands:147] Failed upgrade process for module com.liferay.journal.service<br />com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.dynamic.data.mapping.exception.TemplateNameException: Name is null<br /> <br />I am also getting an error in setting up the market place apps (files in OSGI download), this error is repeated for each application: <br /><br />2019-12-09 14:50:24.125 ERROR [main][JDBCExceptionReporter:234] Incorrect string value: '\xC2\x80\xC2\x99re...' for column `liferay`.`marketplace_app`.`description` at row 1<br />2019-12-09 14:50:24.141 ERROR [main][LPKGDeployerRegistrar:230] Unable to track installed app Liferay CE Forms and Workflow - Liferay CE Portal Rules Engine - API with Marketplace<br />org.hibernate.exception.DataException: Could not execute JDBC batch update<br /><br />The database backend is Maria DB 10.4<br /><br />When I visit the site in the browser, I can see the navigation menu, but no content. Logging in doesn't work and results in the following error:<br /><br />2019-12-09 15:21:15.005 ERROR [http-nio-8080-exec-9][LoginMVCActionCommand:147] com.liferay.portal.kernel.exception.PwdEncryptorException: invalid keyLength value<br />com.liferay.porta