Import failed. Check your server logs for more information. java.lang.RuntimeException: Could not re
Asked by Flatirons Project:

Trying to migrate from Confluence 5.10.9 with the embedded database to a Confluence 5.10.9 with a mysql 5.6 database. At 90% I get the following error during a restore:

Import failed. Check your server logs for more information. java.lang.RuntimeException: Could not read fields for table AO_187CCC_SIDEBAR_LINK

searching the atlassian-confluence.log I found

com.atlassian.confluence.importexport.ImportExportException: java.lang.RuntimeException: Could not read fields for table AO_187CCC_SIDEBAR_LINK

Other things to note, the confluence that I am restoring to is in a separate install and home directory and is a clean install. This is happening during the restore during the setup wizard.


Answers:
author: R. Fuerst
body: Hi there,

I've seen this issue occur when using an unsupported database or a database that isn't configured according to the guidelines. I suggest confirming the following:

1. Are you running MariaDB? I've seen this issue occur when users try to restore a backup to an install pointed to MariaDB. According to the [Supported Platforms](https://confluence.atlassian.com/conf510/supported-platforms-829078376.html), MariaDB is not supported, though MySQL 5.5 and 5.6 are. It sounds like you're using a supported version, but wanted to put this here as a potential cause in case you are using MariaDB.
2. If you're not running MariaDB, I'd suggest looking at the [Database Setup for MySQL](https://confluence.atlassian.com/conf510/database-setup-for-mysql-829078069.html) documentation to be sure you configured the database exactly as described. If you find that it was not configured properly, you'll want to drop the database and reconfigure it. Then you can try importing your XML file again.

I hope that information helps!

comments: author: Flatirons Project
body: Rachel,

Thanks for the response. I am using MySQL 5.6 and was using the latest connector/j which I think is 8.0. I rolled back to an older version (5 something) and it worked fine.


author: brbojorque
body: [@R. Fuerst](/t5/user/viewprofilepage/user-id/524126), can you confirm if MySQL 5.7 is supported for confluence/jira/crowd?

We need to resolve this badly.


author: Flatirons Project
body: [@brbojorque](/t5/user/viewprofilepage/user-id/1221722)I know MySql 5.7 works for newer versions of Confluence/Jira as our corporate Jira/Confluence is running on MySQL 5.7 but they are up to date with the latest versions. The customer I am supporting is on 5.10.9 and we are trying to do an upgrade to the latest.


author: R. Fuerst
body: [@brbojorque](/t5/user/viewprofilepage/user-id/1221722) - MySQL 5.7 is not supported for Confluence 5.10.x and is not supported until Confluence 6.3.x.

I'm not sure which versions of Crowd or Jira you are running, but it looks like MySQL 5.7 is supported for Crowd as far back as Crowd 2.12. For Jira, MySQL 5.7 is supported after Jira 7.3.

If you're trying to import the backup into an instance running MySQL 5.7 and encountering these errors, I suggest setting up an instance that uses a supported database (MySQL 5.5 and 5.6). The errors you've shared indicate something is misconfigured with the database.

comments: author: brbojorque
body: That's true but I guess using the latest driver of MySQL is the culprit why the import is not working. I downgraded the mysql driver from 8.x.x to 5.x.x and it is successful. My current instance is 5.8.x just like [@Flatirons Project](/t5/user/viewprofilepage/user-id/1560389) did.

As long as it is completed the import I can safely upgrade the confluence to the latest version.

About the database error, its true again. I failed to follow the my.cnf in the MySQL server.

<https://confluence.atlassian.com/conf64/database-setup-for-mysql-936511512.html>

Thanks guys. Cheers