Jira Server へのログイン時の "bundled plugin is not available" エラー

お困りですか?

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

コミュニティに質問

症状

  1. ユーザーが Jira アプリケーションにログインしようとしたときに、次のようなエラーが表示される。

    ERROR
    
    The Gadget Dashboard bundled plugin is not available. Please contact
    an administrator to ensure the Gadget Dashboard plugin is enabled!
    
    If you think this message is wrong, please consult your administrators
    about getting the necessary permissions.
  2. atlassian-jira.log ログで次のようなエラーが見つかる場合があります。

    2012-06-13 16:21:19,887 Timer-0 ERROR      [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.pyxis.greenhopper.jira], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.gadgets.view.GadgetViewFactory)] (from bean [&gadgetViewFactory])
    org.springframework.context.ApplicationContextException: Application context initialization for 'com.pyxis.greenhopper.jira' has timed out
    	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
    	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
    	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
    2015-05-04 02:13:00,945 localhost-startStop-1 INFO      [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 2 seconds remaining
    2015-05-04 02:13:01,959 localhost-startStop-1 INFO      [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 1 seconds remaining
    2015-05-04 02:13:02,973 localhost-startStop-1 INFO      [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 0 seconds remaining
    2015-05-04 02:13:03,987 localhost-startStop-1 INFO      [atlassian.plugin.manager.DefaultPluginManager] Disabling com.pyxis.greenhopper.jira
    2015-05-04 02:13:07,044 localhost-startStop-1 ERROR      [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.pyxis.greenhopper.jira
    2015-05-04 02:13:07,263 ThreadPoolAsyncTaskExecutor::Thread 24 ERROR      [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.pyxis.greenhopper.jira], unsatisfied dependencies: none
    java.lang.IllegalStateException: Invalid BundleContext.
        at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365)
        at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307)
        (...)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

原因

Jira アプリケーションは起動中の Plugin System の開始時に、次のステップを経由します。

  1. $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/atlassian-bundled-plugins.zip$JIRA_HOME/plugins/.bundled-plugins に展開されます。
  2. $JIRA_HOME/plugins/installed-plugins$JIRA_HOME/plugins/.osgi-plugins に展開されます。

これはリソースを消費するプロセスであり、Jira アプリケーション インスタンスをホストしているマシンのディスク I/O や CPU に大きな負荷をかける可能性があります。必要なリソースが利用できない場合、プラグインがタイムアウトし、それによってアプリケーションが利用できない状態で残される可能性があります。

tip/resting Created with Sketch.

このエラーは、単一コアの vCPU のみを利用可能なサーバーでよく発生します。Jira アプリケーションはマルチスレッド形式であり、起動時に CPU の競合が発生して、それによりタイムアウトが発生する可能性があります。

回避策

Jira アプリケーションの起動時の引数に -Datlassian.plugins.enable.wait=300 引数を追加することで、プラグインのタイムアウト期間を増やすことができます (「起動時のプロパティとオプションの設定」)。

これにより Jira アプリケーションの起動時間が増えます。この対応は根本原因ではなく症状に対応するものです。アプリケーションを実行するのに十分な能力がマシンに備わっていない場合、より強力なホストへのアップグレードを検討するのをおすすめします。

ソリューション

  1. マシンが最小要件を満たしていて、「Jira アプリケーションの要件」に従い、十分なメモリ、CPU、およびディスク I/O を提供していることを確認します。
  2. ディスク アクセスの速度をテストする」ナレッジベースに従い、ディスク速度をテストします。ディスクまたはネットワーク マウントが低速な場合、Jira アプリケーションで時間内にディスクに書き込むことができず、起動時の問題が発生する可能性があります。
  3. ホスト上でアンチウイルス ソフトが実行されているかどうかを確認します。Jira アプリケーションとアンチウイルス ソフトは相性が悪いことが確認されています。Jira アプリケーション ディレクトリに例外が設定されていても、それが尊重されていない可能性があります。アンチウイルス ソフトをすべて無効化して Jira アプリケーションを起動するしてみてください。
最終更新日 2019 年 9 月 25 日

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

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