Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-58106

Unable to perform an upgrade because VerifyPermission never ends

    Details

      Description

      Steps to reproduce it:

      1. Startup Liferay 7 using Oracle.
      2. Log in as a portal administrator.
      3. Go to control panel/server administration/Script and execute the attached groovy script populateResourcePermissions_updated.groovy for master branch or _populateResourcePermissions_62x.groovy for 6.2.x (it will take time since it creates a lot of data, almost an hour in my case with the default JVM tuning options)
      4. Shutdown the portal.
      5. Add the following properties to your portal-ext.properties:
        verify.frequency=-1
        verify.processes=com.liferay.portal.verify.VerifyPermission
        
      6. Startup the portal.

      Results:
      The upgrade/process will never end and the last trace you will see in the log will be this:

      12:46:56,529 INFO  [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyPermission

      Technical notes:
      LPS-53563 added a really heavy query over resource permission table. See com.liferay.portal.verify.VerifyPermission.fixUserDefaultRolePermissions()

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 26 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2
                  7.0.0 DXP FP1
                  7.0.2 CE GA3
                  7.0.0 DXP SP1
                  7.0.3 CE GA4