magento2-sample-data icon indicating copy to clipboard operation
magento2-sample-data copied to clipboard

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

Open vdloo opened this issue 5 years ago • 3 comments

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

vdloo avatar Jul 28 '20 16:07 vdloo

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

heyepic avatar Jan 03 '21 21:01 heyepic

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

Dan0sz avatar Jan 20 '21 20:01 Dan0sz

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.

Niyabi avatar Oct 07 '21 11:10 Niyabi