2015-11-27 282 views
4

我目前正在嘗試安裝SonarQube。當按照其頁面上的說明操作時,我來到運行InstallNTService.batStartNTService.bat的說明。SonarQube服務啓動但未能啓動?

this (stackoverflow)後類似,它說

wrapper | Starting the SonarQube service... 
wrapper | The SonarQube service was launched, but failed to start. 

錯誤日誌文件說:

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. 

而且我不知道它爲什麼失敗。

  • 我跑的應用程序作爲管理員
  • 我有64位Windows和Java安裝
  • 的wrapper.dll是對在其位

預先感謝您!

編輯:

This頁descibes解決,我不能爲上的服務右鍵點擊下拉菜單使用問題不可用。

回答

1

我在日誌中發現下面的,所以我也跟着在這裏找到更改帳戶具有本地管理權的指令,並且它的工作原理:http://docs.sonarqube.org/display/SONAR/Running+SonarQube+as+a+Service+on+Windows

WrapperSimpleApp:遇到一個錯誤運行主:java.lang.IllegalStateException :Temp目錄不可寫:C:\ Windows \ system32 \ config \ systemprofile \ AppData \ Local \ Temp \

+0

對不起,但我不知道這件事了。我一天後解決了這個問題。 –

1

您必須將服務帳戶(根據此link配置)添加到本地管理員組正在運行的聲納qube服務

0

我遇到了同樣的錯誤。我的解決方案是驗證是否安裝了java x64 JDK - 並且問題消失了。

0

我面臨着同樣的問題,並在遵循上述所有要點後得到解決,即 a。確保服務在管理員登錄 上運行b。使用管理員登錄安裝JDK

+1

看起來這個答案真的是對另一個答案的評論。 – jdv