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?

 

0
4 comments
Avatar
Permanently deleted user
Official comment

Aleksei,

 

  1. Can you make a database backup while TeamCity is running (from the UI)?
  2. What are the values of your TEAMCITY_* environment variables, if any (e.g.: TEAMCITY_SERVER_OPTS, TEAMCITY_SERVER_MEM_OPTS, TEAMCITY_MAINTAINDB_MEM_OPTS)?
  3. What is the total size of your ${TEAMCITY_DATA_PATH}/system/buildserver.* files?

 

Regards,

Andrey.

What's the exact process you are following to export the database?

0
Avatar
Permanently deleted user
0

We solved this by deleting configurations with lots of inspections and recreating those after migration to the new db.

0

Please sign in to leave a comment.