Magento2: 2.1.0 EE installation fails

Created on 24 Jun 2016  路  14Comments  路  Source: magento/magento2

Steps to reproduce

Install Magento EE 2.1.0 with sample data from downloaded ZIP file - Windows 10 - Wamp
PHP 5.6.16

Apache 2.4.17

Error is step 6
Completion 51 %:

Module 'Magento_Cms':
Installing data...

Ready for Work bug report

Most helpful comment

Hi! Tried to install Magento 2.1.2 EE and had the same issue.
Spent few hours on debugging this - by some reason all "sequence_" tables was created with "MyISAM" engine - http://prntscr.com/db1ret

Workaround for now:

  1. Wait until error occurs. Do not close install window.
  2. Go and change engine to InnoDB for all "sequence_" tables.
  3. Empty/truncate (or just delete all records) from theese tables.
  4. Click - "Try again" in install window.

All 14 comments

Please report this issue in partner portal.

Does anybody know how to fix this issue? I also experience it.

$ mysql -u root -e "SET GLOBAL FOREIGN_KEY_CHECKS=0; fixes it

@katmoon That's a workaround - but not a solution. We also had this issue and have a ticket in partner portal.

There is internal ticket MAGETWO-55201 to fix this issue.

Any update on this issue? Still getting it while installing today.

Hi! Tried to install Magento 2.1.2 EE and had the same issue.
Spent few hours on debugging this - by some reason all "sequence_" tables was created with "MyISAM" engine - http://prntscr.com/db1ret

Workaround for now:

  1. Wait until error occurs. Do not close install window.
  2. Go and change engine to InnoDB for all "sequence_" tables.
  3. Empty/truncate (or just delete all records) from theese tables.
  4. Click - "Try again" in install window.

Interesting, I did the workaround of turning foreign key check off and then on again. They should really fix the issue.

We've done the foreign key check but down the road had foreign key issues.

That workaround should not be used

I did the workaround of turning foreign key check off and then on again. They should really fix the issue.

This will solve installation issues. But I beleive that if you will re-enable foreign key checks after install, you will be unable to add any entities (products, categories, e.t.c.).

That's because sequence tables has MyISAM engine, which didn't support foreign keys. Correct fix for that issue would be to set InnoDB engine while creating these tables.

This issue unbelievably still exists in Magento 2.1.4 EE

I've recreated it in MySQL 5.6.35

For those still subscribed to this issue, we may have found the culprit.

We did three things: upgrade to MySQL 5.7 (unlikely to be necessary)

Updated the MySQL open_files_limit configuration. The default for us was 5,000 and our hosting provider upped it all the way to 65,535. If you're having issues with this, I'd recommend seeing if doubling open_files_limit results in success.

If that doesn't work, the other thing that our provider did is changed our max_allowed_packet to "32M".

This issue related to:
MagentoFrameworkDBDdlSequence::getCreateSequenceDdl

As you can see, sql statement for CREATE TABLE is without specified InnoDB engine, which is required for foreign keys. On most Windows mysql servers, it is set to MyISAM by default, so tables will be created incorectly and is the reason for such error. Adding engine to this statement fixed my issue and Magento EE installed without any issues.

I've resolved this issue. I'll merge in the fix, which is to ensure that calls to save() come after startSetup(), which disabled FK checks.

Was this page helpful?
0 / 5 - 0 ratings