2015-04-28 147 views
1

我試圖從4.5.4升級到5.1,但它失敗。 它來自不兼容的插件或其他東西嗎?sonarqube升級4.5.4到5.1失敗

我的插件列表:

  • 聲納LDAP的插件-1.4.jar
  • 聲納的CheckStyle-插件-2.3.jar
  • 聲納的運動排行榜插件-1.7.jar
  • 聲納-CSS-插件-1.1.jar
  • 聲納-PMD-插件-2.3.jar
  • 聲納的FindBugs-插件-3.2.jar
  • 聲納時間軸的插件-1.4.jar
  • 聲納Groovy的插件-1.1.jar
  • 聲納無用的代碼,跟蹤器,插件-1.0.jar
  • 聲納的問題 - 分配 - 插件 - 1.5的.jar
  • 聲納意見-插件-2.8.jar
  • 聲納的問題密度-插件-1.0.jar
  • 聲納網絡插件 - 2.3.jar
  • 聲納的Java插件-3.1 .jar
  • sonar-xml-plugin-1.2.jar
  • sonar-javascript-plugin-2.5.jar

這是日誌。我從一個乾淨的數據/ ES空目錄

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

2015.04.28 13:23:17 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: /usr/java/jdk1.8.0_45/jre/bin/java -Djava.awt.headless=true -server -Xmx512m -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/sonarqube-5.1/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /tmp/sq-process7364011964623837555properties 
2015.04.28 13:23:18 INFO es[o.s.p.ProcessEntryPoint] Starting search 
2015.04.28 13:23:18 INFO es[o.s.s.SearchServer] Starting Elasticsearch[sonarqube] on port 9003 
... 
2015.04.28 13:23:32 INFO web[o.s.s.p.RailsAppsDeployer] Deploy Ruby on Rails applications 
2015.04.28 13:23:32 INFO web[o.s.s.p.RailsAppsDeployer] Deploy app: motionchart 
2015.04.28 13:23:32 INFO web[o.s.s.p.RailsAppsDeployer] Deploy app: views 
2015.04.28 13:23:32 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_45-b14 [linux-amd64] 
2015.04.28 13:23:32 INFO web[jruby.rack] using a shared (threadsafe!) runtime 
2015.04.28 13:23:45 INFO web[jruby.rack] keeping custom (config.logger) Rails logger instance 
2015.04.28 13:23:45 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9001"] 
2015.04.28 13:23:45 INFO web[o.s.s.a.TomcatAccessLog] Web server is started 
2015.04.28 13:23:45 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9001 
2015.04.28 13:23:46 INFO app[o.s.p.m.Monitor] Process[web] is up 
... 
2015.04.28 13:31:14 INFO web[DbMigration] 
2015.04.28 13:31:14 INFO web[DbMigration] == AddUuidToAnalysisReports: migrating ======================================= 
2015.04.28 13:31:14 INFO web[DbMigration] -- columns("analysis_reports") 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.0120s 
2015.04.28 13:31:14 INFO web[DbMigration] -- add_column("analysis_reports", "uuid", :string, {:limit=>50, :null=>false}) 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.0030s 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0 rows 
2015.04.28 13:31:14 INFO web[DbMigration] -- columns("analysis_reports") 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.0090s 
2015.04.28 13:31:14 INFO web[DbMigration] -- remove_column("analysis_reports", "report_data") 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.1030s 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0 rows 
2015.04.28 13:31:14 INFO web[DbMigration] -- columns("analysis_reports") 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.0110s 
2015.04.28 13:31:14 INFO web[DbMigration] -- remove_column("analysis_reports", "snapshot_id") 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0.1140s 
2015.04.28 13:31:14 INFO web[DbMigration] -> 0 rows 
2015.04.28 13:31:14 INFO web[DbMigration] == AddUuidToAnalysisReports: migrated (0.2560s) ============================== 
2015.04.28 13:31:14 INFO web[DbMigration] 
2015.04.28 13:31:14 INFO web[o.s.j.s.AbstractDatabaseConnector] Initializing Hibernate 
2015.04.28 13:31:17 INFO web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (HTTP proxy: arkoon:9090) 
2015.04.28 13:31:17 INFO web[o.s.s.e.IndexCreator] Create index sourcelines 
2015.04.28 13:31:18 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [sourcelines] creating index, cause [api], shards [1]/[0], mappings [] 
2015.04.28 13:31:18 INFO web[o.s.s.e.IndexCreator] Create type sourcelines/sourceline 
2015.04.28 13:31:18 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [sourcelines] create_mapping [sourceline] 
2015.04.28 13:31:18 INFO web[o.s.s.e.IndexCreator] Create index activities 
2015.04.28 13:31:18 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [activities] creating index, cause [api], shards [1]/[0], mappings [] 
2015.04.28 13:31:18 INFO web[o.s.s.e.IndexCreator] Create type activities/activity 
2015.04.28 13:31:18 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [activities] create_mapping [activity] 
2015.04.28 13:31:18 INFO web[o.s.s.e.IndexCreator] Create index issues 
2015.04.28 13:31:18 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [issues] creating index, cause [api], shards [1]/[0], mappings [] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create type issues/authorization 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [issues] create_mapping [authorization] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create type issues/issue 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [issues] create_mapping [issue] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create index users 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [users] creating index, cause [api], shards [1]/[0], mappings [] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create type users/user 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [users] create_mapping [user] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create index views 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [views] creating index, cause [api], shards [1]/[0], mappings [] 
2015.04.28 13:31:19 INFO web[o.s.s.e.IndexCreator] Create type views/view 
2015.04.28 13:31:19 INFO es[o.e.cluster.metadata] [sonar-1430220197325] [views] create_mapping [view] 
2015.04.28 13:31:20 INFO web[org.sonar.INFO] Security realm: LDAP 
2015.04.28 13:31:20 INFO web[o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=ou=users,o=internet, request=(&(objectClass=inetOrgPerson)(uid={0})), realNameAttribute=cn, emailAttribute=mail} 
2015.04.28 13:31:20 INFO web[o.s.p.l.LdapSettingsManager] Group mapping: LdapGroupMapping{baseDn=ou=Sonar,ou=Developpement,ou=appli,o=internet, idAttribute=cn, requiredUserAttributes=[dn], request=(&(objectClass=groupOfUniqueNames)(uniqueMember={0}))} 
2015.04.28 13:31:20 INFO web[o.s.p.l.LdapContextFactory] Test LDAP connection on ldap://charlemagne.lan:389: OK 
2015.04.28 13:31:20 INFO web[org.sonar.INFO] Security realm started 
2015.04.28 13:31:20 INFO web[o.s.s.n.NotificationService] Notification service started (delay 60 sec.) 
2015.04.28 13:31:20 INFO web[views] views plugin licensed to FOO, PRODUCTION [Expiration: 2015-11-26, Server: 11151325d743386] 
2015.04.28 13:31:20 INFO web[o.s.s.s.IndexSynchronizer] Index rules 
2015.04.28 13:31:35 INFO web[o.s.s.s.IndexSynchronizer] Index activeRules 
2015.04.28 13:31:44 ERROR web[o.s.s.ui.JRubyFacade] Fail to upgrade database 
Could not execute normalization for stack 
    org.sonar.server.search.IndexQueue.processActionsIntoQueries(IndexQueue.java:136) 
    org.sonar.server.search.IndexQueue.enqueue(IndexQueue.java:82) 
    org.sonar.core.persistence.DbSession.commit(DbSession.java:62) 
    org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:370) 
    org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:356) 
    org.sonar.server.search.IndexSynchronizer.synchronize(IndexSynchronizer.java:104) 
    org.sonar.server.search.IndexSynchronizer.executeDeprecated(IndexSynchronizer.java:74) 
    org.sonar.server.platform.ServerComponents$1.doPrivileged(ServerComponents.java:850) 
    org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:43) 
    org.sonar.server.platform.ServerComponents.executeStartupTasks(ServerComponents.java:847) 
    org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:126) 
    org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:122) 
    org.sonar.server.platform.Platform.doStart(Platform.java:81) 
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    java.lang.reflect.Method.invoke(Method.java:497) 
    org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440) 
    org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304) 
    org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52) 
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) 
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) 
    org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) 
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71) 
    org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) 
    org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139) 
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182) 
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) 
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) 
    org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) 
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71) 
    org.jruby.ast.RescueNode.executeBody(RescueNode.java:221) 
    org.jruby.ast.RescueNode.interpret(RescueNode.java:116) 
    org.jruby.ast.BeginNode.interpret(BeginNode.java:83) 
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
    org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) 
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) 
    org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:336) 
    org.jruby.runtime.BlockBody.call(BlockBody.java:73) 
    org.jruby.runtime.Block.call(Block.java:101) 
    org.jruby.RubyProc.call(RubyProc.java:290) 
    org.jruby.RubyProc.call(RubyProc.java:228) 
    org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:97) 
    java.lang.Thread.run(Thread.java:745) 

登錄開始調試信息添加

2015.06.12 11:34:38 ERROR web[o.s.s.s.IndexQueue] Could not execute normalization for stack 
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Repository must be set 
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_45] 
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_45] 
at org.sonar.server.search.IndexQueue.processActionsIntoQueries(IndexQueue.java:118) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.IndexQueue.enqueue(IndexQueue.java:82) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.core.persistence.DbSession.commit(DbSession.java:62) [sonar-core-5.1.1.jar:na] 
at org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:370) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:356) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.IndexSynchronizer.synchronize(IndexSynchronizer.java:104) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.IndexSynchronizer.executeDeprecated(IndexSynchronizer.java:74) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.platform.ServerComponents$1.doPrivileged(ServerComponents.java:850) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:43) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.platform.ServerComponents.executeStartupTasks(ServerComponents.java:847) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:126) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:122) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.platform.Platform.doStart(Platform.java:81) [sonar-server-5.1.2-SNAPSHOT.jar:na] 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45] 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45] 
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45] 
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440) [jruby-complete-1.7.9.jar:na] 
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304) [jruby-complete-1.7.9.jar:na] 
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na] 
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na] 
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139) [jruby-complete-1.7.9.jar:na] 
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:221) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.RescueNode.interpret(RescueNode.java:116) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) [jruby-complete-1.7.9.jar:na] 
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na] 
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:336) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.BlockBody.call(BlockBody.java:73) [jruby-complete-1.7.9.jar:na] 
at org.jruby.runtime.Block.call(Block.java:101) [jruby-complete-1.7.9.jar:na] 
at org.jruby.RubyProc.call(RubyProc.java:290) [jruby-complete-1.7.9.jar:na] 
at org.jruby.RubyProc.call(RubyProc.java:228) [jruby-complete-1.7.9.jar:na] 
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:97) [jruby-complete-1.7.9.jar:na] 
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] 
Caused by: java.lang.IllegalArgumentException: Repository must be set 
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) ~[guava-10.0.1.jar:na] 
at org.sonar.api.rule.RuleKey.of(RuleKey.java:46) ~[sonar-plugin-api-5.1.1.jar:na] 
at org.sonar.core.qualityprofile.db.ActiveRuleDto.getKey(ActiveRuleDto.java:65) ~[sonar-core-5.1.1.jar:na] 
at org.sonar.server.qualityprofile.index.ActiveRuleNormalizer.normalize(ActiveRuleNormalizer.java:79) ~[sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.qualityprofile.index.ActiveRuleNormalizer.normalize(ActiveRuleNormalizer.java:45) ~[sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.action.InsertDto.doCall(InsertDto.java:47) ~[sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.action.IndexAction.call(IndexAction.java:61) ~[sonar-server-5.1.2-SNAPSHOT.jar:na] 
at org.sonar.server.search.action.IndexAction.call(IndexAction.java:28) ~[sonar-server-5.1.2-SNAPSHOT.jar:na] 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45] 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_45] 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_45] 
... 1 common frames omitted 
2015.06.12 11:34:38 ERROR web[o.s.s.ui.JRubyFacade] Fail to upgrade database 
Could not execute normalization for stack 
org.sonar.server.search.IndexQueue.processActionsIntoQueries(IndexQueue.java:137) 
org.sonar.server.search.IndexQueue.enqueue(IndexQueue.java:82) 
org.sonar.core.persistence.DbSession.commit(DbSession.java:62) 
org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:370) 
org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:356) 
org.sonar.server.search.IndexSynchronizer.synchronize(IndexSynchronizer.java:104) 
org.sonar.server.search.IndexSynchronizer.executeDeprecated(IndexSynchronizer.java:74) 
org.sonar.server.platform.ServerComponents$1.doPrivileged(ServerComponents.java:850) 
org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:43) 
org.sonar.server.platform.ServerComponents.executeStartupTasks(ServerComponents.java:847) 
org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:126) 
org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:122) 
org.sonar.server.platform.Platform.doStart(Platform.java:81) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
java.lang.reflect.Method.invoke(Method.java:497) 
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440) 
org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304) 
org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52) 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) 
org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) 
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
org.jruby.ast.BlockNode.interpret(BlockNode.java:71) 
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139) 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182) 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) 
org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) 
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
org.jruby.ast.BlockNode.interpret(BlockNode.java:71) 
org.jruby.ast.RescueNode.executeBody(RescueNode.java:221) 
org.jruby.ast.RescueNode.interpret(RescueNode.java:116) 
org.jruby.ast.BeginNode.interpret(BeginNode.java:83) 
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) 
org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) 
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) 
org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:336) 
org.jruby.runtime.BlockBody.call(BlockBody.java:73) 
org.jruby.runtime.Block.call(Block.java:101) 
org.jruby.RubyProc.call(RubyProc.java:290) 
org.jruby.RubyProc.call(RubyProc.java:228) 
org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:97) 
java.lang.Thread.run(Thread.java:745) 
+0

