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

RankingIndexCreationBundleActivatorのアップグレード後のエラーについて

Written By

Debora Vita

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.

問題

  • アップグレードを実行した後、ログに次のようなエラーが見つかりました:

    2023-11-29 22:13:14.432 ERROR [SystemExecutorServiceUtil-4-com.liferay.portal.spring.extender.internal.configuration.ServiceConfigurationInitializer-com.liferay.portal.lock.service][ROOT:47] bundle com.liferay.portal.search.tuning.rankings.web:3.0.67 (1283)[com.liferay.portal.search.tuning.rankings.web.internal.index.creation.activator.RankingIndexCreationBundleActivator(10040)] : The activate method has thrown an exception

    java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[method [HEAD], host [https://esaas-src-p.bankofamerica.com], URI [/liferay-search-tuning-rankings?include_type_name=true], status line [HTTP/1.1 403 Forbidden]]; nested: ResponseException[method [HEAD], host [https://esaas-src-p.bankofamerica.com], URI [/liferay-search-tuning-rankings?include_type_name=true], status line [HTTP/1.1 403 Forbidden]];

    at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2458) ~[?:?]

    at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2184) ~[?:?]

    at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137) ~[?:?]

    at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:1321) ~[?:?]

    at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl._indicesExists(IndicesExistsIndexRequestExecutorImpl.java:61) ~[?:?]

    at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.execute(IndicesExistsIndexRequestExecutorImpl.java:34) ~[?:?]

環境

  • DXP 7.4

解像度

  • 起動時に、 SingleIndexToMultipleIndexImporterImpl クラスは、古い liferay-search-tuning-ranking インデックスから新しい liferay-<companyId>-search-tuning-ranking インデックスに結果ランキングをインポートしようとします。 ポータルは、環境が新しいものか、インデックスの名前が liferay-search-tuning-rankingsであった以前のバージョンから移行されたものかを知らないため、これは起動のたびに起こります。
  • 環境が新規インストールの場合、 liferay-search-tuning-rankings インデックスはまったく存在しないが、インポートはまだ実行されようとする。
  • このエラーはインストールに影響しないので無視するか、古いインデックス名のユーザーにアクセス権を与えることで解決することをお勧めします。
Did this article resolve your issue ?

Legacy Knowledge Base