sonar qube installation on windows server 2012

Stiv-Langton picture Stiv-Langton · Sep 9, 2014 · Viewed 10.2k times · Source

Installing sonarqube on windows server 2012

I have followed the following steps to install sonar on Windows Server 2012 Downloaded sonarqube4.4 and extracted to C:\Sonarqube

Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7

Installed Windows SDK 7 and .NET Framework 4

Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and i had to hot ctrl- Z to break

I then ran \windows-x86-64\InstallNTService.bat as an administratot and i getting The sonarQube services was launched, but failed to start, not sure where else to look

Thanks in advance for your help

Answer

Qualilogy picture Qualilogy · Sep 11, 2014

I believe you first ran \windows-x86-64\InstallNTService.bat successfully and then StartSonar.bat unsuccessfully (inverse order of what you describe).

You probably meet this problem http://qualilogy.com/fr/wp-content/uploads/sites/2/2013/09/Sonar_ServiceLaunchError2.jpg

In that case, solution is to change the user/rights to launch the Sonar service: http://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/

Regards.