它只是你在日誌中有什麼?它看起來最後缺少一些信息。您還可以嘗試刪除/data/es文件夾,然後重新啓動SonarQube以查看這是否可重現。 –

+0

剛試過一個空的data/es目錄。什麼也沒有變。在我錯過的日誌末尾沒有任何東西。 – Dominique

+0

你的日誌有些奇怪。你可以恢復你的數據庫,在你的「conf/sonar.properties」文件中添加「sonar.log.level = DEBUG」,重新啓動遷移過程並複製粘貼http://pastebin.com上的完整日誌嗎? –

回答

1

正如在評論中討論的問題來自無效的XML規則(NULL庫在該表的規則一些XML規則)。刪除它們將修復錯誤。在此之前,請給我發送SELECT * FROM RULES WHERE plugin_name IS NULL的結果嗎?我會相應地創建一個JIRA票據。謝謝

+0

我猜你的假設是錯誤的。這個問題並不是來自於存在NULL插件名的規則,而是源於規則中沒有匹配active_rules或rules_profile的行。 SELECT * FROM RULES WHERE plugin_name IS NULL顯示空行。 – Dominique

+0

看起來像這裏被認爲是一個問題http://jira.sonarsource.com/browse/SONAR-5503?focusedCommentId=57485&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-57485 – Dominique