Bitbucket Data Center/Server fails to start after upgrade, because required plugins cannot be loaded.
プラットフォームについて: 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 は除く
要約
Bitbucket Data Center/Server fails to start after upgrade.
After upgrading Bitbucket Server, Bitbucket fails to start.
The web interface shows the page similar to the following:
環境
We saw this error occur after an upgrade of Bitbucket Data Center from version 7.10.0 to 7.20.0.
Other versions may also be affected.
診断
The application log (atlassian-bitbucket.log
) includes 3 types of errors from the failed startup attempt - for example:
2022-02-11 09:12:41,204 ERROR [ThreadPoolAsyncTaskExecutor::Thread 2] c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'tac.bitbucket.languages.de_DE'
2022-02-11 09:12:41,205 ERROR [ThreadPoolAsyncTaskExecutor::Thread 2] o.e.g.b.e.i.s.ExtenderConfiguration Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=tac.bitbucket.languages.de_DE, config=osgibundle:/META-INF/spring/*.xml))
2022-02-11 09:12:41,205 ERROR [ThreadPoolAsyncTaskExecutor::Thread 2] o.e.g.b.e.i.d.s.DependencyWaiterApplicationContextExecutor Unable to create application context for [tac.bitbucket.languages.de_DE], unsatisfied dependencies: none
- Each error mentions one plugin (bundled or user-installed). In the example above, it is:
tac.bitbucket.languages.de_DE
. - Each type of error is logged exactly as many times as there are plugins in this Bitbucket instance.
In the case we saw, there were exactly 106 plugins, and each type of error was logged exactly 106 times (once with each plugin). - No other errors are logged. In total, we had 318 errors logged (106 errors of each type).
原因
The issue was caused by the following JVM argument in Bitbucket's $BITBUCKET_INSTALL_DIR/bin/_start-webapp.sh
in the line: JVM_SUPPORT_RECOMMENDED_ARGS=
-Datlassian.org.osgi.framework.bootdelegation=...
Setting this JVM argument is not supported.
ソリューション
- Edit
$BITBUCKET_INSTALL_DIR/bin/_start-webapp.sh
- Remove this JVM argument from the line:
JVM_SUPPORT_RECOMMENDED_ARGS=
or replace it with:-Datlassian.org.osgi.framework.bootdelegation.extra=...
- Save the modified file and try to start Bitbucket once again.
The issue should no longer occur, the above errors should not be logged and Bitbucket should start as expected.