RE: Liferay DXP DB migration issue

thumbnail
guru prasad, modified 7 Years ago. New Member Posts: 15 Join Date: 1/30/12 Recent Posts
Hi Team ,

I am migrating from Liferay 6.2 EE With Mysql 5.7 to Liferay DXP EE Mysql 5.7

But it got failed with below error attached in upgradelog attachement below. Please help me if you have faced such issue

Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: Model com.liferay.dynamic.data.mapping.model.DDMStructure does not support DDM structure permission checking
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:93)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:124)
at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands$UpgradeInfosRunnable.run(ReleaseManagerOSGiCommands.java:503)
... 82 more
thumbnail
David H Nebinger, modified 7 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
DXP?

Have you filed your LESA ticket yet?
thumbnail
Milen Dyankov, modified 7 Years ago. Expert Posts: 310 Join Date: 10/30/12 Recent Posts
You wrote on Slack
i have digged into the code and finally i am able find out for below entity there is no entry in the Resource action table .. what we need to do to fix this ?

com.liferay.document.library.kernel.model.DLFileEntryMetadata
com.liferay.portlet.dynamicdatalists.model.DDLRecordSet
com.liferay.dynamic.data.mapping.model.DDMStructure
com.liferay.portlet.journal.model.JournalArticle
com.liferay.document.library.kernel.util.RawMetadataProcessor


I think this is the issue. For some reason the ResourceActions table was not updated properly.

You also wrote
i have identified the issue.. that is happening due to DDM structure has a classnameid which is of DDMStructure.. after deleting that it proceeded further.


However I don't think that is a solution. Can you revert to the original DB, run the upgrade process and after it fails with "...DDMStructure does not support DDM structure permission checking" run this on your database:

SELECT * FROM ResourceAction where name like '%-com.liferay.dynamic.data.mapping.model.DDMStructure'


and post the result?
Alla Sapozhnikova, modified 5 Years ago. Junior Member Posts: 82 Join Date: 3/2/12 Recent Posts
I got the same problem. Created a support ticket, but to speed things up I am hoping somebody already knows what the problem here is. Attached csv contains results of the sql query that was suggested to run:
SELECT * FROM ResourceAction where name like '%-com.liferay.dynamic.data.mapping.model.DDMStructure'

Just wanted to add the error message is:"ERROR [main][ReleaseManagerOSGiCommands:147] Failed upgrade process for module com.liferay.dynamic.data.mapping.service
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: Model com.liferay.message.boards.model.MBStatsUser does not support DDM structure permission checking "