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

Elasticsearch is not taking into account <http.nonProxyHosts> parameter and fails to connect

    Details

      Description

      Issue
      Elasticsearch Connector tries to connect to REMOTE Elasticsearch through the proxy (which does not exist) and fails to connect.

      Steps to reproduce

      1. Run a remote Elasticsearch 7.9 node
      2. Configure Liferay to connect to remove ES:
        /osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.config
        operationMode="REMOTE"
        productionModeEnabled=B"true"
        
      3. Start Liferay
      4. Go to "CP > Search > Index Actions" and perform a reindex
      5. Go to "CP > Users and Organizations"
        Checkpoint: Make sure test user is listed and search works
      6. Shutdown Liferay
      7. Edit tomcat-9.y.z/bin/setenv.sh
        Add the following proxy settings
        CATALINA_OPTS="$CATALINA_OPTS -Dhttp.nonProxyHosts='localhost|127.0.0.1|192.*'"
        CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=proxysite"
        CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=3128"
        
      8. Start Liferay

      Expected result
      Liferay starts up normally

      Actual result
      Elasticsearch is not taking into account http.nonProxyHosts parameter and fails to connect to Elasticsearch. Search is not available.

      2021-05-19 16:24:56.132 ERROR [main][CompanyLocalServiceImpl:1404] Unable to initialize search engine for company 20102
      java.lang.RuntimeException: java.net.ConnectException: Connection refused
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.cluster.HealthClusterRequestExecutorImpl.getClusterHealthResponse(HealthClusterRequestExecutorImpl.java:102) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.cluster.HealthClusterRequestExecutorImpl.execute(HealthClusterRequestExecutorImpl.java:49) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.cluster.ElasticsearchClusterRequestExecutor.executeClusterRequest(ElasticsearchClusterRequestExecutor.java:53) ~[?:?]
      	at com.liferay.portal.search.engine.adapter.cluster.HealthClusterRequest.accept(HealthClusterRequest.java:40) ~[?:?]
      	at com.liferay.portal.search.engine.adapter.cluster.HealthClusterRequest.accept(HealthClusterRequest.java:22) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.cluster.ElasticsearchClusterRequestExecutor.execute(ElasticsearchClusterRequestExecutor.java:46) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:69) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchSearchEngine.waitForYellowStatus(ElasticsearchSearchEngine.java:344) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchSearchEngine.initialize(ElasticsearchSearchEngine.java:111) ~[?:?]
      	at com.liferay.portal.kernel.search.SearchEngineProxyWrapper.initialize(SearchEngineProxyWrapper.java:59) ~[portal-kernel.jar:?]
      	at com.liferay.portal.search.internal.SearchEngineHelperImpl.initialize(SearchEngineHelperImpl.java:211) ~[?:?]
      	at com.liferay.portal.kernel.search.SearchEngineHelperUtil.initialize(SearchEngineHelperUtil.java:83) ~[portal-kernel.jar:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.preregisterCompany(CompanyLocalServiceImpl.java:1401) [portal-impl.jar:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl._checkCompany(CompanyLocalServiceImpl.java:1924) [portal-impl.jar:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:339) [portal-impl.jar:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) [portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80) [bundleFile:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) [portal-impl.jar:?]
      	at com.sun.proxy.$Proxy67.checkCompany(Unknown Source) [?:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:316) [portal-impl.jar:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) [portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80) [bundleFile:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) [portal-impl.jar:?]
      	at com.sun.proxy.$Proxy67.checkCompany(Unknown Source) [?:?]
      	at com.liferay.portal.kernel.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:123) [portal-kernel.jar:?]
      	at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:275) [portal-impl.jar:?]
      	at com.liferay.portal.internal.servlet.MainServlet._initCompanies(MainServlet.java:798) [portal-impl.jar:?]
      	at com.liferay.portal.internal.servlet.MainServlet.init(MainServlet.java:422) [portal-impl.jar:?]
      	at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:4.0.FR]
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4902) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5211) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:623) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1774) [catalina.jar:9.0.43]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.43]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?]
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1520) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.43]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.43]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:434) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:772) [catalina.jar:9.0.43]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) [bootstrap.jar:9.0.43]
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) [bootstrap.jar:9.0.43]
      Caused by: java.net.ConnectException: Connection refused
      	at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:849) ~[?:?]
      	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:259) ~[?:?]
      	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246) ~[?:?]
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613) ~[?:?]
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583) ~[?:?]
      	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553) ~[?:?]
      	at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:130) ~[?:?]
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.cluster.HealthClusterRequestExecutorImpl.getClusterHealthResponse(HealthClusterRequestExecutorImpl.java:98) ~[?:?]
      	... 86 more
      Caused by: java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]
      	at 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) ~[?:?]
      	at java.lang.Thread.run(Thread.java:834) ~[?:?]
      2021-05-19 16:24:56.598 WARN  [main][PortalInstanceLifecycleListenerManagerImpl:146] Unable to register portal instance {mvccVersion=1, companyId=20102, accountId=20105, webId=liferay.com, mx=liferay.com, homeURL=, logoId=0, system=false, maxUsers=0, active=true}
      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.search.tuning.synonyms.web.internal.index.SynonymSetIndexReaderImpl.isExists(SynonymSetIndexReaderImpl.java:61) ~[?:?]
      	at com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.instance.lifecycle.SynonymSetIndexCreationPortalInstanceLifecycleListener.portalInstanceRegistered(SynonymSetIndexCreationPortalInstanceLifecycleListener.java:45) ~[?:?]
      	at com.liferay.portal.instance.lifecycle.internal.PortalInstanceLifecycleListenerManagerImpl.registerCompany(PortalInstanceLifecycleListenerManagerImpl.java:142) [bundleFile:?]
      	at com.liferay.portal.instance.lifecycle.internal.PortalInstanceLifecycleListenerManagerImpl.registerCompany(PortalInstanceLifecycleListenerManagerImpl.java:60) [bundleFile:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.registerCompany(CompanyLocalServiceImpl.java:1424) [portal-impl.jar:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl$3.call(CompanyLocalServiceImpl.java:2004) [portal-impl.jar:?]
      	at com.liferay.portal.service.impl.CompanyLocalServiceImpl$3.call(CompanyLocalServiceImpl.java:2000) [portal-impl.jar:?]
      	at com.liferay.portal.kernel.transaction.TransactionCommitCallbackUtil$1.doCommitted(TransactionCommitCallbackUtil.java:43) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.transaction.NewTransactionLifecycleListener.committed(NewTransactionLifecycleListener.java:29) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.transaction.TransactionLifecycleManager.fireTransactionCommittedEvent(TransactionLifecycleManager.java:34) [portal-kernel.jar:?]
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.commit(DefaultTransactionExecutor.java:51) [portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:77) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80) [bundleFile:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) [portal-impl.jar:?]
      	at com.sun.proxy.$Proxy67.checkCompany(Unknown Source) [?:?]
      	at com.liferay.portal.kernel.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:123) [portal-kernel.jar:?]
      	at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:275) [portal-impl.jar:?]
      	at com.liferay.portal.internal.servlet.MainServlet._initCompanies(MainServlet.java:798) [portal-impl.jar:?]
      	at com.liferay.portal.internal.servlet.MainServlet.init(MainServlet.java:422) [portal-impl.jar:?]
      	at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:4.0.FR]
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4902) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5211) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:623) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1774) [catalina.jar:9.0.43]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.43]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?]
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1520) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.43]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.43]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:434) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.43]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.43]
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:772) [catalina.jar:9.0.43]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) [bootstrap.jar:9.0.43]
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) [bootstrap.jar:9.0.43]
      Caused by: java.net.ConnectException: Connection refused
      	at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:849) ~[?:?]
      	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:259) ~[?:?]
      	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246) ~[?:?]
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613) ~[?:?]
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583) ~[?:?]
      	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) ~[?:?]
      	... 71 more
      Caused by: java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]
      	at 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) ~[?:?]
      	at java.lang.Thread.run(Thread.java:834) ~[?:?]
      2021-05-19 16:24:56.910 ERROR [main][CommerceMLIndexerPortalInstanceLifecycleListener:93] bundle com.liferay.commerce.machine.learning.impl:5.0.4 (527)[com.liferay.commerce.machine.learning.internal.search.instance.lifecycle.CommerceMLIndexerPortalInstanceLifecycleListener(6568)] : The setCompanyLocalService method has thrown an exception 
      java.lang.RuntimeException: java.net.ConnectException: Connection refused
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.indicesExists(IndicesExistsIndexRequestExecutorImpl.java:74) ~[?:?]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Engineering Assignee:
              Joshua Cords
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                16 weeks, 2 days ago
                Development End Date:
                Development Start Date:

                  Packages

                  Version Package
                  7.3.X
                  7.4.1 CE GA2 DXP 7,4
                  Master