Bitbucket Server is not starting due to FastMethodInterceptorDelegatorBoot class not found

お困りですか?

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

コミュニティに質問

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

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

After attempting to add the AppDynamics java agent, Bitbucket Server fails to start.

環境

  • Bitbucket Server or Data Center
  • AppDynamics Java Agent

診断

The following appears in the atlassian-bitbucket.log file after the failed Bitbucket start was attempted:

ERROR [FelixDispatchQueue]  c.a.p.o.c.f.FelixOsgiContainerManager Framework error in bundle org.eclipse.gemini.blueprint.extender
org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.gemini.blueprint.extender [18].
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)
	at java.lang.Thread.run(Thread.java:745)
	... 3 frames trimmed
Caused by: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot

原因

The OSGi boot delegation is not configured correctly and is causing the startup to fail.

ソリューション

  • Update the JVM_SUPPORT_RECOMMENDED_ARGS variable (in the _start-webapp.sh / _start-webapp.bat file located in $BITBUCKET_HOME/bin) by adding the atlassian.org.osgi.framework.bootdelegation.extra option with the following value:
-Datlassian.org.osgi.framework.bootdelegation.extra=com.singularity.*
  • Restart Bitbucket Server

After applying this change, your JVM_SUPPORT_RECOMMENDED_ARGS variable may look something like:

JVM_SUPPORT_RECOMMENDED_ARGS="-javaagent:/path/to/appdynamics/java-agent/javaagent.jar -Dappdynamics.agent.tierName=SOMETHING_HERE -Dappdynamics.agent.nodeName=SOMETHING_HERE -Datlassian.org.osgi.framework.bootdelegation.extra=com.singularity.*"

If using the above example, be sure to add any other needed settings (based on your team's existing settings for this variable), as well as modify the above -Dappdynamics.* and -javaagent arguments to match your company's desired values.

最終更新日 2022 年 5 月 5 日

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

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