Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Fisheye - MySql 5.6 Migration From hsql Constraint Issue (Specified key was too long; max key length is 767 bytes)

When migrating from hsql to MySql 5.6 (pretty much fresh installation) I am getting an error which does not allow completion of migration. An exception is thrown when a constraint is applied to the following table:

{noformat} ERROR - Database migration failed: com.cenqua.crucible.hibernate.CruDBException: Problem with constraints script /opt/applications/fecru-2.10.1/sql/MYSQL/schema/constraints_80.sql

com.cenqua.crucible.hibernate.CruDBException: Problem with constraints script /opt/applications/fecru-2.10.1/sql/MYSQL/schema/constraints_80.sql

at com.cenqua.crucible.hibernate.DefaultDBControl.addConstraints(

at com.atlassian.crucible.migration.item.DBImporter.importData(

at com.atlassian.crucible.actions.admin.database.DBEditHelper$

at com.atlassian.crucible.actions.admin.database.DBEditHelper$

at java.util.concurrent.FutureTask$Sync.innerRun(


at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(

at java.util.concurrent.ScheduledThreadPoolExecutor$

at java.util.concurrent.ThreadPoolExecutor.runWorker(

at java.util.concurrent.ThreadPoolExecutor$


Caused by: com.cenqua.crucible.hibernate.CruDBException: SQL script error on line 124: create index cru_idx_stored_path on cru_stored_path (cru_path);

(Specified key was too long; max key length is 767 bytes), please contact

at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(

at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(

at com.cenqua.crucible.hibernate.DefaultDBControl.addConstraints(

... 10 more

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

at java.lang.reflect.Constructor.newInstance(

at com.mysql.jdbc.Util.handleNewInstance(

at com.mysql.jdbc.Util.getInstance(

at com.mysql.jdbc.SQLError.createSQLException(

at com.mysql.jdbc.MysqlIO.checkErrorPacket(

at com.mysql.jdbc.MysqlIO.checkErrorPacket(

at com.mysql.jdbc.MysqlIO.sendCommand(

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(

at com.mysql.jdbc.ConnectionImpl.execSQL(

at com.mysql.jdbc.StatementImpl.executeUpdate(

at com.mysql.jdbc.StatementImpl.executeUpdate(

at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(

... 12 more {noformat}

1 answer

0 votes
vkharisma Atlassian Team Feb 20, 2013

Hi Mahesh,

This is a bug that currently being tracked by our developer here:

this is a new MySQL instance, can you try downgrading to MySQL 5.5?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

106 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you