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
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.
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.
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.
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.
i was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With