Details

    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Import attached database to mysql
      2. Set upgrade properties for jboss in LIFERAY.HOME/tools/portal-tools-db-upgrade-client/
        • portal-upgrade-database.properties
          jdbc.default.url=jdbc:mysql://localhost/lportal?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&useFastDateParsing=false&useUnicode=true
          jdbc.default.driverClassName=com.mysql.jdbc.Driver
          jdbc.default.username=
          jdbc.default.password=
          
      3. Add mysql.jar to LIFERAY.HOME/jboss-eap-6.4.0/modules/com/liferay/portal/main/
      4. Add
        <resource-root path="mysql.jar" />

        to LIFERAY.HOME/jboss-eap-6.4.0/modules/com/liferay/portal/main/module.xml

      5. Edit app.server.properties
         extra.lib.dirs=modules/system/layers/base/javax/mail,modules/system/layers/base/javax/persistence,modules/system/layers/base/javax/servlet,modules/system/layers/base/javax/transaction
      6. Run upgrade

      Expected Result:
      Upgrade can be run on Jboss.

      Actuall Result:
      Upgrade fails to run with error message.

      9:14:47,991 WARN  [liferay/search_writer/SYSTEM_ENGINE-1][ProxyMessageListener:84] com.liferay.portal.kernel.search.SearchException: failure in bulk execution:_[0]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]]_[1]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]] [Sanitized]
      com.liferay.portal.kernel.search.SearchException: failure in bulk execution:_[0]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]]_[1]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]] [Sanitized]
      	at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.updateDocument(ElasticsearchUpdateDocumentCommandImpl.java:71)
      	at com.liferay.portal.search.elasticsearch.internal.ElasticsearchIndexWriter.updateDocument(ElasticsearchIndexWriter.java:253)
      	at sun.reflect.GeneratedMethodAccessor312.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.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
      	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:745)
      09:14:48,035 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[0]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]]_[1]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]] [Sanitized]
      09:14:48,035 WARN  [liferay/search_writer/SYSTEM_ENGINE-3][ProxyMessageListener:84] com.liferay.portal.kernel.search.SearchException: failure in bulk execution:_[0]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]]_[1]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]] [Sanitized]
      com.liferay.portal.kernel.search.SearchException: failure in bulk execution:_[0]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]]_[1]: index [liferay-10154], type [LiferayDocumentType], id [com.liferay.document.library.kernel.model.DLFolder_PORTLET_13234], message [[liferay-10154] IndexNotFoundException[no such index]] [Sanitized]
      	at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.updateDocument(ElasticsearchUpdateDocumentCommandImpl.java:71)
      	at com.liferay.portal.search.elasticsearch.internal.ElasticsearchIndexWriter.updateDocument(ElasticsearchIndexWriter.java:253)
      	at sun.reflect.GeneratedMethodAccessor312.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.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
      	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:745)
      

      Reproduced on:
      Jboss eap-6.4.0 + MySQL 5.7 + Ubuntu 16

        Attachments

        1. app-server.properties
          0.4 kB
        2. data_bp_61305.zip
          116 kB
        3. liferay.2016-11-23.log
          497 kB
        4. portal-upgrade-database.properties
          0.3 kB
        5. portal-upgrade-ext.properties
          1 kB
        6. upgrade.log
          564 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 50 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP SP1