StartSonar.bat is not launching the SonarQube server

Using sonarqube-9.6.1.59531. I am able to install the SonarQube as a service with below command and able to launch it successfully.
“%SONAR_HOME%\bin\windows-x86-64\SonarService.bat install”

But when I launch StartSonar.bat, SonarQube server is not starting. It is not showing any errors except below comment in SonarServiceWrapper.wrapper log file.

DEBUG - Starting WinSW in console mode

I do not see any other log files like web, ce, es, etc. in the logs folder.

Regards,
Gopal.

Hi Gopal,

Did you check your server logs? Did you see the Upgrade Notes? We made some changes this time.

 
HTH,
Ann

Hi Ann,

Yes. I have gone through the links that you provided. I am currently using embedded H2 database.

SonarQube is running fine as a service. I am seeing all the log files when the service is running.

The issue is when StartSonar.bat is launched. No log files got updated except SonarServiceWrapper.wrapper file. Only one below comment got added to the SonarServiceWrapper.wrapper file. No clue what is causing the issue.

DEBUG - Starting WinSW in console mode

Regards,
Gopal.

Hi Gopal,

What’s the sequence of events here? You launched it as a service and then manually? It’s odd that there’s nothing in the logs. Is it possible this is a file permissions issue? What user does the service run as - versus the user that launched it manually?

 
Ann

Hi Ann,

These are the sequence of events.

I already have 9.4 version (sonarqube-9.4.0.54424) running as a service. I stopped the service.

I decided to run the sonarqube-9.6.1.59531 temporarily on need basis by launching “StartSonar.bat” as I have a service installed with different version (9.4 version). It never got launched. There is no clue as to why it is not launching.

I read some documentation and I changed below line in …\bin\windows-x86-64\lib\ SonarServiceWrapperTemplate file
From
JAVA_EXE
To
C:\Program Files\Java\jdk-11.0.13\bin

Configured environment variable, SONAR_JAVA_PATH with path: C:\Program Files\Java\jdk-11.0.13\bin\

There is no luck. There is only one log file, SonarServiceWrapper.wrapper got generated. It has no clue. There are no other log files got created.

I deleted 9.4 version service and then installed 9.6 version of SonarQube. I launched it. It worked. Remaining log files like web, sonar, ce, access, es, got generated.

My work is going on, but I had no clue as to why “StartSonar.bat” is not launching the SonarQube, so I posted it here.

I am experimenting it. There is only one user. My final goal is to upgrade from 9.4 version to 9.6 for both community/developer versions.

Regards,
Gopal.

Hi Gopal,

Thanks for this. Since you got the service up and running, then I guess there’s nothing urgent here to be handled?

 
Ann

Hi Ann,

As explained in my earlier post. I thought of running 9.6 version temporarily as I had server setup with 9.4 version, I could not do it because of this issue.

It would be better if this issue is addressed.

Regards,
Gopal.

Hi Gopal,

Agreed. We’ve done some work on this in 9.7, which should be announced on Monday.

 
Ann