Hello,
I am trying to install Sonarqube 9.9.6-enterprise via the helm chart version ~8, but I am always failing with the error:
Exception in thread "main" org.sonar.process.MessageException: Directory does not contain JDBC driver: extensions/jdbc-driver/oracle
I have tried to supply the driver via custom init container that uses the provided sonarqube volume, e.g. this is the relevant part of my helm chart:
extraInitContainers:
- name: "init-extensions"
image: "extensions:0.3"
volumeMounts:
- mountPath: /opt/sonarqube/extensions
name: sonarqube
subPath: extensions
As far as I can see the mount is populated, e.g. using other init container to check the contents:
name: "debug"
image: "busybox:1.35"
command: ["/bin/sh", "-c", "ls -la /opt/sonarqube/extensions/jdbc-driver/oracle"]
volumeMounts:
- mountPath: /opt/sonarqube/extensions
name: sonarqube
subPath: extensions
returns:
total 4472
drwxr-xr-x 2 1000 1000 4096 Nov 8 15:37 .
drwxr-xr-x 3 1000 1000 4096 Nov 8 15:37 ..
-rwxr-xr-x 1 1000 1000 4568199 Nov 8 15:37 ojdbc10.jar
Am I placing the driver in the wrong folder? Are there some more prerequisites I need to set?
Also is there any way how to make sonarqube output some more debug info related to this error in the standard output so I could read it with kubectl logs sonarqube-sonarqube-0
?
I tried setting the property like this:
sonarProperties:
sonar.log.level: DEBUG
And even set the env variables:
env:
- name: "SONAR_LOG_LEVEL"
value: "DEBUG"
But still only get this one liner without any other details…
Thanks in advance!