openshift-jenkins-demo icon indicating copy to clipboard operation
openshift-jenkins-demo copied to clipboard

SonarQube loses quality profiles after idling

Open siamaksade opened this issue 7 years ago • 8 comments

siamaksade avatar Dec 14 '17 23:12 siamaksade

Per https://groups.google.com/forum/#!topic/sonarqube/tnSz1ugaYf0, the /opt/sonarqube/extension/plugins/ directory contains state, and must be mounted in a pvc as well.

bparry02 avatar Mar 24 '18 22:03 bparry02

Submitted pull request 9

bparry02 avatar Mar 24 '18 22:03 bparry02

Running into the same issue: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project jboss-tasks-rs: No quality profiles have been found, you probably don't have any language plugin installed.

codrinbucur avatar Mar 28 '18 08:03 codrinbucur

Me too stopping and starting mini-shift causes jenkins failure:

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project jboss-tasks-rs: No quality profiles have been found, you probably don't have any language plugin installed. -> [Help 1]

Johnny2136 avatar Aug 02 '18 18:08 Johnny2136

same issue here ; apparently I've fixed it by logging on the SonarQube web portal as admin/admin, then MarketPlace, then install 'SonarJava' plugin, finally a SonarQube restart.

fabiomartinelli avatar Aug 06 '18 12:08 fabiomartinelli

Thanks @fabiomartinelli I will try it. I just nuked :boom: the whole project and recreated it That works too but its a bit extreme. I like you approach better.

Johnny2136 avatar Aug 06 '18 16:08 Johnny2136

Didn't work for me, @fabiomartinelli. :( I'm now using this oc commands to recreate my sonarqube deploy when needed:

delete all minishift resources related to sonarqube: $ oc delete svc sonarqube; oc delete route sonarqube; oc delete imagestream sonarqube;oc delete deploymentconfig sonarqube; oc delete svc postgresql-sonarqube; oc delete deploymentconfig postgresql-sonarqube; oc delete pvc postgresql-sonarqube-data; oc delete pvc sonarqube-data

recreate sonarqube: $ oc new-app -f sonarqube-template.yaml --param=SONARQUBE_VERSION=6.7

Hope there is a solution so I don't have to do this everyday in the morning when I start using my laptop :P

ptrckq avatar Aug 15 '18 13:08 ptrckq

Rather than using the application template, we've been deploying this ephemeral sonarqube container. We don't get the quality profiles issue. And it allows us to restart the container as needed rather than delete and recreate it. It's worked great for demos and workshops.

oc new-app registry.centos.org/rhsyseng/sonarqube oc expose service sonarqube

epe105 avatar Nov 12 '18 20:11 epe105