簡體   English   中英

無法在 windows VM 上啟動聲納

[英]Unable to Launch Sonar on windows VM

我正在 Windows VM 上安裝聲納,當我嘗試執行聲納時出現以下錯誤,環境

java 15.0.2 2021-01-19 Java(TM) SE 運行時環境 (build 15.0.2+7-27) Java HotSpot(TM) 64-Bit Server VM., 混合模式, 15. ) 聲納 --sonarqube-8.7.0.41497

Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2021.03.02 16:11:43 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory F:\sonarqube-8.7.0.41497\temp
2021.03.02 16:11:43 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:62946]
2021.03.02 16:11:43 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [F:\sonarqube-8.7.0.41497\elasticsearch]: C:\Program Files\Java\jdk-15.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=F:\sonarqube-8.7.0.41497\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.locale.providers=COMPAT -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=F:\sonarqube-8.7.0.41497\elasticsearch -Des.path.conf=F:\sonarqube-8.7.0.41497\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2021.03.02 16:11:43 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2021.03.02 16:11:43 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.03.02 16:11:43 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.03.02 16:11:43 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2021.03.02 16:11:44 ERROR app[][o.s.a.p.EsManagedProcess] Failed to check status
java.lang.RuntimeException: thread waiting for the response was interrupted
    at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1632)
    at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1602)
    at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1572)
    at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:130)

    at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
    at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
Caused by: java.lang.InterruptedException: null
    at java.base/java.lang.Object.wait(Native Method)
    at java.base/java.lang.Object.wait(Object.java:321)
    at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:82)
    at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:70)
    at org.elasticsearch.client.RestClient.performRequest(RestClient.java:279)
    ... 11 common frames omitted
<-- Wrapper Stopped```

不要使用 Java 15. 顯然 SonarQube 使用的開關已被移除 SonarQube 僅支持 Java 11,根據文檔

SonarQube 服務器需要版本 11。官方不支持 Java 11 之后的版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM