-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample data installation fails with "Duplicate entry" error on setup_module table #3304
Comments
The workaround worked for me. Thanks. |
@deltab thank you for your report. |
composer.json starts with:
Would composer.lock be useful? Something else? |
Hi @deltab , |
The contributor guide suggests that tickets that have not been active for two weeks should be closed. Please reopen as needed. |
Running "magento setup:upgrade" can fail when the first sample data module is reached, with a database error similar to "Integrity constraint violation: Duplicate entry 'Magento_CustomerSampleData' for key PRIMARY in setup_module".
Executing "select * from setup_module" in MySQL shows that schema_version is NULL for all the sample data modules.
File var/.sample-data-state.flag contains "error". It appears that the database error is not logged.
Workaround
Executing "delete from setup_module where schema_version is null" in MySQL appears to resolve the problem.
The text was updated successfully, but these errors were encountered: