Migration to External Database Fails
Hello there!
We're trying to migrate from internal HSQLDB to external PostgreSQL installation, but maintaindb tool crashes with the following error:
Error while performing backup: jetbrains.buildServer.serverSide.db.UnexpectedDBException: Unexpected exception: SQL error when doing 'Querying for a single value ' while performing SQL query: SQL SELECT: select count (*) from inspection_data: java.sql.SQLException: org.hsqldb.HsqlException: java.io.UTFDataFormatException. Caused by: org.hsqldb.HsqlException: org.hsqldb.HsqlException: java.io.UTFDataFormatException Cannot proceed with 'migrate' command: Database export failed after 7s,812ms. Error: jetbrains.buildServer.serverSide.db.UnexpectedDBException: Unexpected exception: SQL error when doing 'Querying for a single value ' while performing SQL query: SQL SELECT: select count (*) from inspection_data: java.sql.SQLException: org.hsqldb.HsqlException: java.io.UTFDataFormatException. Caused by: org.hsqldb.HsqlException: org.hsqldb.HsqlException: java.io.UTFDataFormatException
I guess it might be a performance issue since we have lots of code inspection issues in our projects. Am I right?
Is there a way to provide internal hsqldb with more resources?
Please sign in to leave a comment.
Aleksei,
Regards,
Andrey.
What's the exact process you are following to export the database?
I am using this manual https://confluence.jetbrains.com/display/TCD18/Migrating+to+an+External+Database#MigratingtoanExternalDatabase-db_full
But got stuck on 4th step since maintainDB.sh fails
We solved this by deleting configurations with lots of inspections and recreating those after migration to the new db.