Issue
-
When upgrading to a Quarterly Release, coming from an old DXP version, the upgrade fails because of some Elasticsearch errors that can be seen in the logs:
-
ERROR [main][ROOT:47] bundle com.liferay.portal.search.elasticsearch7.impl:6.0.111 (1114)[com.liferay.portal.search.elasticsearch7.internal.ElasticsearchSearchEngine(5236)] : The activate method has thrown an exception
org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=exception, reason=Content-Type header [application/vnd.elasticsearch+json;compatible-with=7] is not supported]
-
Environment
- Liferay Quarterly Release
- Elasticsearch 7
Resolution
- The error indicates that an unsupported version of Elasticsearch is being used while the upgrade is running, therefore resulting in the upgrade failure.
- As you can see here: Search Engine Compatibility Matrix, you have to be using at least Elasticsearch 7.17.x to be successful on your upgrade attempt. We recommend moving to 7.17.x before performing another upgrade and as soon as you do that, please retry the upgrade process.
Additional Information
- We also recommend upgrading to Elasticsearch 8.x. as soon as possible since 7.17.x is expected to reach EOL (End of Life) in early 2025.
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン