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: NoSuchResourcePermissionException and empty user list after migration t
Hi, we recently migrated our database to Liferay portal version 7. However, after launching portal and logging in, we are unable to add portlets to existing sites. From log file:
com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=10132, name=com.liferay.document.library.kernel.model.DLFileEntryType, primKey=1360702, scope=4}
That line appears after clicking the '+' icon in the top right corner. After clicking "Add" next to selected portlet, a box with "There was an unexpected error. Please refresh the current page" message pops up, refreshing does nothing. It is possible to add portlets to newly created pages, but the old ones.
Second problem - user list in Users and Organizations page is empty, although all users are clearly visible in the database. We tried reindexing all indexes multiple times - doesn't work.
Any help will by greatly appreciated.
Hi Konrad,
Regarding the permission issue, from which version of Liferay are you upgrading? Did you see any exception or warning in the upgrade log?
Regarding the user list, could you connect directly to the index and check if the users are there, it usually takes some time to reindex everything. Are you using the embedded elastic search? Use elastic search server instead. You can also try to activate index traces (I dont remember the exact package but you can search for it in the control panel) before reindexing.
I hope it helps.
Thank you for your reply. Indexing issue has been resolved and user account that tries to add portlets has Administrator and Power User roles assigned to it. We are upgrading from 6.0.6 to 6.2 and then to 7.0.4. There were no errors during the process, but while LFR7 is running, following exception pops up from time to time:
No bean named 'com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService' is defined
We'll be trying to upgrade to 7.0.3 first and then to 7.0.4, maybe this will help because last time, couple of months ago when migration of that DB was being done, it was done this way and it worked okay.
EDIT: Upgrading from 6.2 to 7.0.3 first and then to 7.0.4 seems to have worked. But during upgrade to 7.0.3 the process made a thread dump for some reason, paused and then resumed.