Bitbucket Server Fails to Startup with MySQL 5.6.x
Symptoms
The following exception is reported when starting up Bitbucket Server:
"Migration failed for change set liquibase/r1_3/m01.xml::BSERVDEV-1023-10::bturner:
Reason: liquibase.exception.DatabaseException: Error executing SQL
CREATE INDEX 'idx_sta_diff_comment_anchors' ON
'bitbucketdb'.'bitbucket_diff_comment_anchor'('to_hash', 'file_path',
'from_hash'): Specified key was too long; max key length is 767 bytes:"
Cause
This has been identified as a new MySQL 5.6.x bug. Atlassian is tracking this bug here. Feel free to watch it for all related updates.
Resolution
Due to the new bug identified, development is unfortunately not in a position to support this particular version of MySQL. Please consider using MySQL 5.5 or any other supported databases. You may continue using embedded HSQLDB, if using Bitbucket Server for evaluation purposes.
Last modified on Nov 2, 2018
Powered by Confluence and Scroll Viewport.