Upgrade Fails Due to Previously Failed Upgrade Attempt on Same JIRA Instance
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
An upgraded JIRA instance fails to start up and displays the following message in the log files:
[c.a.jira.upgrade.UpgradeManagerImpl] Problem adding upgrade task Drops the entityproperty_identity index in entity_property table to the upgrade history
com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:UpgradeHistory][targetbuild,64016][upgradeclass,com.atlassian.jira.upgrade.tasks.UpgradeTask_Build64016][downgradetaskrequired,Y][id,10820][status,complete] (SQL Exception while executing the following:INSERT INTO upgradehistory (ID, UPGRADECLASS, TARGETBUILD, STATUS, DOWNGRADETASKREQUIRED) VALUES (?, ?, ?, ?, ?) (Duplicate entry 'com.atlassian.jira.upgrade.tasks.UpgradeTask_Build64016' for key 'PRIMARY'))
at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.createValue(DefaultOfBizDelegator.java:398)
at com.atlassian.jira.ofbiz.WrappingOfBizDelegator.createValue(WrappingOfBizDelegator.java:219)
at com.atlassian.jira.upgrade.UpgradeManagerImpl.addToUpgradeHistory(UpgradeManagerImpl.java:966)
Caused by: org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:INSERT INTO upgradehistory (ID, UPGRADECLASS, TARGETBUILD, STATUS, DOWNGRADETASKREQUIRED) VALUES (?, ?, ?, ?, ?) (Duplicate entry 'com.atlassian.jira.upgrade.tasks.UpgradeTask_Build64016' for key 'PRIMARY')
at org.ofbiz.core.entity.jdbc.SQLProcessor.executeUpdate(SQLProcessor.java:684)
at org.ofbiz.core.entity.GenericDAO.singleInsert(GenericDAO.java:205)原因
The instance you are attempting to upgrade has already had one upgrade attempt against it. What has happened is that the database has not been properly rolled back to the state prior to the original upgrade attempt which causes a conflict when creating new tables.
ソリューション
Ensure that the home directory and database are returned to the state from before the original upgrade attempt.
この内容はお役に立ちましたか?