問題
- 7.4へのアップグレード中に、 com.liferay.portal.upgrade.v7_4_x.UpgradeCompanyId.UpgradeCompanyId.UpgradeCompanyIdプロセスで致命的なエラーが発生しました:
INFO [main][UpgradeProcess:145] Failed upgrade process com.liferay.portal.upgrade.v7_4_x.UpgradeCompanyId in 76 ms
INFO [main][PortalUpgradeProcess:190] Failed upgrade process com.liferay.portal.upgrade.PortalUpgradeProcess in 23167 ms
ERROR [main][DBUpgrader:79] null
com.liferay.portal.kernel.log.LogSanitizerException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: aggregate functions are not allowed in UPDATE Position: 54
-
PostgreSQLのログにこのエラーがあります。
ERROR: aggregate functions are not allowed in UPDATE at character 54
STATEMENT: update PortalPreferenceValue set companyId = (select max(companyId) from PortalPreferences where PortalPreferences.portalPreferencesId > 0 and PortalPreferences.portalPreferencesId = PortalPreferenceValue.portalPreferencesId)
Environment
- Liferay 7.4にアップグレードしてください。
- ジャバ8
解決策
- このエラーを回避するには、 Java 11を使用します。
- https://liferay.atlassian.net/browse/LPS-186837。
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン