我正在使用位于https://github.com/vanderby/SonarQube-AzureAppService的ARM模板将SonarQube部署到Azure App Service。部署后,访问网站时,我在日志中看到以下内容:
5:13:06 PM Starting HttpPlatformHandler Script
5:13:06 PM HTTP_PLATFORM_PORT is: 20471
5:13:06 PM Searching for sonar.properties file
5:13:14 PM File found at: D:\home\site\wwwroot\sonarqube-7.7\conf\sonar.properties
5:13:14 PM Writing to sonar.properties file
5:13:14 PM Searching for wrapper.conf file
5:13:15 PM File found at: D:\home\site\wwwroot\sonarqube-7.7\conf\wrapper.conf
5:13:15 PM Writing to wrapper.conf file
5:13:15 PM Searching for StartSonar.bat
5:13:16 PM File found at: D:\home\site\wwwroot\sonarqube-7.7\bin\windows-x86-64\StartSonar.bat
5:13:16 PM Executing StartSonar.bat
wrapper | Unable to set the process priority: Access is denied. (0x0)
wrapper | Attempt to set the console title failed: The handle is invalid. (0x6)
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | Startup failed: Timed out waiting for a signal from the JVM.
wrapper | JVM did not exit on request, terminated
wrapper | JVM Restarts disabled. Shutting down.
wrapper | <-- Wrapper Stopped
Press any key to continue . . .
当我尝试通过Kudu编辑文件时,我遇到各种访问被拒绝的错误,这似乎是一个普遍的权限问题。
知道发生了什么吗?我已经用Google搜索这个问题,但还没有找到解决方案。
答案 0 :(得分:0)
此日志可能来自第二次启动。如果在应用服务知道其启动之前多次击中该站点,它将尝试多次启动SQ,只有一次成功。我刚刚从GitHub尝试了模板,它可与SQ 7.7一起使用。
加上其他注意事项:
-不支持免费和共享环境。 SQ不在他们身上开始。您需要B1或更高。
-初始启动时间最多可能需要5分钟,尤其是在B1应用服务上。
-您可以在wwwroot \ sonarqube-x.x \ logs \ web.log和\ sonar.log
感谢您找到有用的模板!