由於添加的憑證類型錯誤,因此沒法添加token,類型應該選擇「Secret text」,而不是「username with password」。java
#完整報錯: ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] ERROR: Elasticsearch did not exit normally - check the logs at /opt/sonarqube/logs/sonarqube.log 緣由:因爲 SonarQube 使用嵌入式 Elasticsearch,請確保您的 Docker 主機配置符合Elasticsearch 生產模式要求和文件描述符配置。 解決:在 Linux 上,您能夠經過在主機上以 root 身份運行如下命令來設置當前會話的推薦值:(調整系統參數) sysctl -w vm.max_map_count=262144 sysctl -w fs.file-max=65536 ulimit -n 65536 ulimit -u 4096
#完整報錯: 2021.07.12 05:59:54 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch could not find java in ES_JAVA_HOME at /opt/java/openjdk/bin/java 2021.07.12 05:59:54 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1 2021.07.12 05:59:54 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running 緣由:由於用的是sonarqube:9.0.0-community最新版,多是sonar版本問題(沒弄明白) 解決:換個低版本就不會有這個問題了,好比sonarqube:8.9.1-conmunity版本
#完整報錯: Exception in thread "main" org.sonar.process.MessageException: Unsupported JDBC driver provider: mysql 緣由:sonarqube7.9以上已再也不支持mysql數據庫 解決:換成postgresql、oracle、sqlserver數據庫
#完整報錯: ERROR: Tasks support was removed in SonarQube 7.6. ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed? ERROR: SonarQube scanner exited with non-zero code: 2 解決:刪除Execute SonarQube Scanner中Task to run這一欄,什麼東西都不要填 #完整報錯 org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property,
or exclude them from the analysis with sonar.exclusions property. 緣由:sonarqube的sonar-java插件從4.1.2開始,強制要求sonar.java.binaries參數 解決:在Analysis properties配置中添加 」sonar.java.binaries「 參數
做者:等風來~~mysql
全部文章僅用於學習、研究和交流目的,歡迎轉載。sql
若是以爲文章寫得不錯,或者幫助到您了.數據庫
若是文章有寫的不足的地方,請你必定要指出,由於這樣不光是對我寫文章的一種促進,也是一份對後面看此文章的人的責任。謝謝。bootstrap