Legacy Knowledge Base
公開されました Jun. 30, 2025

java.net.UnknownHostException: artifacts.elastic.co

Written By

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

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

問題

  • Liferayアプリケーションサーバーの起動中に、ログファイルで以下のエラーが発生しました:
     ERROR [Start Level: Equinox Container: 53ada45d-f96c-449b-8a58-e68855c57982][ElasticsearchConnectionManager:70] Elasticsearch sidecar could not be started. 検索はできません。 
    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.Sidecar._installElasticsearchIfNeeded(Sidecar.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.applyConfigurations(SidecarManager.java:117) [bundleFile:?SidecarManager.activate(SidecarManager.java:63) [bundleFile:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native Method) ~[?:] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native Method) ~[?:] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native Method) ~[?invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

環境

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

解像度

  • このエラーは通常、サーバーがプロキシの後ろで動作しているか、インターネットに接続していない場合に発生します。その場合、Liferayは artifacts.elastic.coと接続できません。 これと同じ動作は、liferay_home > elasticsearch-sidecarに移動して確認することができます。
  • インターネット接続が安定しているかどうかを調べる。 インターネット接続が安定している場合は、サーバーがプロキシの後ろで動作していないか確認してください。
  • ただし、インターネットに接続せずにelasticsearch-sidecarを起動するには、以下の手順を実行する:
    1. Liferayを停止します。
    2. elasticsearch-sidecarフォルダをコピー&ペーストします。
    3. liferay_home/OSGi/state を削除する。
    4. liferay_home/work を削除する
    5. liferay_home/tomcat/workを削除する。
    6. liferay_home/tomcat/tempを削除する。
    7. Liferayを再起動します。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base