Hi!
I've an Confluence Server 7.3.3 installed with MySQL 5.6 Database. Now I have exported an xml file which have a size of 25MB.
I want to import these file on my new Server with also Confluence Server 7.3.3 and MySQL 8. After this step I want to do an upgrade on the newest Confluence Version. But at the import step I get this failure and I didn't find any help for them:
Fehler beim Import. Weitere Informationen finden Sie in Ihren Serverprotokollen. com.atlassian.activeobjects.spi.ActiveObjectsImportExportException: There was an error during import/export with :Error executing update for SQL statement 'ALTER TABLE AO_54C900_C_TEMPLATE_REF ADD CONSTRAINT fk_ao_54c900_c_template_ref_cb_index_parentid FOREIGN KEY (CB_INDEX_PARENTID) REFERENCES AO_54C900_CONTENT_BLUEPRINT_AO(ID)'
Can you help me?
@Markus does the DB account that you are using have the proper permissions to perform an alter table command?
I've used this command, I think this should be okay...
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Markus did your grant all command complete for the user? If it did are you able to login as that user and then run an alter table command?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I test this easily?
This was my full command for the user to grant the privileges on the DB:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON Confluence.* TO 'confluencedb'@'localhost';
This command was in the attlassian knowledge base.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the DB you run the following select statements to see what permissions have been provided to your user:
SELECT * FROM mysql.user WHERE user = 'confluencedb'@'localhost'
SELECT * FROM mysql.db WHERE user = 'confluencedb'@'localhost'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This everything is working. Now I've found out that the problem could be in the old exportet DB. There a failures when I open some site in the old wiki:
And the newest failure when I try to import on new wiki site is these:
Fehler beim Import. Weitere Informationen finden Sie in Ihren Serverprotokollen. com.atlassian.activeobjects.spi.ActiveObjectsImportExportException: There was an error during import/export with :Error executing update for SQL statement 'ALTER TABLE AO_5FB9D7_AOHIP_CHAT_USER ADD CONSTRAINT fk_ao_5fb9d7_aohip_chat_user_hip_chat_link_id FOREIGN KEY (HIP_CHAT_LINK_ID) REFERENCES AO_5FB9D7_AOHIP_CHAT_LINK(ID)'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you explain the steps you are taking to restore your instance?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I use the backup & restore feature in Confluence! I do a backup here (sorry, it's german, but I think you know the section for that):
The I get the xmlfile by SSH from the "old" confluence server and tranfer them to the new confluence server. After that I try an import on the new confluence system
Thats all...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Markus Sorry to be MIA I was out for a while. I am out of ideas as to why the import would not work. Have you tried just backing up the DB and moving it that way? Then migrating the home directory and then updating the connection string to see if that works?
https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.