Migration

Troyan April 22, 2021

I try to Migrate my confluence server to cloud. In process of migration i must to update Confluence Cloud Migration Assistant. After update migration faild with error :

Cause

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInitialState' in class com.atlassian.migration.agent.web.AppAction threw exception com.atlassian.util.concurrent.LazyReference$InitializationException: javax.persistence.PersistenceException: Failed to update database schema at /templates/app.vm[line 21, column 44]
    at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:228)

caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: javax.persistence.PersistenceException: Failed to update database schema
    at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: javax.persistence.PersistenceException: Failed to update database schema
    at com.atlassian.migration.agent.store.jpa.impl.LiquibaseSchemaUpgrader.upgrade(LiquibaseSchemaUpgrader.java:35)

caused by: liquibase.exception.MigrationFailedException: Migration failed for change set META-INF/db-changelog/17-check-override-table.xml::17-check-override::MPT: Reason: liquibase.exception.DatabaseException: ERROR: relation "mig_check_override" already exists [Failed SQL: CREATE TABLE public.MIG_CHECK_OVERRIDE (id VARCHAR(255) NOT NULL, executionId VARCHAR(255) NOT NULL, checkType VARCHAR(255) NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, CONSTRAINT MIG_CHECK_OVERRIDE_PKEY PRIMARY KEY (id))]
    at liquibase.changelog.ChangeSet.execute(ChangeSet.java:637)

caused by: liquibase.exception.DatabaseException: ERROR: relation "mig_check_override" already exists [Failed SQL: CREATE TABLE public.MIG_CHECK_OVERRIDE (id VARCHAR(255) NOT NULL, executionId VARCHAR(255) NOT NULL, checkType VARCHAR(255) NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, CONSTRAINT MIG_CHECK_OVERRIDE_PKEY PRIMARY KEY (id))]
    at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:356)

caused by: org.postgresql.util.PSQLException: ERROR: relation "mig_check_override" already exists
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553)

1 answer

1 accepted

1 vote
Answer accepted
Troyan April 22, 2021

DROP TABLE public.mig_check_override;  resolve my problem

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.4.6
TAGS
AUG Leaders

Atlassian Community Events