Skip to content
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

Closed
deltab opened this issue Feb 5, 2016 · 5 comments

Comments

@deltab
Copy link

deltab commented Feb 5, 2016

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.

@rudenko-maksym
Copy link

The workaround worked for me. Thanks.

@veloraven
Copy link
Contributor

@deltab thank you for your report.
Please provide information about versions you used.

@deltab
Copy link
Author

deltab commented Aug 16, 2016

git branch -v output:

composer.json starts with:

{
    "name": "magento/magento2ce",
    "description": "Magento 2 (Community Edition)",
    "type": "project",
    "version": "2.0.0",

Would composer.lock be useful? Something else?

@NadiyaS
Copy link
Contributor

NadiyaS commented Aug 30, 2016

Hi @deltab ,
we can not reproduce this bug on current Magento develop branch.
If you still have the same problem please provide us more detailed steps to reproduce.
Thanks,

@NadiyaS NadiyaS removed their assignment Aug 30, 2016
@andimov
Copy link
Contributor

andimov commented Sep 14, 2016

The contributor guide suggests that tickets that have not been active for two weeks should be closed. Please reopen as needed.

@andimov andimov closed this as completed Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants