2016-08-03 269 views
2

我下載了sonarqube-5.6並配置了sonar.properties。我的MySQL版本是5.6,Java版本是1.8。當我開始聲納獲取錯誤當前版本太舊,而我的聲納是5.6。下面是錯誤日誌和sonar.propertiesSonarQube ::當前版本太舊。請首先升級到長期支持版本

2016.08.03 18:30:13 INFO web[o.s.s.p.ServerImpl] SonarQube Server/5.6/074f3d1169f9688d15af4aff67e7e672cbeed782 
    2016.08.03 18:30:13 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 
    2016.08.03 18:30:13 ERROR web[o.a.c.c.C.[.[.[/sonar]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener 
    org.sonar.api.utils.MessageException: Current version is too old. Please upgrade to Long Term Support version firstly. 

Sonar.properties

sonar.jdbc.username=sonar 
sonar.jdbc.password=sonar 
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEn 
coding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 

編輯::

請注意我用的5.6版本,這是最新的按http://docs.sonarqube.org

Link說:「你必須先升級到4.5.x - 我推薦4.5.7 - 然後升級到5.3。」 。我沒有得到這個,我應該安裝更低版本的拳頭並升級它5.6或者什麼

+0

[MessageException:當前版本太舊,可能重複。請先升級到長期支持版本](http://stackoverflow.com/questions/34947417/messageexception-current-version-is-too-old-please-upgrade-to-long-term-suppor) –

+0

我檢查了這個鏈接之前發佈我的問題在這裏,但不明白我需要修復 –

+0

@ G.Ann-SonarSourceTeam :: http://docs.sonarqube.org/display/SONAR/Release+5.6+Upgrade+Notes此鏈接說5.6是最新版本,我正在使用相同的版本 –

回答

3

版本5.6不能從4.5.x之前的版本升級。它似乎是你的情況,所以你應該先升級到4.5.x(推薦最新的4.5.7)然後升級到5.6。

+0

你好,我很困惑。我以前沒有安裝任何舊版本,並且出現同樣的錯誤,是否意味着我必須先安裝舊版本? – huron

+0

您可能連接到與另一個版本的SonarQube相關的數據庫模式。 –