Cannot start SonarQube (StartSonar.bat) - Unable to register component


(Josh) #1

Hello,

I’ve been trying to get SonarQube up and running for a while now and have tried quite a few combinations of things.

Process:

  • Windows 10 machine
  • SonarQube 6.7.4
  • Setup JAVA_HOME to and PATH to include %JAVA_HOME%\bin
  • Installed JDBC driver by
    – 1) Adding “sqljdbc_auth.dll” to \bin
    – 2) Adding “sqljdbc42.jar” to \extensions\jdbc-driver
  • Ran StartSonar.bat
  • Tried various versions of java JRE and JDK. Some work worse but most give the following error.

Error from web.log:

… ERROR web[] [o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Unable to register component org.sonar.server.user.ws.UpdateAction

Caused by: java.lang.NoClassDefFoundError: org/sonarqube/ws/client/user/UpdateRequest

Caused by: java.lang.ClassNotFoundException: org.sonarqube.ws.client.user.UpdateRequest

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

… INFO web[][o.s.p.StopWatcher] Stopping process


(Fabrice Bellingard) #2

Your installation looks corrupted. I would:

  • download SonarQube 6.7.4 ZIP file again
  • download its MD5 and check that it matches the MD5 of the ZIP I’ve just downloaded
  • extract the ZIP file and try to start SonarQube

(Josh) #3

This solved my problem, although it may have also been a permission problem. I’ve been putting the installation in the Program Files directory and remembered to open permissions after putting your downloadable there.


(Nicolas Bontoux) #4

A post was split to a new topic: SonarQube fails to start on Windows with MSSQL