Sonar Qube Developer Image not starting Docker compose up failed

We have bought SoanarQube Developer License:

We have deployed it in Azure using Docuker Hub.
Container type Docker Compose. It was working fine but since last 2 weeks it is not working anymore.
I ran the docker compose yml in my local machine and found it is failing to start the docker developer image.

please find the yml file that is being used in the Azure (password masked with X)

version: '3.3'
      - db
    image: sonarqube:developer
    command: ""
      - "9000:9000"
      - sonarqube-conf:/opt/sonarqube/conf
      - sonarqube-data:/opt/sonarqube/data
      - sonarqube-extensions:/opt/sonarqube/extensions
      - sonarqube-bundled-plugins:/opt/sonarqube/lib/bundled-plugins
      - SONARQUBE_JDBC_URL=jdbc:sqlserver://db:1433;databaseName=sonar

    container_name: mssql-server
      - mssql:/var/opt/mssql
      ACCEPT_EULA: 'Y'
      MSSQL_PID: Express
      MSSQL_COLLATION: SQL_Latin1_General_CP1_CS_AS

    external: true
    external: true
    external: true
    external: true
    external: true

you can see in the above screenshot that the container consists of 2 images one is mssql and nother is sonarqube. MSSQL is running fine but the sonarqube is not .

can you please guide us what can actually happen? and how to fix the issue.


What do your server logs say?


Hi @ganncamp ,

here is the log below. it seems like it is not able to connect to the DB.
but we have not done any changes in the meantime. Can you please check the log below and suggest what and where should I change the configuration.

