Plugins automatically deleting

We’re using Sonar chart.
It seems our plugins sometimes deactivate themselves automatically when the pod restarts and they works again after the next restart.
Is that a known bug.
We’re using Sonarqube version and the chart version 3.0.0

Hi @Yanis_Corselle ,

Thanks for the report.
That’s weird, could you please share your custom values.yaml file or the properties that are overridden in the chart (make sure to anonymize the relevant values)
If you have the chance to reproduce it, please export and share the pod logs.

Try to check the log of container install-plugins that is in charge of downloading the plugin:
kubectl logs sonarqube-sonarqube-0 install-plugins

You can also check the folder in the container of SonarQube once run:
kubectl exec -it sonarqube-sonarqube-0 -- bash
then check folders /opt/sonarqube/extensions/download and /opt/sonarqube/extensions/plugins and list the files inside

Thanks for your answer.
The concerned part of the helmfile is this one :

  - ""
  - sonarqube-community-branch-plugin-1.11.0.jar
jvmOpts: "-javaagent:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin-1.11.0.jar=web"
jvmCeOpts: "-javaagent:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin-1.11.0.jar=ce"

I can’t launch your commands because right now, it works again so the result would be useless.
Didn’t you ever face this problem ?

Apart from your previous post, we didn’t have any reports from other users, or experienced the same behavior in our internal instances.

I would be interested to know:

  • which deploymentType you are using
  • if you set the replicaCount other than 1
  • if persistence is enabled ( persistence.enabled )

Thanks for your answer.
We’re using the default values for these settings but our pods automatically restarts every day and then, sometimes the problem happen.

Hi @Yanis_Corselle,

Maybe you could try to activate the persistence(persistence.enabled). This will persist the application folders, and this may fix your problem since in that case, the plugin is already installed at startup.

Sorry I haven’t seen your answer …
The problem didn’t happen since the last time, if it happen again, we’ll try your fix. Thanks a lot !