Failed to enable service management plugin with an error : "Cannot start plugin: com.atlassian.servicedesk"

お困りですか?

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

コミュニティに質問

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

 

 

問題

When working trying to enable service management plugin in Add-ons > Manage Add-ons, one of the following errors occurs :

  • This add-on failed to enable. Refer to the logs for more information.

 

  • The Jira server was contacted but has returned an error response. We are unsure of the result of this operation.

  • The call to the Jira server did not complete within the timeout period. We are unsure of the result of this operation.

And the following Java exception appears in the atlassian-jira.log

com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.servicedesk
	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:484)
	at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:310)
	at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:147)
	at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:115)
...
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.atlassian.servicedesk [134]: Unable to resolve 134.0: missing requirement [134.0] package; (package=com.atlassian.pocketknife.api.commons.jira)
	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1709)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:461)

診断

環境

  • This problem was detected on Jira 6.4.7 with Service Management Add-ons 2.3.6, it may also be applied to other versions of Jira/Service Management.

診断ステップ

  • From the error message

    Unable to resolve 134.0: missing requirement [134.0] package; (package=com.atlassian.pocketknife.api.commons.jira)

     we can see there is a missing dependency.

  • After doing a search in All Add-ons with key word "pocketknife" on a running healthy service management instance, we found the plugin "Atlassian Pocketknife API Commons Plugin", which is not present on the defective instance.

原因

The required plugin for Service Management is missing :  "Atlassian Pocketknife API Commons Plugin"

This could be caused by a corrupted installation or the required plugin was accidentally deleted by user.

ソリューション

The required plugin is installed automatically with the Service Management plugin, so in order to fix this problem :

  • Uninstall the Service Management plugin
  • Reinstall the plugin by following any of the methods as described on the Installing Marketplace apps page

 

最終更新日 2020 年 11 月 23 日

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

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