magento / magento/magento2-sample-data

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

Open
#158 3 comments 9 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
212
Forks
266
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/magento/magento2-sample-data/releases/tag/2.4.0) 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](https://support.magento.com/hc/en-us/articles/360043144271)

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is identified; the issue only records an Elasticsearch error during setup:upgrade and a version workaround. Start by checking the linked Magento 2.4 Elasticsearch compatibility guidance, then determine whether this repository has a documentation location for recording the prerequisite and expected error.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php
Domain
backend, search
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.