SonarQube 5.4 - > 5.5升级失败

时间:2016-05-18 14:52:06

标签: mysql ldap sonarqube upgrade sonarqube-ops

我在Azure / Windows Server 2012(SP2)和MySQL MySQL 5.7.12社区服务器上运行SonarQube 5.4。

5.4版本的一切正常。 我按照此链接的升级步骤进行了操作:http://docs.sonarqube.org/display/SONARNEXT/Upgrading

我可以安装SonarQube 5.5,使用默认数据库运行它并安装我的插件(由于某些原因不可用的视图除外)。

然后我停止服务器并更新sonar.properties中的信息,以便它使用我的MySQL数据库。

我重新启动服务器并转到数据库升级页面。我启动了升级,最终说升级失败了。

当我查看日志文件时,我看到以下内容:

2016.05.18 10:22:16 INFO  web[DbMigration]    -> 0.8130s
2016.05.18 10:22:16 INFO  web[DbMigration]    -> 0 rows
2016.05.18 10:22:16 INFO  web[DbMigration] ==  AddIndexCeActivityIslastStatus: migrated (0.8130s) ========================
2016.05.18 10:22:16 INFO  web[DbMigration] 
2016.05.18 10:22:17 INFO  web[o.s.d.c.MysqlCharsetHandler] Verify that database collation is case-sensitive
2016.05.18 10:22:17 INFO  web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (no proxy)
2016.05.18 10:22:18 INFO  web[o.s.s.e.IndexCreator] Create index tests
2016.05.18 10:22:18 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [tests] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:18 INFO  web[o.s.s.e.IndexCreator] Create type tests/test
2016.05.18 10:22:19 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [tests] create_mapping [test]
2016.05.18 10:22:19 INFO  web[o.s.s.e.IndexCreator] Create index activities
2016.05.18 10:22:19 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [activities] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:19 INFO  web[o.s.s.e.IndexCreator] Create type activities/activity
2016.05.18 10:22:19 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [activities] create_mapping [activity]
2016.05.18 10:22:20 INFO  web[o.s.s.e.IndexCreator] Create index rules
2016.05.18 10:22:20 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [rules] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:20 INFO  web[o.s.s.e.IndexCreator] Create type rules/activeRule
2016.05.18 10:22:20 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [rules] create_mapping [activeRule]
2016.05.18 10:22:20 INFO  web[o.s.s.e.IndexCreator] Create type rules/rule
2016.05.18 10:22:20 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [rules] create_mapping [rule]
2016.05.18 10:22:20 INFO  web[o.s.s.e.IndexCreator] Create index issues
2016.05.18 10:22:20 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [issues] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:21 INFO  web[o.s.s.e.IndexCreator] Create type issues/authorization
2016.05.18 10:22:21 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [issues] create_mapping [authorization]
2016.05.18 10:22:21 INFO  web[o.s.s.e.IndexCreator] Create type issues/issue
2016.05.18 10:22:21 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [issues] create_mapping [issue]
2016.05.18 10:22:21 INFO  web[o.s.s.e.IndexCreator] Create index users
2016.05.18 10:22:21 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [users] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:21 INFO  web[o.s.s.e.IndexCreator] Create type users/user
2016.05.18 10:22:21 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [users] create_mapping [user]
2016.05.18 10:22:21 INFO  web[o.s.s.e.IndexCreator] Create index views
2016.05.18 10:22:21 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [views] creating index, cause [api], templates [], shards [5]/[0], mappings []
2016.05.18 10:22:22 INFO  web[o.s.s.e.IndexCreator] Create type views/view
2016.05.18 10:22:22 INFO   es[o.e.cluster.metadata]  [sonar-1463581252531] [views] create_mapping [view]
2016.05.18 10:22:22 INFO  web[o.s.s.n.NotificationService] Notification service started (delay 60 sec.)
2016.05.18 10:22:22 INFO  web[o.s.s.s.RegisterMetrics] Register metrics
2016.05.18 10:22:22 INFO  web[o.s.s.s.RegisterMetrics] Disable metric List of projects in error [projects_in_error]
2016.05.18 10:22:22 INFO  web[o.s.s.s.RegisterMetrics] Disable metric List of projects in warning [projects_in_warning]
2016.05.18 10:22:23 INFO  web[o.s.s.r.RegisterRules] Register rules
2016.05.18 10:22:29 INFO  web[o.s.s.q.RegisterQualityProfiles] Register quality profiles
2016.05.18 10:22:31 INFO  web[o.s.s.s.RegisterNewMeasureFilters] Register measure filters
2016.05.18 10:22:31 INFO  web[o.s.s.s.RegisterDashboards] Register dashboards
2016.05.18 10:22:31 INFO  web[o.s.s.s.RegisterPermissionTemplates] Register permission templates
2016.05.18 10:22:31 INFO  web[o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2016.05.18 10:22:31 INFO  web[o.s.s.s.LogServerId] Server information:
  - ID            : "1c3009f658bf71b"
  - Organisation  : "Manulife"
  - Registered IP : "10.234.41.5"

2016.05.18 10:22:31 INFO  web[o.s.s.p.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@3894530f [pattern=/sessions/init/*]
2016.05.18 10:22:31 INFO  web[o.s.s.p.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@3de8e60d [pattern=/oauth2/callback/*]
2016.05.18 10:22:31 INFO  web[o.s.s.d.m.PlatformDatabaseMigration] DB migration failed | time=60830ms
2016.05.18 10:22:31 ERROR web[o.s.s.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
java.lang.NullPointerException: null
    at org.sonar.server.startup.FeedUsersLocalStartupTask.updateUsersLocal(FeedUsersLocalStartupTask.java:93) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.startup.FeedUsersLocalStartupTask.start(FeedUsersLocalStartupTask.java:76) ~[sonar-server-5.5.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_77]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_77]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_77]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.15.jar:na]
    at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320) ~[sonar-core-5.5.jar:na]
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) ~[picocontainer-2.15.jar:na]
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141) ~[sonar-core-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:84) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:44) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:78) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:44) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:75) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:199) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.doStart(Platform.java:114) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.doStart(Platform.java:99) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.db.migrations.PlatformDatabaseMigration.doRestartContainer(PlatformDatabaseMigration.java:138) [sonar-server-5.5.jar:na]
    at org.sonar.server.db.migrations.PlatformDatabaseMigration.doDatabaseMigration(PlatformDatabaseMigration.java:114) [sonar-server-5.5.jar:na]
    at org.sonar.server.db.migrations.PlatformDatabaseMigration.access$000(PlatformDatabaseMigration.java:37) [sonar-server-5.5.jar:na]
    at org.sonar.server.db.migrations.PlatformDatabaseMigration$1.run(PlatformDatabaseMigration.java:101) [sonar-server-5.5.jar:na]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_77]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_77]
    at java.lang.Thread.run(Unknown Source) [na:1.8.0_77]

然后,如果我重新启动服务器,它会在几秒后自动停止,我会在日志文件中看到:

--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2016.05.18 10:45:08 INFO  app[o.s.a.AppFileSystem] Cleaning or creating temp directory E:\sonarqube\sonarqube-5.5\temp
2016.05.18 10:45:08 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[es]: C:\Program Files\Java\jre1.8.0_77\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=E:\sonarqube\sonarqube-5.5\temp -javaagent:C:\Program Files\Java\jre1.8.0_77\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\frouel1\AppData\Local\Temp\2\sq-process839328600891893216properties
2016.05.18 10:45:09 INFO   es[o.s.p.ProcessEntryPoint]  Starting es
2016.05.18 10:45:09 INFO   es[o.s.s.EsSettings]  Elasticsearch listening on 127.0.0.1:9003
2016.05.18 10:45:09 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] version[1.7.5], pid[4284], build[00f95f4/2016-02-02T09:55:30Z]
2016.05.18 10:45:09 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] initializing ...
2016.05.18 10:45:09 INFO   es[o.e.plugins]  [sonar-1463582708673] loaded [], sites []
2016.05.18 10:45:10 INFO   es[o.elasticsearch.env]  [sonar-1463582708673] using [1] data paths, mounts [[Volume E (E:)]], net usable_space [1013.1gb], net total_space [1021.8gb], types [NTFS]
2016.05.18 10:45:11 WARN   es[o.e.bootstrap]  JNA not found. native methods will be disabled.
2016.05.18 10:45:11 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] initialized
2016.05.18 10:45:11 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] starting ...
2016.05.18 10:45:12 INFO   es[o.e.transport]  [sonar-1463582708673] bound_address {inet[/127.0.0.1:9003]}, publish_address {inet[/127.0.0.1:9003]}
2016.05.18 10:45:12 INFO   es[o.e.discovery]  [sonar-1463582708673] sonarqube/QR7iG-ndSSWN59sMs0gS-A
2016.05.18 10:45:15 INFO   es[o.e.cluster.service]  [sonar-1463582708673] new_master [sonar-1463582708673][QR7iG-ndSSWN59sMs0gS-A][AZCWVCBSCINP01][inet[/127.0.0.1:9003]]{rack_id=sonar-1463582708673}, reason: zen-disco-join (elected_as_master)
2016.05.18 10:45:15 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] started
2016.05.18 10:45:15 INFO   es[o.e.gateway]  [sonar-1463582708673] recovered [6] indices into cluster_state
2016.05.18 10:45:16 INFO  app[o.s.p.m.Monitor] Process[es] is up
2016.05.18 10:45:16 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[web]: C:\Program Files\Java\jre1.8.0_77\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=E:\sonarqube\sonarqube-5.5\temp -javaagent:C:\Program Files\Java\jre1.8.0_77\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;E:\sonarqube\sonarqube-5.5\lib\jdbc\mysql\mysql-connector-java-5.1.35.jar org.sonar.server.app.WebServer C:\Users\frouel1\AppData\Local\Temp\2\sq-process6059395674422514261properties
2016.05.18 10:45:17 INFO  web[o.s.p.ProcessEntryPoint] Starting web
2016.05.18 10:45:17 INFO  web[o.s.s.a.TomcatContexts] Webapp directory: E:\sonarqube\sonarqube-5.5\web
2016.05.18 10:45:17 INFO  web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9002"]
2016.05.18 10:45:17 INFO  web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2016.05.18 10:45:18 INFO  web[o.s.s.p.ServerImpl] SonarQube Server / 5.5 / 5773a4aab0ef6c0de79d3038e82f8a051049d6d0
2016.05.18 10:45:18 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:mysql://localhost:3306/sonar55?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
2016.05.18 10:45:19 INFO  web[o.s.s.p.DefaultServerFileSystem] SonarQube home: E:\sonarqube\sonarqube-5.5
2016.05.18 10:45:19 INFO  web[o.e.plugins] [sonar-1463582708673] loaded [], sites []
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin C# / 5.2 / 54d1d010bc1816dc89bf31237ce361921eaf3242
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin CSS / 1.8 / 55a17999ec9892984e2cda4bb171916d50058b5b
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Checkstyle / 2.4 / abe1e23436ed7b227a3a325cbf12e204a7c90fc9
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Findbugs / 3.3 / e1a76544ee6aed765106e7e2bb64072adf63ccaf
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Java / 3.13.1 / cf0f0c950ba3e83a87c7fe11c6ff7e63f4864bd9
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin JavaScript / 2.12 / 1b7786cb76e9f7d1b0fa49196e89d40e0ff286f1
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Jazz RTC / 1.1 / 5e1f94a949cd7b73a10c912a7006ddf0ec0f1429
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin PMD / 2.5 / 2b4e2b9de568d5436e02cd874442e005f45bf3db
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.3 / aff503d48bc77b07c2b62abf93249d0a20bd355c
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Web / 2.4 / 61c14c00da36f77d18c019ad2bd7942708e99c13
2016.05.18 10:45:19 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin XML / 1.4.1 / d2c0388961fcbe78ac597ca3fb3e262d3e733988
2016.05.18 10:45:20 INFO  web[o.s.d.c.MysqlCharsetHandler] Verify that database collation is case-sensitive
2016.05.18 10:45:20 INFO  web[o.s.s.p.RailsAppsDeployer] Deploying Ruby on Rails applications
2016.05.18 10:45:22 INFO  web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (no proxy)
2016.05.18 10:45:22 INFO  web[o.s.s.n.NotificationService] Notification service started (delay 60 sec.)
2016.05.18 10:45:22 INFO  web[o.s.s.s.RegisterMetrics] Register metrics
2016.05.18 10:45:23 INFO  web[o.s.s.r.RegisterRules] Register rules
2016.05.18 10:45:27 INFO  web[o.s.s.q.RegisterQualityProfiles] Register quality profiles
2016.05.18 10:45:28 INFO  web[o.s.s.s.RegisterNewMeasureFilters] Register measure filters
2016.05.18 10:45:28 INFO  web[o.s.s.s.RegisterDashboards] Register dashboards
2016.05.18 10:45:28 INFO  web[o.s.s.s.RegisterPermissionTemplates] Register permission templates
2016.05.18 10:45:28 INFO  web[o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2016.05.18 10:45:28 INFO  web[o.s.s.s.LogServerId] Server information:
  - ID            : "1c3009f658bf71b"
  - Organisation  : "Manulife"
  - Registered IP : "10.234.41.5"

2016.05.18 10:45:29 INFO  web[o.s.s.n.NotificationService] Notification service stopped
2016.05.18 10:45:29 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.NullPointerException: null
    at org.sonar.server.startup.FeedUsersLocalStartupTask.updateUsersLocal(FeedUsersLocalStartupTask.java:93) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.startup.FeedUsersLocalStartupTask.start(FeedUsersLocalStartupTask.java:76) ~[sonar-server-5.5.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_77]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_77]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_77]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.15.jar:na]
    at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320) ~[sonar-core-5.5.jar:na]
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) ~[picocontainer-2.15.jar:na]
    at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) ~[picocontainer-2.15.jar:na]
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141) ~[sonar-core-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:84) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:44) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:78) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:44) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:75) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:199) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.doStart(Platform.java:114) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.Platform.doStart(Platform.java:99) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:44) ~[sonar-server-5.5.jar:na]
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) [tomcat-embed-core-8.0.30.jar:8.0.30]
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) [tomcat-embed-core-8.0.30.jar:8.0.30]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.30.jar:8.0.30]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) [tomcat-embed-core-8.0.30.jar:8.0.30]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) [tomcat-embed-core-8.0.30.jar:8.0.30]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_77]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_77]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_77]
    at java.lang.Thread.run(Unknown Source) [na:1.8.0_77]
2016.05.18 10:45:29 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
2016.05.18 10:45:29 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2016.05.18 10:45:29 WARN  web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(Unknown Source)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2016.05.18 10:45:29 INFO  web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9002"]
2016.05.18 10:45:29 INFO  web[o.s.s.a.TomcatAccessLog] Web server is started
2016.05.18 10:45:29 INFO  web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9002
2016.05.18 10:45:29 WARN  web[o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start
    at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-5.5.jar:na]
    at org.sonar.server.app.WebServer.isUp(WebServer.java:48) [sonar-server-5.5.jar:na]
    at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process-5.5.jar:na]
    at org.sonar.server.app.WebServer.main(WebServer.java:69) [sonar-server-5.5.jar:na]
2016.05.18 10:45:29 INFO  web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9002"]
2016.05.18 10:45:29 INFO  web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9002"]
2016.05.18 10:45:29 INFO  web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9002"]
2016.05.18 10:45:29 INFO  web[o.s.s.a.TomcatAccessLog] Web server is stopped
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
2016.05.18 10:45:30 INFO  app[o.s.p.m.Monitor] Process[es] is stopping
2016.05.18 10:45:30 INFO   es[o.s.p.StopWatcher]  Stopping process
2016.05.18 10:45:30 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] stopping ...
2016.05.18 10:45:30 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] stopped
2016.05.18 10:45:30 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] closing ...
2016.05.18 10:45:30 INFO   es[o.elasticsearch.node]  [sonar-1463582708673] closed
2016.05.18 10:45:31 INFO  app[o.s.p.m.Monitor] Process[es] is stopped

我的SonarQube 5.4安装上也有LDAP插件。我使用和不使用相同的结果尝试了5.5版本。

我必须遗漏一些东西,但我不知道出了什么问题。

1 个答案:

答案 0 :(得分:7)

出现同样的问题,有一个用户使用null external_identity_provider。 我运行了这个查询:

update users set external_identity_provider='sonarqube' where external_identity_provider is null

并重新启动声纳 - 现在一切正常。