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

Magento 2.4.0 sample data setup:upgrade throws (unclear) error if wrong ES version configured #158

Open
vdloo opened this issue Jul 28, 2020 · 3 comments

Comments

@vdloo
Copy link

vdloo commented Jul 28, 2020

Don't really have an issue but just wanted to post this here in case someone runs into the same problem and is googling for an answer. Deploying the Magento 2.4.0 sample data on a fresh 2.4.0 install throws this somewhat 'unclear' error (on setup:upgrade):

Module 'Magento_ConfigurableSampleData':
Running data recurring...{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"},"status":400}

If you get this it means your Magento installation is using a wrong version of ElasticSearch (in my case 6.6.1) and you need to switch to a compatible version (like 7.6.0). More information about setting up ES with Magento 2.4 here

@heyepic
Copy link

heyepic commented Jan 3, 2021

@vdloo just want to say thanks as I ran into this and you're the only result I found!

@Dan0sz
Copy link

Dan0sz commented Jan 20, 2021

Same here! I'm using Devilbox to setup a M2 environment and switching to Elastic Search 7.6.0 fixed the issue for me!

@Niyabi
Copy link

Niyabi commented Oct 7, 2021

I get this error on Magento 2.4.3 for ES 7.8.1, 7.10.1, 7.13.2. It goes for setup:upgrade and when I got sample data first during Magento installation. I'm trying to set it on Docker for development env. I'm at loss what to do to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants