While exporting a space and importing it into another instance, it is reporting an error that points to the duplicate entry for user name error as described in (https://confluence.atlassian.com/confkb/confluence-site-xml-import-fails-with-duplicate-key-error-438993638.html).
The above KB says to delete the entry with a NULL lower_username entry. However, when I try to do that, it fails because of a foreign key constraint:
mysql> delete from user_mapping where user_key='0c9f4cdb7f34bb56017f5329e889013b';
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`confluence`.`CONTENT`, CONSTRAINT `FK_CONTENT_CREATOR` FOREIGN KEY (`CREATOR`) REFERENCES `user_mapping` (`user_key`))
How do I fix this? I looked at the CREATOR column of the CONTENT table, but values are all NULL.
I think the source of the problem is that we are migrating Spaces from a defunct source environment and those migrations have users in the Spaces that don't have accounts in our destination environment. I suspect that those users are 'created' with the NULL lower_username. Then when we create the actual user accounts, they have the same username, but because the accounts are created 'normally' they have the correct lower_username, hence the duplication?
Now that those Spaces are in our environment, our exports of them fail to import elsewhere (e.g., a test instance). Note that we do not want to export/import the entire Confluence, just specific spaces.
Any suggestions appreciated.
@Maria Murphy I would suggest submitting a support issue to Atlassian https://support.atlassian.com/contact/
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.