Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Elasticseach Module installation

    Installing Bagisto
    2
    4
    719
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mishant last edited by

      I have setup Bagisto using Bagisto-docker repo.

      But When i try to do indexing of products I get error no active node found.
      I am running command as follows:

      php artisan indexer:index --type=elastic

      And get error like this:

      In SimpleNodePool.php line 77:
      No alive nodes. All the 1 nodes seem to be down.

      In elastic container: I run command to check node i get output like this:
      http://localhost:9200/_cat/nodes?v

      ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
      172.18.0.3 75 99 11 0.73 2.14 3.01 cdfhilmrstw * efcc2596cc11

      where active node is visible.

      How to fix this no active node find problem.

      Thanks,
      Mishant

      1 Reply Last reply Reply Quote 0
      • admin
        admin last edited by

        Hello there,

        If you are using the Bagisto Docker repository, your hostname should be the container name, which is usually elasticsearch:9200.

        Please check your .env file. It should look like this if your are using the latest version:
        ELASTICSEARCH_HOST=elasticsearch:9200

        M 1 Reply Last reply Reply Quote 0
        • M
          mishant @admin last edited by mishant

          @admin Thank you. It works. I have used http://localhost:9200 ,which was not working. But after putting container name it works.

          Again thank you for help

          admin 1 Reply Last reply Reply Quote 0
          • admin
            admin @mishant last edited by

            @mishant You're welcome

            1 Reply Last reply Reply Quote 0
            • First post
              Last post