I'm facing this error in during when i run this setup:upgrade command. Can you help me regarding this issue, how to i'll fix this error ?


2 Answers 2


Check your eav_attribute_option_value database table & set autoincrement sequencing to next increment number. And then do as what stated by Manish Chaubey.

Remove duplicate primary key entry from table and then do setup upgrade.


Check your table which has duplicate entry and delete one.

Then run command bin/magento setup:upgrade .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.