legacy-knowledge-base
公開されました Jun. 30, 2025

すでに使用されているアドレス

written-by

Dávid Hegedüs

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

learn-legacy-article-disclaimer-text

問題

  • ポータルの起動時やアップグレードの開始時に、以下のようなログが表示されるエラーが発生することがあります:
ERROR [Start Level: Equinox Container: 2d84ba28-dd0e-414a-bade-686084455d7c][ElasticsearchConnectionManager:81] Elasticsearch sidecar could not be started. Search will be unavailable. Manual installation of Elasticsearch and activation of remote mode is recommended.
java.lang.RuntimeException: com.liferay.petra.process.ProcessException: Unable to start elasticsearch server
at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar._startElasticsearch(Sidecar.java:583) ~[bundleFile:?]
at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar.start(Sidecar.java:116) ~[bundleFile:?]
...
Caused by: org.elasticsearch.bootstrap.StartupException: BindHttpException[Failed to bind to [::1]:9201]; nested: BindException[Address already in use];
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[?:?]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[?:?]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[?:?]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[?:?]
at org.elasticsearch.cli.Command.main(Command.java:77) ~[?:?]
...

Environment

  • Liferay DXP 7.0+

解決策

  • Elasticsearchに設定したポートが使用中でないことを確認します。
  • sidecarについては、 com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.config ファイルで以下の設定を行えば、このエラーを簡単に防ぐことができます:
    sidecarHttpPort="AUTO"

追加情報

  • アップグレード作業中も、安定したElasticsearch接続が必要であることに留意する必要があります。

did-this-article-resolve-your-issue

legacy-knowledge-base