Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Update from Confluence Server 7.10.2 to 7.11 Fails

From, using the Confluence-Server:latest pull.

An upgrade from 7.10.2 to 7.11 fails: The front end reports:

Pre-upgrade validation failed. Check the Confluence application logs for more details. You'll need to fix these problems and restart Confluence before you can upgrade. Upgrade error message: Cannot update schema

The atlassian-confluence.log reports:

Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'this_.external_id' in 'field list'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(
2021-02-06 10:44:31,827 ERROR [perm-delta-cache-receiver] [engine.jdbc.spi.SqlExceptionHelper] logExceptions Unknown column 'this_.external_id' in 'field list'
2021-02-06 10:44:31,828 WARN [perm-delta-cache-receiver] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #633154150)
2021-02-06 10:44:31,829 ERROR [perm-delta-cache-receiver] [gatekeeper.evaluator.cache.CacheUpdateReceiver] error Failed to initialize evaluator cache
org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Unable to upgrade as a result.


1 answer

0 votes
Alexis Robert Community Leader Feb 06, 2021

Hi @europoint , 


there is an old KB on Atlassian documentation that references this error :


Are you using a MySQL database by any chance ? If yes I'd try the recommended fix from Atlassian.


Let me know if this helps, 



@Alexis RobertThank you for finding that KB!

Unfortunately, it hasn't resolved the issue. The schema, table and columns are all configured for UTF8 for my Confluence database

I retried it by taking a backup of the database and converting it to utf8mb4 character set and collation, then starting up 7.11 and got the same issue.

I also explicitly stated the character set and collation in the JDBC connection, whether using utf8 or utf8mb4, but the error is the same.

->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1270354319)
2021-02-13 14:54:14,760 ERROR [perm-delta-cache-receiver] [gatekeeper.evaluator.cache.CacheUpdateReceiver] error Failed to initialize evaluator cache
org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

It seems I am stuck at 7.10.2 unless anyone is able to identify the resolution?

Alexis Robert Community Leader Feb 13, 2021

Hi @europoint , 


from another thread with MS SQL Server, looks like it could be because of permissions from the database user.

Can you try checking the permissions, and if that fails create a new user with full privileges on Confluence tables ?

Like europoint likes this

Thanks @Alexis Robert for digging around for me again.


The user had full rights to all my Atlassian DBs. I dropped grants for everything except my Confluence DB, and also gave the user Global privileges, but the same error occurs. I had read something about it potentially being a conflict between access to more than one schema, but evidently that also wasn't the problem.

Alexis Robert Community Leader Feb 14, 2021

It might just be an issue with the latest Docker image then, you should maybe wait for the next version then. 

Like europoint likes this

No answer, but I believe I have found the root cause:

Confluence 7.11 attempts to upgrade the schema for the Confluence database. I am currently using MySQL and have Bitbucket, Jira, Confluence and Crowd all on the same database server and the same user to connect to all of these db instances.

The error in question is below:

2021-02-18 08:12:17,362 ERROR [Catalina-utility-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] launchUpgrades Upgrade failed, application will not start: com.atlassian.config.ConfigurationException: Cannot update schema
com.atlassian.confluence.upgrade.UpgradeException: com.atlassian.config.ConfigurationException: Cannot update schema
at com.atlassian.confluence.upgrade.AbstractUpgradeManager.upgrade(
at com.atlassian.confluence.plugin.PluginFrameworkContextListener.launchUpgrades(
at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.base/
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$
at java.base/
Caused by: com.atlassian.config.ConfigurationException: Cannot update schema
at com.atlassian.confluence.impl.core.persistence.hibernate.schema.ConfluenceSchemaHelper.validateSchemaUpdateIfNeeded(
at com.atlassian.confluence.upgrade.impl.DefaultUpgradeManager.validateSchemaUpdateIfNeeded(
at com.atlassian.confluence.upgrade.AbstractUpgradeManager.upgrade(
... 13 more
Caused by: org.hibernate.tool.schema.extract.spi.SchemaExtractionException: More than one table found in namespace (, ) : cwd_synchronisation_status
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.processTableResults(
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.getTable(
at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.getTableInformation(
at org.hibernate.tool.schema.internal.IndividuallySchemaMigratorImpl.performTablesMigration(
at com.atlassian.confluence.impl.hibernate.ConfluenceHibernateSchemaManagementTool$3.performTablesMigration(
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(
at com.atlassian.confluence.impl.core.persistence.hibernate.schema.ConfluenceSchemaHelper.validateSchemaUpdateIfNeeded(
... 15 more
2021-02-18 08:12:17,364 ERROR [Catalina-utility-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] launchUpgrades 1 errors were encountered during upgrade:
2021-02-18 08:12:17,364 ERROR [Catalina-utility-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] launchUpgrades 1: Cannot update schema

 Looking at the various databases, both Crowd and Jira have a cwd_synchronisation_status table.

I removed the grants from both Jira and Crowd for the user, and retried, but then got an error stating that the user was denied access to the table.

I then reinstated the grants just for the Crowd database, and got the same error as displayed in the code above.

I also tested by creating a completely new user for the Confluence db instance, and still received the same error.

There appears to be an issue in the schema upgrade for Confluence which does not limit itself to the Confluence db instance. I'm not sure if this is a specific issue with MySQL or with the schema upgrade itself.

Alexis Robert Community Leader Feb 18, 2021

Hi @europoint , 


looking at the latest error message you provided, I think this KB could apply :


It has the same error message as you have, so you could use the workaround provided.

Otherwise, I would advise getting in touch with atlassian support :

@Alexis RobertI would like to thank you for your perseverence in trying to resolve my issue: it's very much appreciated.

In the end I resorted to drastic measures:

  1. Take a backup of the Confluence database.
  2. Deploy a Docker container for MySQL.
  3. Restore the Confluence database backup to the new MySQL server.
  4. Deploy a Docker container of the latest version of Confluence against the new MySQL server.

This then carried out the upgrade without issue. The next steps were:

  1. Take a backup of the new Confluence instance.
  2. Restore the new backup to the original MySQL server.
  3. Delete the Docker containers for MySQL and the latest version of Confluence.
  4. Redeploy my Atlassian Docker stack with the latest version of Confluence against the original MySQL server.

I suspect the issue is down to the upgrade script assuming that the Confluence database is the only database on the server, and searching across the entire db namespace. It failed because it identified a table in my Bitbucket database. By doing an upgrade on the Confluence database in an isolated MySQL server instance, it therefore had no other databases it could look at.

I believe this is a defect in the upgrade process: It's entirely valid to have multiple Atlassian products using the same MySQL server instance, and using the same database user to access them.

Alexis Robert Community Leader Feb 21, 2021

Good to know that you managed to carry out your upgrade ! 

If this is an issue with the Docker images, maybe @Dave Chevell  can help.

Hello @Alexis Robert I get the same issue.

I was runing confluene datacenter 7.10 on SQL server without any issue.
Then I download confluence 7.12.0 package and update necessary config file then start the instance.

I get the same sql error what was initially reported by @europoint 

Any idea ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,739 views 8 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you