• Community
  • Questions
  • Confluence Upgrade to 4.3 fails with Duplicate key name 'like_cid_idx' error.

Confluence Upgrade to 4.3 fails with Duplicate key name 'like_cid_idx' error.

I'm upgrading our test environment from 3.5.13 to 4.3 and it fails on the following error.

ERROR main atlassian.confluence.upgrade.UpgradeLauncherServletContextListener contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LikesSqlConstraintsUpgradeTask@1e8c998 failed during the UPGRADE phase due to: StatementCallback; bad SQL grammar create index like_cid_idx on LIKES (CONTENTID) ; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate key name 'like_cid_idx'

1 answer

1 accepted

Hello Patches,

It looks like your question was asked and asnwered a few days later on the thread below.

https://answers.atlassian.com/questions/87777/problems-upgrading-from-confluence-3-5-to-4-3-standalone-mysql-5-1-61-database

The resolution there was to ensure that your database had been restored to your pre upgrade attempt state. After that, attempting the upgrade again seemed to resolve the issue.

Please let us know if this does not resolve your issue.

is there anyway to fix it without restore DB to the pre update state? I mean we can do something in mysql to fix it?

You would have to have taken a dump of the database before you performed the upgrade. You would drop and recreate the database in question. To restore your data you would execute you dump on the recreated database. There is nothing inside the database server that provides automatic rollbock points

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

80 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you