2017-02-11 31 views
0

我試圖從Docker與sonar.sh start一起運行Sonarqube。Sonarqube不從Docker開始

當我查看日誌grep -i Exception *我看到這一點:

ce.log:org.apache.ibatis.exceptions.PersistenceException: 
ce.log:### Error querying database. Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" [90067-176] 
ce.log:### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" [90067-176] 
ce.log: at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26) 
ce.log:Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" [90067-176] 
ce.log: at org.h2.message.DbException.getJdbcSQLException(DbException.java:344) 
ce.log: at org.h2.message.DbException.get(DbException.java:167) 
ce.log:Caused by: java.net.ConnectException: Connection refused (Connection refused) 
web.log:2017.02.11 14:30:00 ERROR web[][o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.web.PlatformServletContextListener 
web.log:java.lang.IllegalStateException: Metric [scoverage] is already defined by the repository [[email protected]] 
web.log:java.lang.IllegalStateException: Webapp did not start 

一些例外的參考數據庫,但我不認爲應該有任何問題,因爲我沒有修改嵌入式數據庫。

我認爲這可能是最相關的問題,因爲我加了斯卡拉插件Sonarqube:

web.log:java.lang.IllegalStateException: Metric [scoverage] is already defined by the repository [[email protected]] 

任何想法,這可能是導致Sonarqube在泊塢失敗?

+0

您使用的是哪張圖片? – Salem

回答

0

我在sonarqube/extensions/sonarqube/extensions/plugins插入了sonar-scala插件。

當我從sonarqube/extensions/中刪除它後,它開始工作。不知道爲什麼。

+2

你提到的插件非常陳舊。 SonarQube經常改變主程序,所以在幾次SonarQube更新後,插件將不再工作。在您的問題中提及SonarQube和插件版本總是很重要。 –