Import problem with JIRA DVCS Connector Plugin


i'm trying to transfer from hsqldb to mysql, exported existing data, created mysql database, deleted dbconfig.xml and ran through the init. the import process gets to 90% then gives the following error:

2013-08-22 13:57:31,848 JiraImportTaskExecutionThread-1 INFO Mark James 837x245x1 1aqu90 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 90% complete...
2013-08-22 13:57:32,079 JiraImportTaskExecutionThread-1 INFO Mark James 837x245x1 1aqu90 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Finished storing Generic Values.
2013-08-22 13:57:37,970 JiraImportTaskExecutionThread-1 ERROR Mark James 837x245x1 1aqu90 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Error during ActiveObjects restore
com.atlassian.activeobjects.spi.ActiveObjectsImportExportException: There was an error during import/export with plugin JIRA DVCS Connector Plugin(com.atlassian.jira.plugins.jira-bitbucket-connector-plugin) # (table AO_E8B6CC_CHANGESET_MAPPING):
	at com.atlassian.activeobjects.backup.ImportExportErrorServiceImpl.newImportExportSqlException(
	at com.atlassian.dbexporter.importer.DataImporter$BatchInserter.flush(
	at com.atlassian.dbexporter.importer.DataImporter$BatchInserter.executePS(
at com.atlassian.dbexporter.importer.DataImporter$BaseInserter.execute( at com.atlassian.dbexporter.importer.DataImporter.importTable( at com.atlassian.dbexporter.importer.DataImporter.access$000( at com.atlassian.dbexporter.importer.DataImporter$ at com.atlassian.dbexporter.importer.DataImporter$ at com.atlassian.dbexporter.jdbc.JdbcUtils.withConnection( at com.atlassian.dbexporter.importer.DataImporter.doImportNode( at com.atlassian.dbexporter.importer.AbstractImporter.importNode( at com.atlassian.dbexporter.DbImporter.importData( at com.atlassian.activeobjects.backup.ActiveObjectsBackup.restore( at com.atlassian.jira.bc.dataimport.DefaultDataImportService.restoreActiveObjects( at com.atlassian.jira.bc.dataimport.DefaultDataImportService.performImport( at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport( at at at com.atlassian.jira.task.ImportTaskManagerImpl$

any suggestions gratefully received,


2 answers

Doh! turns out mysql's (from apt-get on ubuntu) default character set was latin not utf8?? and certain foreign chars from github messages were causing it to fail. fix was to recreate db from mysql:

drop database jira;

create database jira default character set utf8 default collate utf8_unicode_ci;

ps. another snippet from the log

Caused by: java.sql.SQLException: Incorrect string value: '\xC4\x9Flaya...' for column 'MESSAGE' at row 1

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

17 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you