2016-08-03 268 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相关的数据库模式。 –