SonarQube Wrapper not starting with error

I am using SonarQube community version, 9.3.0.51899 on Windows 10. It got installed and I was able to scan some projects and see the results.
I logged out of the UI (http://localhost:9000/) and closed chrome browser. I stopped wrapper.exe as well by closing “cmd” window.
When I run StartSonar.bat again, it usually runs and it worked for many days in the past. But now it is giving error with callstack saying some processes are using “\Sonar-config-plugin.jar” in temp directory.
I identified 3 java processes which are still running corresponding to port:9000, 9001 and 9092.

Can I safely kill these java processes? or is there any another way I should do it?

The server I am using is a build server and it is being used across the organization, so I am little hesitant in doing any action in it. Could anyone please confirm?

Note: I experimented killing the java processes in my laptop locally. It worked.

Regards,
Gopal.

Hi Gopal,

Welcome to the community!

First, yes it was safe to shut down those processes. In fact, they should have shut down along with SonarQube so it sounds like the server didn’t shut down cleanly. Rather than simply closing the command window, it would be better next time to call the stop script.

 
HTH,
Ann

Thank you, Ann for your reply.
What is the name of the stop script that you are mentioning?

Regards,
Gopal.

Hi Gopal,

You should see it in $SONARQUBE-HOME/bin/windows-x86-64 next to the wrapper.

 
HTH,
Ann

Hi Ann,

I see these four files in $SONARQUBE-HOME/bin/windows-x86-64 folder.

  1. StartNTService.bat
  2. StartSonar.bat
  3. StopNTService.bat
  4. wrapper.exe

Which file are you referring?

Regards,
Gopal.

Hi Gopal,

I’m referring to the one with “stop” in the name. :slight_smile:

I guess you’re confused because you weren’t running it as a service?

 
Ann

Yes Ann. I am not running SonarQube as service.

I downloaded the community version, sonarqube-9.3.0.51899.zip from Download | SonarQube and unzipped it.
Then I started StartSonar.bat from “…\bin\windows-x86-64\ folder.
It launches wrapper.exe and five other java services.
When I close cmd window where StartSonar.bat is run, It closes wrapper.exe and two other java services. What are these two service?

I do not see any other option expect closing cmd window as command prompt is not available once after running “StartSonar.bat” in cmd window. 3 java services related to ports, 9000, 9001 and 9092 are still running and it is consistent behavior. These 3 java services are not getting closed automatically.

Earlier in my post, I mentioned that these 3 services are closed. It is not true as I used to start StartSonar.bat in the beginning of the day and I used to close cmd window just before shutting down my laptop at the end of day of my work. It looks like these 3 java services stopped during laptop shutdown process.

Regards,
Gopal.

Hi,

You can press Ctrl+C on the StartSonar.bat command window to safely stop the SonarQube server.

Thanks Felipe. It works.

Regards,
Gopal.