Error importing data while migrating Jira

Coming from JIRA v4.1.2, and trying to migrate to JIRA 5.0.6.

Went through the migration steps, I think correctly. On first attempt to migrate got the following error message :

"(SQL Exception while executing the following:INSERT INTO jiraaction (ID, issueid, AUTHOR, actiontype, actionlevel, rolelevel, actionbody, CREATED, UPDATEAUTHOR, UPDATED, actionnum) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (Incorrect string value: '\xEF\x83\xA"

This is quite similar to this report :

So dropped&recreated the database, unzipped the xml backup and uploaded it to the server (debian).

Issued sed -i 's/^C//g' backup.xml - there was no output (no error, no summary not success confiramtion), have no clue if that's good or bad...

And tried the migration again. This time again the same error message. Could anyone give some help/hint?

9 answers

Did you already check this: ?

what is your MySQL version and the encoding of your table jiraaction? Please post the result of

select charset('jiraaction')

Hi Dieter, thanks for your comment.

Server version: 5.1.61-0+squeeze1 (Debian)

mysql> select charset('jiraaction'); +-----------------------+
| charset('jiraaction') |
| latin1 |
1 row in set (0.00 sec)
Missed the article, thanks. But :
root@jira:~# mysql jiradb -e "show variables like 'char%'" -p
Enter password:
| Variable_name | Value |
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
This seems ok, and indeed I did create the db with "CREATEDATABASEjiradb CHARACTERSETutf8;"...
Or am I wrong?
I think your database was created correctly but the table jiraaction seems to have the wrong character set. It should be utf-8 not latin 1 which afaik only stores 8bit characters. Will check this with a working installation tomorrow ..
Can you add the output of show table statu ? This should give the character set of each table

Just checked, the command select charset('jiraaction'); seems not returning useful data...

mysql> select charset('jiraaction');


| charset('jiraaction') |


| latin1 |


1 row in set (0.00 sec)

It returns the same result even for a non-existent table as well...
mysql> select charset('foo-not exists');
| charset('foo-not exists') |
| latin1 |
1 row in set (0.00 sec)

Magic...Just reattempted the migration and seems it worked fine. But as far as I remember I have not done anything differently...

I'll ask one of the users to verify if everything is migrated. If that get's verified I'll perform an addtional test migartion to see if I could reproduce the same result. Let's hope the best.

Great...clean debian install, clean mysql-server install, clean installation of jira.

on migration : "Unable to find ActiveObjects plugin. The plugin must be enabled for the restore to work."

This is getting more and more wierd...

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 yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

155 views 0 2
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