Legacy Knowledge Base
Published Jun. 30, 2025

java.net.UnknownHostException: artifacts.elastic.co

Written By

Pooja Bhambani

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • While starting the Liferay application server, the below error is encountered in the log file:
     ERROR [Start Level: Equinox Container: 53ada45d-f96c-449b-8a58-e68855c57982][ElasticsearchConnectionManager:70] Elasticsearch sidecar could not be started. Search will be unavailable. Manual installation of Elasticsearch and activation of remote mode is recommended.
    java.lang.RuntimeException: java.net.UnknownHostException: artifacts.elastic.co
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.ElasticsearchInstaller.install(ElasticsearchInstaller.java:62) ~[bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar._installElasticsearchIfNeeded(Sidecar.java:534) ~[bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar.start(Sidecar.java:93) ~[bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarManager.lambda$applyConfigurations$0(SidecarManager.java:110) ~[bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.connection.ElasticsearchConnection.connect(ElasticsearchConnection.java:52) ~[bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.connection.ElasticsearchConnectionManager.addElasticsearchConnection(ElasticsearchConnectionManager.java:64) [bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarManager.applyConfigurations(SidecarManager.java:117) [bundleFile:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarManager.activate(SidecarManager.java:63) [bundleFile:?]
    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) ~[?:?]

Environment

  • Liferay DXP 7.3
  • Liferay DXP 7.4
  • 2023.Q3
  • 2023.Q4

Resolution

  • This error usually occurs when the server is running behind a proxy or without an internet connection; in that case, Liferay isn't able to connect with artifacts.elastic.co. This same behavior can be confirmed by navigating to liferay_home > elasticsearch-sidecar, the folder will be empty.
  • Examine whether your internet connection is stable or not. If the internet connection is stable, then check if your server is running behind the proxy.
  • However, to start elasticsearch-sidecar without an internet connection, perform the following steps:
    1. Stop Liferay.
    2. Copy and paste the elasticsearch-sidecar folder (Copy this folder where elasticsearch-sidecar is running perfectly)
    3. Delete liferay_home/OSGi/state
    4. Delete liferay_home/work
    5. Delete liferay_home/tomcat/work
    6. Delete liferay_home/tomcat/temp
    7. Restart Liferay.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base