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

Lucene ClusterLink Replication fails in SSL only environment

    Details

      Description

      Short description of the client’s issue:
      During a Lucene Reindex with Liferay ClusterLink enabled, the reindex will fail with a method not invoked.

      This issue occurs within an environment in which HTTP traffic is disabled (SSL only)

      			InetAddress inetAddress = clusterNode.getInetAddress();
      
      			URL url = new URL(
      				"http", inetAddress.getHostAddress(), clusterNode.getPort(),
      				"/lucene/dump");
      

      Steps to reproduce / testing done:
      1) Setup two Tomcat application servers (with Liferay installed) for SSL using:

      https://www.liferay.com/group/customer/kbase/-/knowledge_base/article/14406628

      2) Ensure that within the server.xml files that the HTTP connector is commented out. Only the HTTPS connector should be available. (If using both nodes on the same machine, make sure the connector ports are unique)

      3) Add the following properties to both nodes (make sure they are using the same database) to enable cluster link and lucene replication:

      #
      # Clusterlink Properties
      #
      cluster.link.enabled=true
      ehcache.cluster.link.replication.enabled=true
      
      lucene.replicate.write=true
      

      4) Add the following plugins for the nodes:

      5) Startup both nodes.

      6) On Node 1:

      • Add the 'Add Users' and 'Pages' portlets to the page
      • Create a few test users and pages (default settings are fine)

      7) Navigate to Control Panel -> Server Administration -> Reindex all search indexes.

      8) On the first node, once indexing is complete, you should see this message.

      21:20:12,946 INFO [com.liferay.portlet.admin.action.EditServerAction-1][EditServerAction:951] Monitor thread name com.liferay.portlet.admin.action.EditServerAction-1 with thread ID 136 unlocked latch. Notified peers to start index loading.

      9) On the second node, you should see a message in which the method failed to invoke.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 41 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1