Jira Data Center license cannot be applied due to unlicensed plugins or plugins with incompatible license
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Applying / updating Jira Data Center license results in progress bar spinning indefinitely. The license is not applied even after refreshing the screen.
Environment
8.13.10
Diagnosis
Analyzing the logs, the following error is visible:
1
2
3
4
5
6
7
8
9
10
11
12
2023-10-10 09:23:05,275+0000 http-nio-8080-exec-8 ERROR 1563107 563x1694683x6 1rlh20u 192.168.1.2,192.168.1.3 /rest/plugins/applications/1.0/installed/jira-software/license [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: com.atlassian.upm.api.util.Option$Some cannot be cast to com.atlassian.upm.api.util.Option
java.lang.ClassCastException: com.atlassian.upm.api.util.Option$Some cannot be cast to com.atlassian.upm.api.util.Option
at com.atlassian.upm.license.internal.impl.PluginLicenseRepositoryImpl.getCachedLicense(PluginLicenseRepositoryImpl.java:355)
at com.atlassian.upm.license.internal.impl.PluginLicenseRepositoryImpl.getPluginLicense(PluginLicenseRepositoryImpl.java:156)
at com.atlassian.upm.license.DataCenterCrossgradeablePlugins.crossgradeNeeded(DataCenterCrossgradeablePlugins.java:47)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
Cause
When Jira license is applied, Jira is also performing a check that tests installed plugins and if they valid and compatible licenses. If some plugins are either unlicensed or not DC approved, the reported error can be thrown and the Jira license will not be updated.
Solution
Perform the following steps to update the Jira license:
Disable or uninstall unlicensed / DC incompatible plugin (the plugin data will remain in the database)
Restart Jira DC cluster (all nodes at once), to purge any license-holding caches
Start one Jira DC node
Apply Jira license
Start other nodes
Enable / reinstall the offending plugin(s)
Was this helpful?