Can't deploy Sonarqube 8.5 to Azure Kubernetes

I’m able to deploy Sonarqube 8.3 and 8.4.1, but attempting to use the 8.5 docker image to deploy into Azure Kubernetes gives the following error on container startup:

2020.10.14 12:53:11 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Fail to unzip plugin [python] /opt/sonarqube/lib/extensions/sonar-python-plugin- to /opt/sonarqube/data/web/deploy/plugins/python
        at org.sonar.server.plugins.ServerPluginJarExploder.explode(
        at java.base/$3$1.accept(
        at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(
        at java.base/
        at java.base/
        at java.base/$ReduceOp.evaluateSequential(
        at java.base/
        at java.base/
        at org.sonar.server.plugins.ServerPluginManager.extractPlugins(
        at org.sonar.server.plugins.ServerPluginManager.start(
        at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(
        at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(
        at org.picocontainer.behaviors.AbstractBehavior.start(
        at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(
        at org.picocontainer.behaviors.Stored.start(
        at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(
        at org.picocontainer.DefaultPicoContainer.startAdapters(
        at org.picocontainer.DefaultPicoContainer.start(
        at org.sonar.core.platform.ComponentContainer.startComponents(
        at org.sonar.server.platform.platformlevel.PlatformLevel.start(
        at org.sonar.server.platform.platformlevel.PlatformLevel2.start(
        at org.sonar.server.platform.PlatformImpl.start(
        at org.sonar.server.platform.PlatformImpl.startLevel2Container(
        at org.sonar.server.platform.PlatformImpl.init(
        at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(
        at org.apache.catalina.core.StandardContext.listenerStart(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase$
        at org.apache.catalina.core.ContainerBase$
        at java.base/
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.base/java.util.concurrent.ThreadPoolExecutor$
        at java.base/
Caused by: Failed setLastModified on /opt/sonarqube/lib/extensions/sonar-python-plugin-
        at org.sonar.server.plugins.ServerPluginJarExploder.explode(
        ... 33 common frames omitted
2020.10.14 12:53:12 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.10.14 12:53:12 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2020.10.14 12:53:12 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.10.14 12:53:13 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.10.14 12:53:13 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.10.14 12:53:13 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
1 Like

Hi @Brian_Balderston ,

while this is not officially supported, i will try my best to help you on this one.

there was a recent change in the way plugins are handled in sonarqube. what kind of storage is underneath your PVs and what PVCs do you have in your deployment?

It’s using an Azure StorageV2 file share. I’ve attached the kubernetes deployment yaml (with the actual SONAR_JDBC_ values removed).sonarqube-k8.txt (1.6 KB)

I’m hitting the same.

I was able to install sonar in Azure AKS but with a lower sonarquebe image (mage: sonarqube:7.1). followed this post.


Did you find any solution?

Hello everyone :wave:

i currently do not have a AKS cluster to validate this but can you look for a PodSecurityPolicy set that enforces a ReadOnlyRootFilesystem ?

we were reworking our plugins to have a fixed version of our analyzers be deployed with each release of sonarqube, so the stack trace indicates that there is a tried file operation to all analyzers in /opt/sonarqube/lib/extensions/ that is denied by said PSP.
The workaround would be to create a PVC for this directory and mount it in there (please be careful as all language analyzers are in there so copy the files to this new PVC) or to write a PSP that does not enforce a ReadOnlyRootFilesystem and start sonarqube in a pod that uses this new PSP.

Hope that helps


The default value for readOnlyRootFilesystem is false. But I put it under securityContext anyway. I also tried fsGroup: 1000 changing the folder group to sonarqube. I also tried runAsUser: 1000 and runAsGroup: 1000.

Nothing above works.

But the problem happens only when unzipping to the folder /opt/sonarqube/data/web/deploy/plugins/python. I can see other files within /opt/sonarqube/data. And the volume mapped to /data was originally empty. Therefore, the folder has write permission.

Log: Failed to unzip the [python] /opt/sonarqube/lib/extensions/sonar-python-plugin- plugin to /opt/sonarqube/data/web/deploy/plugins/python

The same default Yaml configuration (without any of the changes above) works well with version 8.4.2.

If I change the version to 8.6.0 after a start the Sonarqube once with 8.4.2 version, it works fine. I guess that que data folder was alredy initialized by the 8.4.2 version.


Creating the volumes using PersistentVolumeClaim do the trick. Works well with version 8.6.

The problem is actually related to the use of the storage account (file sharing).

Would be interesting see why previous version works fine with file share and 8.6 don’t. File share has some advantages, so much so that was the first choice of many people in this thread.

I have the same issue, but with another plugin (CSS):
Fail to unzip plugin [cssfamily] /opt/sonarqube/lib/extensions/sonar-css-plugin- to /opt/sonarqube/data/web/deploy/plugins/cssfamily

Caused by: Failed setLastModified on /opt/sonarqube/lib/extensions/sonar-css-plugin-

Before I dive into creating beautiful new PV’s and PVC’s, I want to get something cleared up first.

My impression from the logfile is that the failure is occurring on the ‘/opt/sonarqube/lib/…’ path, not on the ‘/opt/sonarqube/data/…’ path. The former is part of the docker image right???

When I examine my file-store in Azure, I see that the ‘sonar-css-plugin-’ is present in the expected path there…
My hunch is that the unzip works fine, but the ‘setLastModified’ on the source jar (present in the docker image) fails…

I think that the ‘solution’ of creating a persistent opt/sonarqube/lib/… storage and then manually copying data from the image into that share is a bit convoluted…

Thank you for listening!

Where might I find the analyzers as used by/included for SonarQube 8.6 developer?

@Tobias_Trabelsi Do you think this issue would be fixed in the next version of SonarQube?