Unable to upgrade regarding CONTENTLOCK table

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms


The following appears in the atlassian-confluence.log:

ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.DropContentLockTableUpgradeTask@5aaa5f failed during the SCHEMA_UPGRADE phase due to: StatementCallback; bad SQL grammar [drop table CONTENTLOCK]; nested exception is java.sql.SQLException: Cannot drop the table 'CONTENTLOCK', because it does not exist or you do not have permission.
com.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.DropContentLockTableUpgradeTask@5aaa5f failed during the SCHEMA_UPGRADE phase due to: StatementCallback; bad SQL grammar [drop table CONTENTLOCK]; nested exception is java.sql.SQLException: Cannot drop the table 'CONTENTLOCK', because it does not exist or you do not have permission.

Diagnosis

When trying to use the installer, this error message can also appear on the UI.

Failing when upgrading JVM Path


Cause

Confluence tries to drop a table that does not exist. So the upgrade fails.


Workaround

You can create the table CONTENTLOCK manually so the upgrade will continue.


Last modified on Jan 24, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.