"JIRA Software is currently unavailable" error after upgrading to JIRA 7 or newer


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


プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。

問題 1

After performing an upgrade to JIRA 7.0, the error message "JIRA Software is currently unavailable" is seen. This might be because an upgrade task has failed to run or has not yet completed" is displayed on the top of the page despite upgrading JIRA Software to the latest version.

The following appears in the atlassian-jira.log:

2015-12-22 11:17:23,423 localhost-startStop-1 ERROR [c.a.s.core.upgrade.PluginUpgrader] Upgrade failed: com.pyxis.greenhopper.jira.fields.NotSupported cannot be cast to com.pyxis.greenhopper.jira.fields.CustomIssueField
java.lang.ClassCastException: com.pyxis.greenhopper.jira.fields.NotSupported cannot be cast to com.pyxis.greenhopper.jira.fields.CustomIssueField
at com.pyxis.greenhopper.jira.configurations.ScrumDefaultConfiguration.getFlagField(ScrumDefaultConfiguration.java:261)
at com.pyxis.greenhopper.jira.configurations.ScrumDefaultConfiguration.init(ScrumDefaultConfiguration.java:99)
at com.atlassian.greenhopper.upgrade.GhUpgradeTask002.initScrumConfiguration(GhUpgradeTask002.java:105)
at com.atlassian.greenhopper.upgrade.GhUpgradeTask002.doUpgrade(GhUpgradeTask002.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

原因 1

JIRA is unable to find certain system fields that comes with the bundled plugins. Without these fields, the JIRA Software plugin will be unable to upgrade reliably.

Go to Resolution 1.

問題 2

If JIRA Software was mistakenly upgraded to a later version and reverting back shows the error "JIRA Software is currently unavailable" but nothing is shown in the logs.

Restarting JIRA does not resolve this issue, and the only evidence that JIRA Software (Agile) was upgraded during start up logs as below (pay attention to task number 41 and 42 in example) -

The following JIRA Agile upgrade tasks have been run on this system
        JAG UpgradeTask  41 started at 07 Mar 2017 12:14 within JAG v7.0.11 (63b8de25536543e7)
        JAG UpgradeTask  41 ended   at 07 Mar 2017 12:14 within JAG v7.0.11 (63b8de25536543e7) and took 0 ms
        JAG UpgradeTask  42 started at 10 Oct 2018 03:31 within JAG v7.12.0-DAILY20180906101548 (41d291e8587c10b9)
        JAG UpgradeTask  42 ended   at 10 Oct 2018 03:31 within JAG v7.12.0-DAILY20180906101548 (41d291e8587c10b9) and took 2091 ms

But a mismatch is shown during Agile start up -

    Atlassian GreenHopper v7.0.11 #63b8de25536543e7 built 2016-01-19T18:17:24.285-05:00 - plugin started.  Get Agile!

JIRA should only be on version 7.0.11 but above logging shows upgrade task for 7.12.0 has been run then JIRA will run into problems such as Boards not showing up.

原因 2

JIRA Software is using the later build done by the upgrade task even though it started with the correct version.

You can see that it is using the later build by searching for the following line in JIRA start up logs -


If build shows it is using 42 rather than 41 it means JIRA despite showing it started the correct version is using the wrong package.

To fix go to Resolution 2.

Resolution 1.

データベースの変更を行う場合は 必ず事前にバックアップを取得してください。可能な場合はテスト サーバーで変更を試すことをおすすめします。

  1. 次の SQL を実行し、無効化されたプラグインがあるかどうかを確認します。

    SELECT * FROM pluginstate where pluginenabled = 'false';

    このクエリが行を返さない場合、このドキュメントで説明しているソリューションをご利用の Jira アプリケーション インスタンスに適用することはできません。有効な行が返される場合、ステップ 2 に進みます。

  2. Enable any plugin(s) that is disabled using the SQL query below:

    delete from pluginstate WHERE pluginkey='<pluginkey from query above>';
  3. Jira アプリケーションを再起動します。

Resolution 2.

データベースの変更を行う場合は 必ず事前にバックアップを取得してください。可能な場合はテスト サーバーで変更を試すことをおすすめします。

  1. Run below query to retrieve ID that will need to be updated

    select * from propertystring s, propertyentry e where e.entity_id = s.id and e.property_key = 'GreenHopper.Upgrade.Latest.Upgraded.Version'	
  2. Take above ID (not entity_id) and run the following query to check the value that would need to be changed

    select pe.id, pe.entity_name, pe.property_key, n.id, n.propertyvalue from propertyentry pe, propertynumber n where pe.id = '<id from above query>' and pe.id = n.id

    If value shows the exact same as the latest upgradeTask that is not for the JIRA version that should be running then it will need to be updated.

  3. Run the following update query to update the value 

    update propertynumber set propertyvalue = '<value of previous upgradeTask for this example it's 41>' where id = '<id from first query>'
  4. Jira を再起動します。

説明This page discusses causes and resolution for the error message "JIRA Software is currently unavailable" after performing an upgrade to JIRA 7.0.

最終更新日 2020 年 4 月 5 日


Powered by Confluence and Scroll Viewport.