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

Unsatisfied references for modules on startup with Auto-Upgrade

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Description
      Auto-upgrade has race conditions that constantly occur on startup. Altough they dont seem to completely break the portal/upgrade, it can often cause our upgrade tests to fail on CI due to the errors being thrown.

      Steps to Reproduce

      1. Import attached data dump
      2. Run ant -f build-test.xml prepare-portal-ext-properties to match CI properties
      3. Add database.run.auto.upgrade=true in portal-ext.properties
      4. Start Portal
      5. Repeat 1-4 if necessary to reproduce (up to 5 times max should be enough)

      Expected Result
      Portal starts with no errors

      Actual Result
      Portal starts up succesfully, but with errors thrown

      Example Errors

      2021-06-11 17:30:04.962 WARN  [main][SystemCheckOSGiCommands:137] Declarative Service Unsatisfied Component Checker check result: _Bundle {id: 182, name: com.liferay.portal.security.service.access.policy.web, version: 5.0.4}_	Declarative Service {id: 333, name: com.liferay.portal.security.service.access.policy.web.internal.application.list.SAPPanelApp, unsatisfied references: _		{name: Portlet, target: (javax.portlet.name=com_liferay_portal_security_service_access_policy_web_portlet_SAPPortlet)}_	}_Bundle {id: 306, name: com.liferay.journal.web, version: 5.0.10}_	Declarative Service {id: 4978, name: com.liferay.journal.web.internal.application.list.JournalPanelApp, unsatisfied references: _		{name: Portlet, target: (javax.portlet.name=com_liferay_journal_web_portlet_JournalPortlet)}_	}_Bundle {id: 340, name: com.liferay.commerce.account.group.admin.web, version: 4.0.2}_	Declarative Service {id: 5155, name: com.liferay.commerce.account.group.admin.web.internal.application.list.CommerceAccountGroupPanelApp, unsatisfied references: _		{name: Portlet, target: (javax.portlet.name=com_liferay_commerce_account_group_admin_web_internal_portlet_CommerceAccountGroupAdminPortlet)}_	}_Bundle {id: 370, name: com.liferay.commerce.product.options.web, version: 4.0.4}_	Declarative Service {id: 5242, name: com.liferay.commerce.product.options.web.internal.application.list.CPSpecificationOptionsPanelApp, unsatisfied references: _		{name: Portlet, target: (javax.portlet.name=com_liferay_commerce_product_options_web_internal_portlet_CPSpecificationOptionsPortlet)}_	} [Sanitized]
      
      

      Log
      https://gist.github.com/kyle-miho/8f4b19e8fc8ef13e557a16945f5754f8

      Tested on Tomcat 9.0.43 + MySQL 5.7
      Portal master GIT ID: 05d05b93a9282ada19e000cd9afde9c9e600824e

        Attachments

          Activity

            People

            Assignee:
            team-upgrades Product Team Upgrades
            Reporter:
            kyle.miho Kyle Miho
            Participants of an Issue:
            Recent user:
            Kyle Miho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              14 weeks ago

                Packages

                Version Package