Upgrading Confluence fails and throws 'Could not determine foreign keys for NOTIFICATIONS.PAGEID column' error

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Upgrading Confluence from 4.2.x to 5.4.x fails on MySQL database and the system can't be started.

atlassian-confluence.log に次のメッセージが表示される。

2014-03-31 13:53:17,733 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Could not determine foreign keys for NOTIFICATIONS.PAGEID column
com.atlassian.confluence.upgrade.UpgradeException: Could not determine foreign keys for NOTIFICATIONS.PAGEID column
at com.atlassian.confluence.upgrade.upgradetask.NotificationPageColumnUpgradeTask.dropFKConstraints(NotificationPageColumnUpgradeTask.java:108)
at com.atlassian.confluence.upgrade.upgradetask.NotificationPageColumnUpgradeTask.doUpgrade(NotificationPageColumnUpgradeTask.java:68)
...

診断

環境

  • MySQL

Diagnostic Steps

原因

The cause isn't known at the moment.

ソリューション

  • Roll Back the database to Confluence 4.2.x version of database
  • Run the following queries:

    ALTER TABLE NOTIFICATIONS DROP FOREIGN KEY FK594ACC88C38FBEA;
    
    ALTER TABLE NOTIFICATIONS ADD CONSTRAINT FK594ACC88C38FBEA FOREIGN KEY (PAGEID) REFERENCES CONTENT (CONTENTID);
  • Proceed with the upgrade

最終更新日 2018 年 11 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.