Atlassian Cloud Migration Assistance is giving error while migrating
Asked by amitabh.jain:

Hi

I am not able to run ACMA ,following error page isdisplayed.

A system error has occurred --- our apologies!

For immediate troubleshooting, consult our knowledge base for a solution.

If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:

a description of your problem and what you were doing at the time it occurred  
a copy of the error and system information found below  
a copy of the application logs (if possible).  
Your Confluence administrator can use the support request form to create a support ticket which will include this information.

We will respond as promptly as possible.  
Thank you!

Return to site homepage...

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:223)

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.LockException: Could not acquire change log lock. Currently locked by f1ab74d41290 (172.17.0.2) since 8/12/19 7:06 PM  
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:230


Answers:
author: Bas Huizinga
body: hi,

We have the same problem, running on an H2 database (not able to run queries)

We like to move to the cloud version.

Confluence version 7.4.6  
Versienummer 8402

Database naam H2  
Database versie 1.4.196 (2017-06-10)  
Database-dialect org.hibernate.dialect.H2Dialect  
Naam Database Driver org.h2.Driver  
Database Driver Versie1.4.196 (2017-06-10)

Could you please help me?

comments: author: Shannon S
body: Hi Bas,

H2 databases are for evaluation only. You need to migrate your database onto an external database before migrating to Cloud. You can find a list of supported databases from our page on [Supported Platforms on Confluence](https://confluence.atlassian.com/doc/supported-platforms-207488198.html#SupportedPlatforms-Databases).

For information on connecting to the H2 database and performing the migration, look at [Embedded H2 database information](https://confluence.atlassian.com/doc/embedded-h2-database-145098285.html). You can find the migration steps at the bottom of this page.

If you have any trouble, please raise a support ticket with our [Migration support team](https://support.atlassian.com/contact)!

Thank you,

Shannon


author: Shannon S
body: Hello [@amitabh.jain](/t5/user/viewprofilepage/user-id/3579813),

Thank you for contacting us about this. It appears the issue is caused by this line:

```
caused by: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by f1ab74d41290 (172.17.0.2) since 8/12/19 7:06 PM
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:230
```

You can release the lock manually by executing the SQL query below on the Confluence database.

* [Query for PostgreSQL](https://confluence.atlassian.com/confkb/confluence-upgrade-failed-with-liquibase-exception-lockexception-could-not-acquire-change-log-lock-error-969527207.html?_ga=2.20616767.687752589.1564394339-1999825829.1533742022)
* [Query for MySQL, SQL Server and Oracle](https://confluence.atlassian.com/confkb/confluence-upgrade-failed-with-liquibase-exception-lockexception-could-not-acquire-change-log-lock-error-969527207.html?_ga=2.20616767.687752589.1564394339-1999825829.1533742022)

If that doesn't work, please [Raise a Support Ticket with our Migration Team](http://support.atlassian.com/contact) and include a copy of your Support Zip, and we'll be able to help you out.

Best regards,

Shannon


Tags: confluence-server

server