Trying to upgrade from 5.6.6 to 6.2. First upgraded to 5.6.7, this went well without any problems.
Later trying to upgrade to 6.2 facing this issue.
Both DB and application running in the same VM. Database connectivity is not a problem.
mysql> show variables like '%net_write_timeout%';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| net_write_timeout | 60000 |
+-------------------+-------+
How to rectify this problem?
2018.08.12 13:16:53 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2018.08.12 13:16:53 INFO web[][o.s.s.a.TomcatContexts] Webapp directory: /sonarapplication/sonarqube-6.2/web
2018.08.12 13:16:53 INFO web[][o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-135.249.45.51-8085"]
2018.08.12 13:16:53 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2018.08.12 13:16:54 INFO web[][o.e.plugins] [Ghaur] modules [], plugins [], sites []
2018.08.12 13:16:55 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.08.12 13:16:55 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.2 / 4a28f29f95254b58f3cf0a0871bc632e998403f5
2018.08.12 13:16:55 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:mysql://localhost:3306/sonarqube?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
2018.08.12 13:16:56 WARN web[][o.s.s.p.DatabaseServerCompatibility] Database must be upgraded. Please backup database and browse /setup
2018.08.12 13:16:56 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /sonarapplication/sonarqube-6.2
2018.08.12 13:16:56 INFO web[][o.s.s.p.w.RailsAppsDeployer] Deploying Ruby on Rails applications
2018.08.12 13:16:56 INFO web[][o.s.s.p.Platform] DB needs migration, entering safe mode
2018.08.12 13:16:56 INFO web[][jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on OpenJDK 64-Bit Server VM 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14 [linux-amd64]
2018.08.12 13:16:56 INFO web[][jruby.rack] using a shared (threadsafe!) runtime
2018.08.12 13:17:01 INFO web[][jruby.rack] keeping custom (config.logger) Rails logger instance
2018.08.12 13:18:24 INFO web[][o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [82,980] milliseconds.
2018.08.12 13:18:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@7cafe548 [pattern=org.sonar.api.web.ServletFilter$UrlPattern@7a9f10d1]
2018.08.12 13:18:24 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-135.249.45.51-8085"]
2018.08.12 13:18:24 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started
2018.08.12 13:18:24 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 8085
2018.08.12 13:26:05 INFO web[][o.s.s.p.d.m.PlatformDatabaseMigration] Starting DB Migration
2018.08.12 13:26:06 INFO web[][DbMigration] == CreatePermTemplatesCharacteristics: migrating =============================
2018.08.12 13:26:06 INFO web[][DbMigration] -- create_table("perm_tpl_characteristics", {})
2018.08.12 13:26:06 INFO web[][DbMigration] -> 0.0720s
2018.08.12 13:26:06 INFO web[][DbMigration] -> 0 rows
2018.08.12 13:26:06 INFO web[][DbMigration] -- index_exists?("perm_tpl_characteristics", ["template_id", "permission_key"], {:name=>"uniq_perm_tpl_charac"})
2018.08.12 13:26:06 INFO web[][DbMigration] -> 0.0080s
2018.08.12 13:26:06 INFO web[][DbMigration] -- add_index("perm_tpl_characteristics", ["template_id", "permission_key"], {:name=>"uniq_perm_tpl_charac", :unique=>true})
2018.08.12 13:26:06 INFO web[][DbMigration] -> 0.0660s
2018.08.12 13:26:06 INFO web[][DbMigration] -> 0 rows
2018.08.12 13:26:06 INFO web[][DbMigration] == CreatePermTemplatesCharacteristics: migrated (0.1470s) ====================
2018.08.12 13:26:06 INFO web[][DbMigration]
2018.08.12 13:26:06 INFO web[][DbMigration] == AddColumnsWithUuidsToResourceIndex: migrating =============================
2018.08.12 13:50:45 INFO web[][DbMigration] == AddColumnsWithUuidsToResourceIndex: migrated (1478.6660s) =================
2018.08.12 13:50:45 INFO web[][DbMigration]
2018.08.12 13:50:45 INFO web[][DbMigration] == PopulateUuidColumnsOfResourceIndex: migrating =============================
2018.08.12 13:55:56 INFO web[][o.s.d.v.MassUpdate] 207499 resource index entries processed (3458 items/sec)
2018.08.12 13:56:56 INFO web[][o.s.d.v.MassUpdate] 421749 resource index entries processed (3570 items/sec)
2018.08.12 13:57:56 INFO web[][o.s.d.v.MassUpdate] 632749 resource index entries processed (3516 items/sec)
2018.08.12 13:58:56 INFO web[][o.s.d.v.MassUpdate] 846749 resource index entries processed (3566 items/sec)
2018.08.12 13:59:56 INFO web[][o.s.d.v.MassUpdate] 1057749 resource index entries processed (3516 items/sec)
2018.08.12 14:00:56 INFO web[][o.s.d.v.MassUpdate] 1266249 resource index entries processed (3475 items/sec)
2018.08.12 14:01:56 INFO web[][o.s.d.v.MassUpdate] 1479249 resource index entries processed (3550 items/sec)
2018.08.12 14:02:56 INFO web[][o.s.d.v.MassUpdate] 1720499 resource index entries processed (4020 items/sec)
2018.08.12 14:03:56 INFO web[][o.s.d.v.MassUpdate] 1933499 resource index entries processed (3550 items/sec)
2018.08.12 14:04:56 INFO web[][o.s.d.v.MassUpdate] 2141499 resource index entries processed (3466 items/sec)
2018.08.12 14:05:56 INFO web[][o.s.d.v.MassUpdate] 2357999 resource index entries processed (3608 items/sec)
2018.08.12 14:06:56 INFO web[][o.s.d.v.MassUpdate] 2567249 resource index entries processed (3487 items/sec)
2018.08.12 14:07:56 INFO web[][o.s.d.v.MassUpdate] 2781249 resource index entries processed (3566 items/sec)
2018.08.12 14:08:56 INFO web[][o.s.d.v.MassUpdate] 2988499 resource index entries processed (3454 items/sec)
2018.08.12 14:09:56 INFO web[][o.s.d.v.MassUpdate] 3196749 resource index entries processed (3470 items/sec)
2018.08.12 14:10:56 INFO web[][o.s.d.v.MassUpdate] 3402999 resource index entries processed (3437 items/sec)
2018.08.12 14:11:56 INFO web[][o.s.d.v.MassUpdate] 3620749 resource index entries processed (3629 items/sec)
2018.08.12 14:12:56 INFO web[][o.s.d.v.MassUpdate] 3827499 resource index entries processed (3445 items/sec)
2018.08.12 14:13:56 INFO web[][o.s.d.v.MassUpdate] 4035999 resource index entries processed (3475 items/sec)
2018.08.12 14:14:56 INFO web[][o.s.d.v.MassUpdate] 4245999 resource index entries processed (3500 items/sec)
2018.08.12 14:15:56 INFO web[][o.s.d.v.MassUpdate] 4454999 resource index entries processed (3483 items/sec)
2018.08.12 14:16:56 INFO web[][o.s.d.v.MassUpdate] 4661999 resource index entries processed (3450 items/sec)
2018.08.12 14:17:56 INFO web[][o.s.d.v.MassUpdate] 4874749 resource index entries processed (3545 items/sec)
2018.08.12 14:18:56 INFO web[][o.s.d.v.MassUpdate] 5082999 resource index entries processed (3470 items/sec)
2018.08.12 14:19:56 INFO web[][o.s.d.v.MassUpdate] 5293749 resource index entries processed (3512 items/sec)
2018.08.12 14:20:56 INFO web[][o.s.d.v.MassUpdate] 5499249 resource index entries processed (3425 items/sec)
2018.08.12 14:21:56 INFO web[][o.s.d.v.MassUpdate] 5707999 resource index entries processed (3479 items/sec)
2018.08.12 14:22:56 INFO web[][o.s.d.v.MassUpdate] 5915249 resource index entries processed (3454 items/sec)
2018.08.12 14:23:56 INFO web[][o.s.d.v.MassUpdate] 6115249 resource index entries processed (3333 items/sec)
2018.08.12 14:24:56 INFO web[][o.s.d.v.MassUpdate] 6323499 resource index entries processed (3470 items/sec)
2018.08.12 14:25:56 INFO web[][o.s.d.v.MassUpdate] 6521749 resource index entries processed (3304 items/sec)
2018.08.12 14:26:56 INFO web[][o.s.d.v.MassUpdate] 6727249 resource index entries processed (3425 items/sec)
2018.08.12 14:27:56 INFO web[][o.s.d.v.MassUpdate] 6929499 resource index entries processed (3370 items/sec)
2018.08.12 14:28:56 INFO web[][o.s.d.v.MassUpdate] 7130999 resource index entries processed (3358 items/sec)
2018.08.12 14:29:56 INFO web[][o.s.d.v.MassUpdate] 7331749 resource index entries processed (3345 items/sec)
2018.08.12 14:30:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (312 items/sec)
2018.08.12 14:31:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:32:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:33:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:34:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:35:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:36:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:37:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:38:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:39:56 INFO web[][o.s.d.v.MassUpdate] 7350499 resource index entries processed (0 items/sec)
2018.08.12 14:40:56 INFO web[][o.s.d.v.MassUpdate] 7627999 resource index entries processed (4625 items/sec)
2018.08.12 14:41:06 ERROR web[][o.s.s.p.d.m.DatabaseMigrator] Fail to execute database migration: org.sonar.db.version.v60.PopulateUuidColumnsOfResourceIndex
java.lang.IllegalStateException: Error during processing of row: [id=372524828,resource_id=958516,root_project_id=237388]
at org.sonar.db.version.SelectImpl.newExceptionWithRowDetails(SelectImpl.java:89)
at org.sonar.db.version.SelectImpl.scroll(SelectImpl.java:81)
at org.sonar.db.version.MassUpdate.execute(MassUpdate.java:91)
at org.sonar.db.version.v60.PopulateUuidColumnsOfResourceIndex.populateUuidColumns(PopulateUuidColumnsOfResourceIndex.java:63)
at org.sonar.db.version.v60.PopulateUuidColumnsOfResourceIndex.execute(PopulateUuidColumnsOfResourceIndex.java:44)
at org.sonar.db.version.BaseDataChange.execute(BaseDataChange.java:45)
at org.sonar.server.platform.db.migrations.DatabaseMigrator.executeMigration(DatabaseMigrator.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:455)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:61)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)
at org.jruby.RubyClass.finvoke(RubyClass.java:527)
at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2590)
at org.jruby.RubyKernel.send(RubyKernel.java:2223)
at org.jruby.RubyKernel$INVOKER$s$send.call(RubyKernel$INVOKER$s$send.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:303)
at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
at org.jruby.runtime.Block.yieldSpecific(Block.java:111)
at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190)
at org.jruby.internal.runtime.methods.WrapperMethod.call(WrapperMethod.java:74)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:206)
at org.jruby.RubyClass.finvoke(RubyClass.java:567)
at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2595)
at org.jruby.RubyKernel.send(RubyKernel.java:2227)
at org.jruby.RubyKernel$INVOKER$s$send.call(RubyKernel$INVOKER$s$send.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:356)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:213)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:217)
at org.jruby.ast.CallSpecialArgBlockPassNode.interpret(CallSpecialArgBlockPassNode.java:66)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:221)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:116)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:336)
at org.jruby.runtime.BlockBody.call(BlockBody.java:73)
at org.jruby.runtime.Block.call(Block.java:101)
at org.jruby.RubyProc.call(RubyProc.java:290)
at org.jruby.RubyProc.call(RubyProc.java:224)
at org.jruby.RubyProc$INVOKER$i$0$0$call.call(RubyProc$INVOKER$i$0$0$call.gen)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:202)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:198)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.IfNode.interpret(IfNode.java:118)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:221)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:116)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:357)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:312)
at org.jruby.runtime.Block.yield(Block.java:142)
at org.jruby.RubyArray.eachCommon(RubyArray.java:1606)
at org.jruby.RubyArray.each(RubyArray.java:1613)
at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:316)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:145)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.WhenOneArgNode.whenNoTest(WhenOneArgNode.java:27)
at org.jruby.ast.WhenOneArgNode.when(WhenOneArgNode.java:45)
at org.jruby.ast.CaseNode.interpret(CaseNode.java:132)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:164)
at RbCallUpgrade_369004465.callUpgrade(RbCallUpgrade_369004465.gen:13)
at org.sonar.server.platform.db.migrations.PlatformDatabaseMigration.doUpgradeDb(PlatformDatabaseMigration.java:126)
at org.sonar.server.platform.db.migrations.PlatformDatabaseMigration.doDatabaseMigration(PlatformDatabaseMigration.java:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Application was streaming results when the connection failed. Consider raising value of 'net_write_timeout' on the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:988)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3552)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3452)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3893)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:875)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1991)
at com.mysql.jdbc.RowDataDynamic.nextRecord(RowDataDynamic.java:374)
at com.mysql.jdbc.RowDataDynamic.next(RowDataDynamic.java:354)
at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:6337)
at org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java:207)
at org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java:207)
at org.sonar.db.version.SelectImpl.scroll(SelectImpl.java:77)
... 157 common frames omitted
Caused by: java.io.EOFException: Can not read response from server. Expected to read 24 bytes, read 22 bytes before connection was unexpectedly lost.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3004)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3512)
... 167 common frames omitted
2018.08.12 14:41:06 INFO web[][o.s.s.p.d.m.PlatformDatabaseMigration] DB migration failed | time=4501110ms
2018.08.12 14:41:06 ERROR web[][o.s.s.p.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, all later migrations canceled: