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

Sidecar Elasticsearch process is aborted when starting cluster bundle with jdk11

    Description

    Steps to reproduce:

    1. Set bundles with Cluster environment with following portal-ext.properties
      cluster.link.autodetect.address=
      cluster.link.channel.logic.name.control=control-channel-logic-name
      cluster.link.channel.logic.name.transport.0=transport-channel-logic-name
      cluster.link.enabled=true
      web.server.display.node=true
      

      Add the property

       rootDir="${liferay.home}/data/document_library"

      to fiile "${liferay.home}/osgi/configs/com.liferay.portal.store.file.system.configuration.FileSystemStoreConfiguration.config"

    2. Start the node1
    3. Start node 2 after node1 started

    Actual Result: Fail to start with the following errors

    2021-02-24 11:27:12.458 WARN  [com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarMainProcessCallable@1e52d956[-Xms256m -Xmx512m -Des.path.conf=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316/config -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dio.netty.allocator.type=unpooled -Dio.netty.allocator.numDirectArenas=0 -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316 -Djava.security.policy=jar:file:/opt/dev/projects/github/liferay-portal/bundles/osgi/state/org.eclipse.osgi/253/0/bundleFile!/META-INF/sidecar.policy -Djna.nosys=true]-][Sidecar:628] Sidecar Elasticsearch process is aborted
    java.util.concurrent.ExecutionException: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 137
    	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    	at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar$RestartFutureListener.complete(Sidecar.java:624)
    	at com.liferay.petra.concurrent.DefaultNoticeableFuture$OnceFutureListener.complete(DefaultNoticeableFuture.java:111)
    	at com.liferay.petra.concurrent.DefaultNoticeableFuture.done(DefaultNoticeableFuture.java:85)
    	at java.base/java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
    	at java.base/java.util.concurrent.FutureTask.setException(FutureTask.java:250)
    	at com.liferay.petra.concurrent.DefaultNoticeableFuture.setException(DefaultNoticeableFuture.java:79)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
    	at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 137
    	at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:309)
    	at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:161)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    	... 1 more
    2021-02-24 11:27:12.459 INFO  [com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarMainProcessCallable@1e52d956[-Xms256m -Xmx512m -Des.path.conf=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316/config -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dio.netty.allocator.type=unpooled -Dio.netty.allocator.numDirectArenas=0 -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316 -Djava.security.policy=jar:file:/opt/dev/projects/github/liferay-portal/bundles/osgi/state/org.eclipse.osgi/253/0/bundleFile!/META-INF/sidecar.policy -Djna.nosys=true]-][Sidecar:635] Restarting sidecar Elasticsearch process
    2021-02-24 11:27:12.459 INFO  [com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarMainProcessCallable@1e52d956[-Xms256m -Xmx512m -Des.path.conf=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316/config -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dio.netty.allocator.type=unpooled -Dio.netty.allocator.numDirectArenas=0 -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/temp/sidecar15821119649826219316 -Djava.security.policy=jar:file:/opt/dev/projects/github/liferay-portal/bundles/osgi/state/org.eclipse.osgi/253/0/bundleFile!/META-INF/sidecar.policy -Djna.nosys=true]-][Sidecar:132] Stopping sidecar Elasticsearch
    2021-02-24 11:27:15.404 ERROR [liferay/scheduler_dispatch-2][ParallelDestination:59] Unable to process message {destinationName=liferay/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={GROUP_NAME=com.liferay.portal.workflow.metrics.internal.messaging.WorkflowMetricsSLADefinitionTransformerMessageListener, companyId=20100, groupId=0, DESTINATION_NAME=liferay/scheduler_dispatch, EXCEPTIONS_MAX_SIZE=0, JOB_STATE=com.liferay.portal.kernel.scheduler.JobState@284e836b, STORAGE_TYPE=MEMORY_CLUSTERED, JOB_NAME=com.liferay.portal.workflow.metrics.internal.messaging.WorkflowMetricsSLADefinitionTransformerMessageListener}}
    com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:41)
    	at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper._processMessage(SchedulerEventMessageListenerWrapper.java:127)
    	at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:98)
    	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
    	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.indicesExists(IndicesExistsIndexRequestExecutorImpl.java:74)
    	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.execute(IndicesExistsIndexRequestExecutorImpl.java:43)
    	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.ElasticsearchIndexRequestExecutor.executeIndexRequest(ElasticsearchIndexRequestExecutor.java:118)
    	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:36)
    	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:22)
    	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:91)
    	at com.liferay.portal.workflow.metrics.internal.messaging.WorkflowMetricsSLADefinitionTransformerMessageListener._hasIndex(WorkflowMetricsSLADefinitionTransformerMessageListener.java:141)
    	at com.liferay.portal.workflow.metrics.internal.messaging.WorkflowMetricsSLADefinitionTransformerMessageListener._transform(WorkflowMetricsSLADefinitionTransformerMessageListener.java:147)
    	at com.liferay.portal.workflow.metrics.internal.messaging.WorkflowMetricsSLADefinitionTransformerMessageListener.doReceive(WorkflowMetricsSLADefinitionTransformerMessageListener.java:115)
    	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
    	... 7 more
    Caused by: java.net.ConnectException: Connection refused
    	at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:865)
    	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:275)
    	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:262)
    	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1628)
    	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1598)
    	at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:1016)
    	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.indicesExists(IndicesExistsIndexRequestExecutorImpl.java:70)
    	... 16 more
    Caused by: java.net.ConnectException: Connection refused
    	at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
    	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174)
    	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148)
    	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
    	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
    	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
    	... 1 more
    

      Attachments

        Activity

          People

          Assignee:
          support-lep@liferay.com SE Support
          Reporter:
          linda.sui Linda Sui
          Participants of an Issue:
          Recent user:
          Tibor Lipusz
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            4 weeks, 6 days ago
            Development End Date:

              Packages

              Version Package