MessageException:当前版本太旧.请首先升级到长期支持版本 [英] MessageException: Current version is too old. Please upgrade to Long Term Support version firstly

查看:338
本文介绍了MessageException:当前版本太旧.请首先升级到长期支持版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了SonarQube 5.3,配置了sonar.properties文件,下载了用于MSSQL的JDBC驱动程序(我正在使用SQL Server 2012和SQL JDBC 4.2),并在我的SQL Server 2012实例中使用数据库sonar.

I downloaded SonarQube 5.3, configured the sonar.properties file, downloaded the JDBC driver for MSSQL (I'm using SQL Server 2012 and SQL JDBC 4.2), created a user with all grants in my SQL Server 2012 instance with database sonar.

然后我执行startSonar.bat,这将引发以下错误:

Then I execute startSonar.bat and this throws the following error:

2016.01.22 13:57:57 INFO  web[o.s.s.p.ServerImpl] SonarQube Server / 5.3 / 8db783e62b266eeb0d0b10dc050a7ca50e96c5d1
2016.01.22 13:57:57 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://localhost;databaseName=sonar
2016.01.22 13:57:59 ERROR web[o.a.c.c.C.[.[.[/]] 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.
2016.01.22 13:57:59 INFO  web[jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_66-b18 [Windows 7-amd64]
2016.01.22 13:57:59 INFO  web[jruby.rack] using a shared (threadsafe!) runtime
2016.01.22 13:58:05 ERROR web[jruby.rack] initialization failed
org.jruby.rack.RackInitializationException: java.lang.NullPointerException
    at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:31) ~[jruby-rack-1.1.13.2.jar:na]
    at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) ~[jruby-rack-1.1.13.2.jar:na]
    at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) ~[jruby-rack-1.1.13.2.jar:na]
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_66]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_66]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_66]
    at java.lang.Thread.run(Unknown Source) [na:1.8.0_66]
--- and then creates a cascade of errors ---


这是sonar.properties文件中的内容:


This is what's in the sonar.properties file:

# DATABASE
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar

# Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server.
# Set the sonar.jdbc.username and sonar.jdbc.password appropriately.
 sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar

 # TCP port for incoming HTTP connections. Disabled when value is -1.
sonar.web.port=4950


我看到的只是当前版本太旧.请先升级到长期支持版本."但是...升级什么?


All I see is "Current version is too old. Please upgrade to Long Term Support version firstly." but... upgrade what?

推荐答案

这与您的数据库品牌或版本无关,但是与SonarQube平台的版本有关,您将从升级.从版本4.5开始,平台的新版本仅累积从先前的长期支持版本开始的数据库升级脚本.因此,SonarQube平台3.2版知道如何从1.5版一直升级,而5.3版只知道如何从4.5.x版开始更新数据库.

This has nothing to do with your database brand or version, but with the version of the SonarQube platform you're upgrading from. Starting with version 4.5, new versions of the platform only accumulate database upgrade scripts starting from the previous Long Term Support version. So the SonarQube platform version 3.2 knows how to upgrade all the way from 1.5, but 5.3 only knows how to update the database starting from version 4.5.x.

因此,您必须先升级到4.5.x-我建议使用4.5.7-然后然后升级到5.3.

So you must first upgrade to 4.5.x - I'd recommend 4.5.7 - and then upgrade to 5.3.

更新

5.6.7是当前的先前LTS,因此从假设的3.2安装开始的当前升级路径为:

5.6.7 is the current a previous LTS, so the current upgrade path from a hypothetical 3.2 install would be:

3.2-> 4.5.7-> 5.6.6

3.2 -> 4.5.7 -> 5.6.6

更新17年12月1日

6.7是当前的LTS,因此从假设的3.2安装中获得的当前升级路径为:

6.7 is the current LTS, so the current upgrade path from a hypothetical 3.2 install would be:

3.2-> 4.5.7. -> 5.6.7-> 6.7

3.2 -> 4.5.7. -> 5.6.7 -> 6.7

可以跳过中间版本.

这篇关于MessageException:当前版本太旧.请首先升级到长期支持版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