2015-09-26 180 views
2

我下载sonarqube-5.1.2想跑StartSonar.bat,然后我得到这个错误信息:为什么要运行sonarqube-5.1.2 Startsonar.bat会给出错误信息?

C:\>Startsonar.bat 
wrapper | --> Wrapper Started as Console 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 
wrapper | Launching a JVM... 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 
jvm 1 | 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 
wrapper | <-- Wrapper Stopped 
Unable to open logfile ..\..\logs\sonar.log: Access is denied. (0x5) 

我检查日志文件中sonarqube-5.1.2这个文件是空的。任何人下载sonarqube-5.1.2并有一个空的日志文件?这可能是我得到错误信息的原因吗?如何解决这个问题呢?

+0

检查'config/sonar.log'是否需要'permissions'(读/写) – hrskrs

+0

非常感谢! – Nancy

回答

0

日志告诉你SonarQube平台正在运行,因为用户没有更新sonar.log所需的权限。如果

  1. 你有一些古怪的“安全”或加密程序可能发生这种情况“有益的”倒闭门上的文件烫发/包装盒上的目录(我已经经历了这一个)
  2. 的SonarQube平台作为不同于你期望的用户运行的用户,即一些默认的“服务”用户,并且该用户对该文件没有权限(也经历过这个)。

您需要:

  1. 检查SonarQube服务用户,以确保它是你所期望
  2. 编辑在日志目录的权限,以确保烫发递归授予服务用户帐户

请注意,此手动权限授予不是一个长期修补程序,因为升级时,它将通过将新平台版本的zip扩展到新目录中。长期最安全的做法是确保该服务作为拥有足够权限的用户运行 - 可以将服务交换给新用户,也可以更新服务用户的组。

+0

非常感谢!我刚刚编辑了日志文件的权限。它似乎工作。至少我没有得到“无法打开日志文件”的错误了。 – Nancy

相关问题