Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Upgrade error message

 Upgrade failed. Please consult the system logs for details. You will need to fix these problems, restore your database and confluence home directory to the pre upgrade state. Then retry the upgrade. Upgrade error message: Upgrade task com.atlassian.confluence.upgrade.upgradetask.PopulateLowerFieldsUpgradeTask@3dd836e2 failed during the SCHEMA_UPGRADE phase due to: StatementCallback; bad SQL grammar [drop index s_lspacekey_idx on SPACES]; nested exception is java.sql.SQLException: Cannot drop the index 'SPACES.s_lspacekey_idx', because it does not exist or you do not have permission.

Your server id is: B0B7-71VE-QNWZ-PLH0

I'm testing upgrading v5.9.14 to v6.4.1 to no avail. Any hints why the SQL error is triggered?

1 answer

1 accepted

2 votes
Answer accepted
Damien Tan Atlassian Team Oct 06, 2017

Hey Thomas,


The index s_lspacekey_idx is being introduced from Confluence 5.10 onwards so when the Confluence 6.4 upgrade trying to drop it, it will fail (as the index does not exist).

try this upgrade path: 5.9.14 > 5.10.8 > 6.4.1
this should be alright.

Note: You'll need to rollback to the working 5.9.14 first before upgrading again.

Shouldn't this be mentioned and highlighted in the Upgrade notes? The fact that the upgrade path from 5.x to 6.x is not direct, is not mentioned anywhere in the documentation, as far as I looked.

The documentation is still incorrect. Please change the Upgrade Path section of the latest documentation.  It currently says If your version is 5.0 to 6.x, "upgrade directly to the latest version".  We tried that last week and and it failed because of this issue.

Like Jay Cardona likes this

Three years later, it looks like there is no intention to update this.

Like Jay Cardona likes this

I am getting similar errors on upgrade - is this the same problem?  Do I need to go to 5.10.8 first?

Upgrade error message: Upgrade task com.atlassian.confluence.upgrade.upgradetask.MsSqlServerAoUpgradeTask@22fa027f failed during the SCHEMA_UPGRADE phase due to: StatementCallback;uncategorized SQLException for SQL [DROP INDEX "AO_6384AB_FEATURE_METADATA_AO"."index_ao_6384ab_fea1458039816";];SQL state [S0007]; error code [3701]; Cannot drop the index 'AO_6384AB_FEATURE_METADATA_AO.index_ao_6384ab_fea1458039816', because it does not exist or you do not have permission.;nested exception is Cannot drop the index 'AO_6384AB_FEATURE_METADATA_AO.index_ao_6384ab_fea1458039816', because it does not exist or you do not have permission.

Also, is the need to go to 5.10 documented anywhere?

I am having issue upgrading from 5.8.3 to 7.4.7, do I need to upgrade to 5.10 first?

Yes, update to 5.10.x first



Like Meetu likes this

OK but why is it necessary to go to 5.10 first if its not documented?  If it is necessary why isnt it documented?

Basically, why has the documentation failed?

Like Meetu likes this

Suggest an answer

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

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

606 views 4 26
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