Bitbucket Data Center/Server fails to start after upgrade, because required plugins cannot be loaded.

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

Summary

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:



Environment

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.

Diagnosis

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).

Cause

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.


Solution

  1. Edit $BITBUCKET_INSTALL_DIR/bin/_start-webapp.sh
  2. Remove this JVM argument from the line: JVM_SUPPORT_RECOMMENDED_ARGS=
    or replace it with:
    -Datlassian.org.osgi.framework.bootdelegation.extra=...
  3. 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.


Last modified on Dec 25, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.