/
Unable to start the plugin container / OSGi cache corruption in Bitbucket

Unable to start the plugin container / OSGi cache corruption in Bitbucket

In some cases after a Bitbucket upgrade or an App upgrade, users may experience cache corruption of Bitbucket.
To resolve this problem you should clear the Bitbucket Server plugin cache, which will cause Bitbucket Server to rebuild plugin cache from scratch next time it starts.


Error (there are other variations)

c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL bundle://138.0:0/META-INF/spring/atlassian-plugins-component-imports.xml
nested exception is java.lang.IllegalStateException: The bundle is uninstalled.


Solution

  1. Stop Bitbucket
  2. Delete the following directories (where <Bitbucket_Home_Directory> refers to the Bitbucket home directory, for instance /var/atlassian/application-data/bitbucket:
    • <Bitbucket_Home_Directory>/plugins/.bundled-plugins
    • <Bitbucket_Home_Directory>/plugins/.osgi-cache
  3. Restart Bitbucket 

Source: https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-failed-to-start-due-to-required-plugin-failed-to-start-779171543.html



Related content

Troubleshooting
Troubleshooting
Read with this
This add-on failed to enable. Refer to the logs.
This add-on failed to enable. Refer to the logs.
Read with this
Release Notes v6.0
Release Notes v6.0
Read with this
Installation
More like this

SONAR™, SONARQUBE™ and SONARCLOUD™ are independent and trademarked products and services of SonarSource SA: see sonarsource.com, sonarqube.org, sonarcloud.io.