Skip to content

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

Open
@vdloo

Description

@vdloo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions