Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sonar qube installation on windows server 2012

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

like image 595
Stiv-Langton Avatar asked Sep 09 '14 16:09

Stiv-Langton


People also ask

How do I install SonarQube on my server?

Installing SonarQube from the ZIP file First, check the requirements. Then download and unzip the distribution (do not unzip into a directory starting with a digit). SonarQube cannot be run as root on Unix-based systems, so create a dedicated user account for SonarQube if necessary.

How do I install SonarQube on Windows?

SonarQube requires Java 11+ to run The solution is to download and install Java 11+ from the official site (I installed Java JDK 12). Another things to make sure is that we register the path to this Java (e.g. “C:\Program Files\Java\jdk-12.0. 1\bin”) in our PATH of system environment variable.

Which server is used in SonarQube server?

Microsoft SQL Server READ_COMMITED_SNAPSHOT MUST be set on the SonarQube database. MS SQL database's shared lock strategy may impact SonarQube runtime. Making sure that is_read_committed_snapshot_on is set to true to prevent SonarQube from facing potential deadlocks under heavy loads.


2 Answers

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.

like image 112
Qualilogy Avatar answered Sep 24 '22 00:09

Qualilogy


i was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\

like image 43
harishr Avatar answered Sep 20 '22 00:09

harishr