迁移Sonarqube-数据库升级错误

时间:2019-01-08 12:24:59

标签: sonarqube

我们正在尝试将Sonarqube 6.5从EC2迁移到Kubernetes,并且我们的数据库位于AWS RDS中。

我遵循的步骤: 1)使用空数据库(例如sonark8s)发射了sonarqube pod 6.7。

2)备份现有的Prod数据库并将其还原到新的数据库(sonark8s)。

3)重新启动pod,然后执行然后升级。

但是,出现错误“升级失败:无法建立数据库连接。请检查数据库状态和JDBC设置。'

web.log错误:

2019.01.08 12:20:42错误web [] [DbMigrations]#1801'创建表CE任务特征':失败|错误时间= 18ms 2019.01.08 12:20:42错误web [] [DbMigrations]执行的数据库迁移:失败|时间= 20ms 2019.01.08 12:20:42错误web [] [o.s.s.p.d.m.DatabaseMigrationImpl]数据库迁移失败|时间= 64ms 2019.01.08 12:20:42错误web [] [o.s.s.p.d.m.DatabaseMigrationImpl]数据库迁移以异常结束 org.sonar.server.platform.db.migration.step.MigrationStepExecutionException:执行迁移步骤#1801'创建表CE任务特征'失败     在org.sonar.server.platform.db.migration.step.MigrationStepsExecutorImpl.execute(MigrationStepsExecutorImpl.java:79)     在org.sonar.server.platform.db.migration.step.MigrationStepsExecutorImpl.execute(MigrationStepsExecutorImpl.java:67)     在java.util.Iterator.forEachRemaining(Iterator.java:116)     在java.util.Spliterators $ IteratorSpliterator.forEachRemaining(Spliterators.java:1801)     在java.util.stream.ReferencePipeline $ Head.forEachOrdered(ReferencePipeline.java:590)     在org.sonar.server.platform.db.migration.step.MigrationStepsExecutorImpl.execute(MigrationStepsExecutorImpl.java:52)     在org.sonar.server.platform.db.migration.engine.MigrationEngineImpl.execute(MigrationEngineImpl.java:50)     在org.sonar.server.platform.db.migration.DatabaseMigrationImpl.doUpgradeDb(DatabaseMigrationImpl.java:105)     在org.sonar.server.platform.db.migration.DatabaseMigrationImpl.doDatabaseMigration(DatabaseMigrationImpl.java:80)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)     在java.lang.Thread.run(Thread.java:748) 引起原因:java.lang.IllegalStateException:无法执行CREATE TABLE ce_task_characteristics(uuid VARCHAR(40)NOT NULL,task_uuid VARCHAR(40)NOT NULL,kee VARCHAR(512)NOT NULL,text_value VARCHAR(512)NULL,CONSTRAINT pk_ce_task_RIMer KEY(UUID))ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_bin     在org.sonar.server.platform.db.migration.step.DdlChange $ Context.execute(DdlChange.java:97)     在org.sonar.server.platform.db.migration.step.DdlChange $ Context.execute(DdlChange.java:77)     在org.sonar.server.platform.db.migration.step.DdlChange $ Context.execute(DdlChange.java:117)     在org.sonar.server.platform.db.migration.version.v66.CreateTableCeTaskCharacteristics.execute(CreateTableCeTaskCharacteristics.java:67)     在org.sonar.server.platform.db.migration.step.DdlChange.execute(DdlChange.java:45)     在org.sonar.server.platform.db.migration.step.MigrationStepsExecutorImpl.execute(MigrationStepsExecutorImpl.java:75)     ...省略了11个通用框架 引起原因:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:表'ce_task_characteristics'已经存在

0 个答案:

没有答案