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

Publish to Live failed after upgrade and removed file entry

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: DM > Upgrade
    • Labels:

      Description

      Description:
      Steps to reproduce:

      1. Install 6.2 instance
      2. Local Staging is enabled 
      3. Create a basic Document 
      4. Publish to Live
      5. Upgrade Portal to 7.1 instance
      6. Move Document to recycle bin then delete.
      7. Publish to Live

      Expected results: Publication successful
      Actual results: Publication failed (

      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.

      The following error in while exporting its data has stopped the process: No MBMessage exists with the primary key 33538)
      Console:

      ERROR [liferay/background_task-2][BackgroundTaskMessageListener:168] Unable to execute background task com.liferay.exportimport.kernel.lar.PortletDataException: No MBMessage exists with the primary key 33538 at com.liferay.exportimport.kernel.lar.BasePortletDataHandler._handleException(BasePortletDataHandler.java:863) at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:145) at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortletData(PortletExportControllerImpl.java:703) at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortlet(PortletExportControllerImpl.java:455) at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.exportPortlet(StagedGroupStagedModelDataHandler.java:371) at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.exportSitePortlets(StagedGroupStagedModelDataHandler.java:433) at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doExportStagedModel(StagedGroupStagedModelDataHandler.java:227) at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doExportStagedModel(StagedGroupStagedModelDataHandler.java:78) at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:100) at com.liferay.exportimport.data.handler.base.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:76) at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:173) at com.liferay.exportimport.internal.controller.LayoutExportController.doExport(LayoutExportController.java:327) at com.liferay.exportimport.internal.controller.LayoutExportController.export(LayoutExportController.java:126) at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:66) at sun.reflect.GeneratedMethodAccessor2815.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145) at com.sun.proxy.$Proxy110.exportLayoutsAsFile(Unknown Source) at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportLayoutsAsFile(ExportImportLocalServiceUtil.java:46) at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingCallable.call(LayoutStagingBackgroundTaskExecutor.java:330) at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingCallable.call(LayoutStagingBackgroundTaskExecutor.java:314) at com.liferay.portal.spring.transaction.TransactionInvokerImpl$CallableMethodInvocation.proceed(TransactionInvokerImpl.java:101) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54) at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:47) at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28) at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:153) at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62) at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43) at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:75) at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:127) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667) at java.lang.Thread.run(Thread.java:748) Caused by: com.liferay.message.boards.exception.NoSuchMessageException: No MBMessage exists with the primary key 33538 at com.liferay.message.boards.service.persistence.impl.MBMessagePersistenceImpl.findByPrimaryKey(MBMessagePersistenceImpl.java:21146) at com.liferay.message.boards.service.persistence.impl.MBMessagePersistenceImpl.findByPrimaryKey(MBMessagePersistenceImpl.java:21163) at com.liferay.message.boards.service.base.MBMessageLocalServiceBaseImpl.getMBMessage(MBMessageLocalServiceBaseImpl.java:269) at sun.reflect.GeneratedMethodAccessor2979.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67) at com.sun.proxy.$Proxy598.getMBMessage(Unknown Source) at com.liferay.message.boards.service.MBMessageLocalServiceWrapper.getMBMessage(MBMessageLocalServiceWrapper.java:574) at sun.reflect.GeneratedMethodAccessor2979.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67) at com.sun.proxy.$Proxy599.getMBMessage(Unknown Source) at sun.reflect.GeneratedMethodAccessor2979.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145) at com.sun.proxy.$Proxy578.getMBMessage(Unknown Source) at com.liferay.message.boards.internal.exportimport.staged.model.repository.MBMessageStagedModelRepository.getStagedModel(MBMessageStagedModelRepository.java:97) at com.liferay.message.boards.internal.exportimport.staged.model.repository.MBMessageStagedModelRepository.getStagedModel(MBMessageStagedModelRepository.java:33) at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler._exportStagedModel(ChangesetPortletDataHandler.java:235) at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.lambda$_exportChangesetCollection$2(ChangesetPortletDataHandler.java:197) at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:405) at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:315) at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:277) at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:335) at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86) at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler._exportChangesetCollection(ChangesetPortletDataHandler.java:200) at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.doExportData(ChangesetPortletDataHandler.java:127) at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:141)
      

       

      Reproduced on:

      liferay-portal-tomcat-6.2-ee-sp20-20170717160924965, Tomcat 9.0.6, MySQL 5.5

      liferay-dxp-tomcat-7.1-b3-20180611120257571, Tomcat 9.0.6, MySQL 5.7

      Priority: L3 + S4 = 4

        Attachments

          Activity

            People

            • Assignee:
              patricia.perez Patricia Perez
              Reporter:
              tomas.jasica Tomas Jasica
              Participants of an Issue:
              Recent user:
              Michael Saechang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package