-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Low
-
Affects Version/s: 10.2.0
-
Component/s: Smart Mirroring
-
None
-
Severity 3 - Minor
Issue Summary
Mirrors log an exception on startup
Steps to Reproduce
- Start up a mirror
Expected Results
The mirror starts without any errors in the log
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file:
2026-08-06 04:05:10,428 ERROR [spring-startup] c.a.p.o.f.OsgiPluginInstalledHelper Cannot determine required plugins, cannot resolve bundle 'com.atlassian.bitbucket.server.bitbucket-content-security-policy' 2026-08-06 04:05:11,520 ERROR [spring-startup] c.a.plugin.osgi.factory.OsgiPlugin Detected an error (BundleException) enabling the plugin 'com.atlassian.bitbucket.server.bitbucket-content-security-policy' : Unable to resolve com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0): missing requirement [com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugins.cdn.api) Unresolved requirements: [[com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugins.cdn.api)]. This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN 2026-08-06 04:05:11,520 WARN [spring-startup] c.a.plugin.impl.AbstractPlugin Unable to enable plugin 'com.atlassian.bitbucket.server.bitbucket-content-security-policy' 2026-08-06 04:05:11,521 WARN [spring-startup] c.a.plugin.impl.AbstractPlugin Because of this exception com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.bitbucket.server.bitbucket-content-security-policy at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:440) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:267) at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:121) at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:98) at com.atlassian.plugin.manager.DefaultPluginManager.lambda$enableDependentPlugins$24(DefaultPluginManager.java:1299) at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:64) at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1280) at com.atlassian.plugin.manager.DefaultPluginManager.lambda$addPlugins$22(DefaultPluginManager.java:1264) at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:64) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1151) at com.atlassian.stash.internal.plugin.StashPluginManager.addPlugins(StashPluginManager.java:90) at com.atlassian.plugin.manager.DefaultPluginManager.lambda$earlyStartup$5(DefaultPluginManager.java:608) at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:64) at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:535) at com.atlassian.stash.internal.plugin.StashPluginManager.earlyStartup(StashPluginManager.java:46) at com.atlassian.plugin.manager.DefaultPluginManager.lambda$init$3(DefaultPluginManager.java:527) at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:64) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:526) at com.atlassian.stash.internal.plugin.StashPluginManager.lambda$init$0(StashPluginManager.java:60) at com.atlassian.stash.internal.plugin.PluginUpgradeHelper.withUpgrade(PluginUpgradeHelper.java:76) at com.atlassian.stash.internal.plugin.StashPluginManager.init(StashPluginManager.java:60) at com.atlassian.stash.internal.plugin.SpringPluginSystemLifecycle.start(SpringPluginSystemLifecycle.java:35) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:405) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:394) at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:586) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:364) at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:310) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1010) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:631) at jakarta.servlet.GenericServlet.init(GenericServlet.java:143) at java.base/java.lang.Thread.run(Thread.java:1583) ... 9 frames trimmed Caused by: org.osgi.framework.BundleException: Unable to resolve com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0): missing requirement [com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugins.cdn.api) Unresolved requirements: [[com.atlassian.bitbucket.server.bitbucket-content-security-policy [21](R 21.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugins.cdn.api)] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398) ... 32 common frames omitted
Workaround
There is currently no workaround but this exception message is harmless.
- duplicates
-
BSERV-20353 CSP plugin OSGi dependency error repeatedly logged at Bitbucket Mirror 10.2 startup
-
- Closed
-