What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello everyone, I have recently upgraded to the newest Spryker devvm and I am having a problem when

UM9F81RCP
UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
edited June 2021 in Help

Hello everyone,

I have recently upgraded to the newest Spryker devvm and I am having a problem when running vendor/bin/instal it fails on creating the search index

The command that is failing is:

Command setup-search for DE store [vendor/bin/console setup:search] (In progress...)

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    What devvm is that?
    Looks like ES version inconsistency with modules dependencies.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
    devvm_v4.0.1.box
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
    {
    name: "vm-suite",
    cluster_name: "spryker-development",
    cluster_uuid: "LnlgfudJS--4lKx-LxV52Q",
    version: {
    number: "7.11.1",
    build_flavor: "default",
    build_type: "deb",
    build_hash: "ff17057114c2199c9c1bbecc727003a907c0db7a",
    build_date: "2021-02-15T13:44:09.394032Z",
    build_snapshot: false,
    lucene_version: "8.7.0",
    minimum_wire_compatibility_version: "6.8.0",
    minimum_index_compatibility_version: "6.0.0-beta1"
    },
    tagline: "You Know, for Search"
    }
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    this is the output of :

    <http://www.de.demo-shop-b2b.local:10005/>
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    ES is 7.11.1

  • U0251S9J5LP
    U0251S9J5LP Posts: 22 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited June 2021

    i’m wondering if it’s because of the removal of mapping types in es 7: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

    the search.json files in the spryker modules are still using types?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    So devvm is using ES7, but the project isn't.
    Please check what version of spryker/elastica is installed in your composer.lock.

    "name": "spryker/elastica",
    "version": "5.0.0"
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    No sorry I was looking at a different project … the project that is failing has :

    "name": "spryker/elastica",
    "version": "4.0.0",
    

    😞

    I think we must then update!

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    ES7 dependency is

    "name": "spryker/elastica",
    "version": "6.0.0"
    
  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Your dependency is for ES5.