SonarQube-Dienst gestartet wurde aber nicht gestartet?
Ich bin derzeit versuchen zu installieren, SonarQube. Folgen Sie dazu den Anweisungen auf der Seite, kam ich auf die Anweisung zum ausführen der InstallNTService.bat und StartNTService.bat.
Ähnlich diese (stackoverflow) post steht
wrapper | Starting the SonarQube service...
wrapper | The SonarQube service was launched, but failed to start.
Error-log-Datei sagt:
The SonarQube service was launched, but failed to start.
Starting the SonarQube service...
--> Wrapper Started as Service
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\tools\sonarqube-5.2\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\tools\sonarqube-5.2\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.
WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: Temp directory is not writable: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\
java.lang.IllegalStateException: Temp directory is not writable: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\
at org.sonar.process.MinimumViableSystem.checkWritableDir(MinimumViableSystem.java:60)
at org.sonar.process.MinimumViableSystem.checkWritableTempDir(MinimumViableSystem.java:52)
at org.sonar.process.MinimumViableSystem.check(MinimumViableSystem.java:45)
at org.sonar.application.App.main(App.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(Unknown Source)
at org.sonar.process.MinimumViableSystem.checkWritableDir(MinimumViableSystem.java:57)
... 9 more
<-- Wrapper Stopped
The SonarQube service was launched, but failed to start.
Und ich weiß nicht, warum es scheitert.
- Lief ich die Anwendung als admin
- Ich habe die 64-bit-Windows-und Java installiert
- die wrapper.dll richtig ist an seiner Stelle
Vielen Dank im Voraus!
EDIT:
Diese Seite beschreibt eine Lösung für das problem, dass ich nicht verwenden können, wie Sie das dropdown-Menü auf der rechten Taste klicken Sie auf den service ist nicht verfügbar.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Finde ich folgende in der log, also folgte ich der Anleitung hier gefunden zu ändern, ein Konto haben lokale admin-Rechte und es funktioniert: http://docs.sonarqube.org/display/SONAR/Running+SonarQube+as+a+Service+on+Windows
WrapperSimpleApp: ein Fehler ist Aufgetreten running main: java.lang.IllegalStateException: Temp-Verzeichnis ist nicht beschreibbar: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\
Haben Sie zum hinzufügen von Dienst-Konto (die konfiguriert ist, gemäß dieser link) zur lokalen administrator Gruppe von der Maschine ausgeführt sonar qube service
Traf ich den gleichen Fehler. Meine Lösung war es, zu überprüfen, dass die java x64 JDK installiert wurde - und das problem ging Weg.
War ich vor dem gleichen Problem und hab es gelöst, nachdem alle oben genannten Punkte ie
ein. Sicherstellen, dass der Dienst ausgeführt wird, über admin-login
b. JDK ist installiert mit einem admin-login