2015-11-27 220 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