2022-09-13T09:32:05.910071603Z: [INFO]  Caused by: java.lang.IllegalStateException: Fail to connect to database
2022-09-13T09:32:05.910075403Z: [INFO]  	at org.sonar.db.DefaultDatabase.start(
2022-09-13T09:32:05.910079103Z: [INFO]  	at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(
2022-09-13T09:32:05.910082903Z: [INFO]  	at
2022-09-13T09:32:05.910086804Z: [INFO]  	at
2022-09-13T09:32:05.910090604Z: [INFO]  	at
2022-09-13T09:32:05.910094304Z: [INFO]  	... 44 common frames omitted
2022-09-13T09:32:05.910098004Z: [INFO]  Caused by: java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').
2022-09-13T09:32:05.910101804Z: [INFO]  	at org.sonar.db.DefaultDatabase.checkConnection(
2022-09-13T09:32:05.910105404Z: [INFO]  	at org.sonar.db.DefaultDatabase.start(
2022-09-13T09:32:05.910109004Z: [INFO]  	... 48 common frames omitted
2022-09-13T09:32:05.910112704Z: [INFO]  Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: unable to find valid certification path to requested target". ClientConnectionId:53bb24fd-c408-457e-a6b6-b8764295c8f1)
2022-09-13T09:32:05.910117304Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(
2022-09-13T09:32:05.910121004Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.createDataSource(
2022-09-13T09:32:05.910125004Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.lambda$getConnection$0(
2022-09-13T09:32:05.910128704Z: [INFO]  	at java.base/ Method)
2022-09-13T09:32:05.910141105Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.getConnection(
2022-09-13T09:32:05.910162005Z: [INFO]  	at org.sonar.db.profiling.NullConnectionInterceptor.getConnection(
2022-09-13T09:32:05.910166405Z: [INFO]  	at org.sonar.db.profiling.ProfiledDataSource.getConnection(
2022-09-13T09:32:05.910296508Z: [INFO]  	at org.sonar.db.DefaultDatabase.checkConnection(
2022-09-13T09:32:05.910308208Z: [INFO]  	... 49 common frames omitted
2022-09-13T09:32:05.910580514Z: [INFO]  Caused by: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: unable to find valid certification path to requested target". ClientConnectionId:53bb24fd-c408-457e-a6b6-b8764295c8f1
2022-09-13T09:32:05.917623557Z: [INFO]  	at
2022-09-13T09:32:05.917636957Z: [INFO]  	at
2022-09-13T09:32:05.917646758Z: [INFO]  	at
2022-09-13T09:32:05.917650758Z: [INFO]  	at
2022-09-13T09:32:05.917654858Z: [INFO]  	at
2022-09-13T09:32:05.917658658Z: [INFO]  	at
2022-09-13T09:32:05.917662358Z: [INFO]  	at
2022-09-13T09:32:05.917666058Z: [INFO]  	at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(
2022-09-13T09:32:05.917669858Z: [INFO]  	at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(
2022-09-13T09:32:05.917673658Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(
2022-09-13T09:32:05.917677458Z: [INFO]  	at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(
2022-09-13T09:32:05.917681158Z: [INFO]  	... 56 common frames omitted
2022-09-13T09:32:05.917685058Z: [INFO]  Caused by: PKIX path building failed: unable to find valid certification path to requested target
2022-09-13T09:32:05.917688959Z: [INFO]  	at java.base/
2022-09-13T09:32:05.917692659Z: [INFO]  	at java.base/
2022-09-13T09:32:05.917696359Z: [INFO]  	at java.base/
2022-09-13T09:32:05.917699959Z: [INFO]  	at java.base/
2022-09-13T09:32:05.917712259Z: [INFO]  	at java.base/$T12CertificateConsumer.checkServerCerts(
2022-09-13T09:32:05.917716359Z: [INFO]  	at java.base/$T12CertificateConsumer.onCertificate(
2022-09-13T09:32:05.917720159Z: [INFO]  	at java.base/$T12CertificateConsumer.consume(
2022-09-13T09:32:05.917723959Z: [INFO]  	at java.base/
2022-09-13T09:32:05.939118495Z: [INFO]  	at java.base/
2022-09-13T09:32:05.939389601Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940920932Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940937432Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940942233Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940946633Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940950733Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940954633Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940959333Z: [INFO]  	at
2022-09-13T09:32:05.940963233Z: [INFO]  	... 65 common frames omitted
2022-09-13T09:32:05.940967033Z: [INFO]  Caused by: PKIX path building failed: unable to find valid certification path to requested target
2022-09-13T09:32:05.940971033Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940974933Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940978633Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940982333Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940986033Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940989734Z: [INFO]  	at java.base/
2022-09-13T09:32:05.940993534Z: [INFO]  	at$HostNameOverrideX509TrustManager.checkServerTrusted(
2022-09-13T09:32:05.940997334Z: [INFO]  	at java.base/
2022-09-13T09:32:05.941001034Z: [INFO]  	at java.base/$T12CertificateConsumer.checkServerCerts(
2022-09-13T09:32:05.941004934Z: [INFO]  	... 77 common frames omitted
2022-09-13T09:32:05.941020734Z: [INFO]  Caused by: unable to find valid certification path to requested target
2022-09-13T09:32:05.941024834Z: [INFO]  	at java.base/
2022-09-13T09:32:05.948466486Z: [INFO]  	at java.base/
2022-09-13T09:32:05.948670290Z: [INFO]  	at java.base/
2022-09-13T09:32:05.948676890Z: [INFO]  	at java.base/
2022-09-13T09:32:05.948681090Z: [INFO]  	... 85 common frames omitted
2022-09-13T09:32:06.327974722Z: [INFO]  2022.09.13 09:32:06 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2022-09-13T09:32:06.367921237Z: [INFO]  2022.09.13 09:32:06 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2022-09-13T09:32:06.608504741Z: [INFO]  2022.09.13 09:32:06 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2022-09-13T09:32:06.932488545Z: [INFO]  2022.09.13 09:32:06 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2022-09-13T09:32:06.932520546Z: [INFO]  2022.09.13 09:32:06 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022-09-13T09:32:06.933594168Z: [INFO]  2022.09.13 09:32:06 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped


I guess in the last two weeks you upgraded to SonarQube 9.6? You might want to check the Release Upgrade Notes.


Hi Ann,

We didn’t change anything.
But after your last comment I did the changes.
Changed the SonarQube image

image: sonarqube:9.6-developer

and then changed the JDBC String:


And now we have below errors:

2022-09-13 16:49:21.37 Logon       Error: 18401, Severity: 14, State: 1.
2022-09-13 16:49:21.37 Logon       Login failed for user 'sa'. Reason: Server is in script upgrade mode. Only administrator can connect at this time. [CLIENT:]


What does that error mean to you?

(And BTW, it’s coming straight from the DB, not from SonarQube itself.)


I have no clue.
That is why I am looking for a solution who can tell how to fix it.

The whole configuration is there above as we used it in the docker compose file.
we have also mapped the external volumes in Azure Storage as fileshare.
I have used the guide :

initially to configure and it was working fine.

would be nice if any can fix this issue or guide me how to fix it.


As I said, this error is coming straight from your DB, not from SonarQube. If I search on the error string, I land on SO.


if i understand correctly, we should wait when we get this Login Failed due to Server Grade ?
But is it normal that the database is upgrading more than over 12 hours ?


This is something you should talk to your DBA about. It really is outside the scope of SonarQube.