Resolution 1 fails

This question is in reference to Atlassian Documentation: Upgrade to 5.7.x fails due to IMAGEDETAILS constraint FKA768048734A4917E

Resolution 1 fails with the following message:

ERROR 1005 (HY000): Can't create table 'confluence.#sql-86c_5b' (errno: 150)

 

1 answer

0 vote

That error implies the foreign keys it's trying to use are also wrong or missing.  Does your user have full access to the database?  And are the other tables there ok, with the foreign keys?

 

I'm upgrading from Confluence 2.8, moved in on a completely fresh and updated Debian Jessie..

mysql>

SET FOREIGN_KEY_CHECKS = 0;

ALTER TABLE IMAGEDETAILS ADD CONSTRAINT FKA768048734A4917E FOREIGN KEY (ATTACHMENTID) REFERENCES ATTACHMENTS(ATTACHMENTID);

SET FOREIGN_KEY_CHECKS = 1;

 

helped me beyond it, but I had to repeat it for also:

 

ALTER TABLE SPACEGROUPPERMISSIONS ADD CONSTRAINT FK487D958B16994414 FOREIGN KEY (SPACEGROUPID) references SPACEGROUPS (SPACEGROUPID)

 

 

So you had no problems with the upgrade to 3?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

830 views 23 12
Join discussion

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