Exception : No alive nodes found in your cluster

Hi everyone, i have an issue according to elasticsearch , i am running this code
php artisan index:ambassadors
and it gives me Exception : No alive nodes found in your cluster
here is my output

    Exception : No alive nodes found in your cluster
      487/4119 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░]  11%Exception : No alive nodes found in your cluster
      963/4119 [▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░]  23%Exception : No alive nodes found in your cluster
     1459/4119 [▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░]  35%Exception : No alive nodes found in your cluster
     1981/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░]  48%Exception : No alive nodes found in your cluster
     2480/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░]  60%Exception : No alive nodes found in your cluster
     2996/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░]  72%Exception : cURL error 7: Failed to connect to 172.21.0.1 port 9200: Connection timed out
     3475/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░]  84%Exception : No alive nodes found in your cluster
     3997/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░]  97%Exception : No alive nodes found in your cluster
     4119/4119 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%Exception : No alive nodes found in your cluster

       Elasticsearch\Common\Exceptions\NoNodesAvailableException 

      No alive nodes found in your cluster

      at vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:64
        60|                 return $connection;
        61|             }
        62|         }
        63| 
      > 64|         throw new NoNodesAvailableException("No alive nodes found in your cluster");
        65|     }
        66| 
        67|     public function scheduleCheck(): void
        68|     {

          +5 vendor frames 
      6   app/Services/Indexation/EsClientService.php:90
          Elasticsearch\Namespaces\IndicesNamespace::getAliases()

      7   app/Services/Indexation/EsClientService.php:60
          App\Services\Indexation\EsClientService::findIndexNameByAlias("")

and here is my elasticsearch logs

    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, setting it to UseAVX=0
    [2021-04-20T13:15:36,890][WARN ][o.e.c.l.LogConfigurator  ] [elasticsearch] Some logging configurations have %marker but don't have %node_name. We will automatically add %node_name to the pattern to ease the migration for users who customize log4j2.properties but will stop this behavior in 7.0. You should manually replace `%node_name` with `[%node_name]%marker ` in these locations:
      /usr/share/elasticsearch/config/log4j2.properties
    [2021-04-20T13:15:37,360][INFO ][o.e.e.NodeEnvironment    ] [elasticsearch] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/sda1)]], net usable_space [174.3gb], net total_space [219gb], types [ext4]
    [2021-04-20T13:15:37,361][INFO ][o.e.e.NodeEnvironment    ] [elasticsearch] heap size [1007.3mb], compressed ordinary object pointers [true]
    [2021-04-20T13:15:37,370][INFO ][o.e.n.Node               ] [elasticsearch] node name [elasticsearch], node ID [bK-z6URAQ9efPnpifDKHzA]
    [2021-04-20T13:15:37,371][INFO ][o.e.n.Node               ] [elasticsearch] version[6.5.0], pid[1], build[default/tar/816e6f6/2018-11-09T18:58:36.352602Z], OS[Linux/5.4.0-71-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.1/11.0.1+13]
    [2021-04-20T13:15:37,371][INFO ][o.e.n.Node               ] [elasticsearch] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.KTSug6bF, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=2, -Des.cgroups.hierarchy.override=/, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [aggs-matrix-stats]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [analysis-common]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [ingest-common]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [lang-expression]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [lang-mustache]
    [2021-04-20T13:15:40,441][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [lang-painless]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [mapper-extras]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [parent-join]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [percolator]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [rank-eval]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [reindex]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [repository-url]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [transport-netty4]
    [2021-04-20T13:15:40,442][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [tribe]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-ccr]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-core]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-deprecation]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-graph]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-logstash]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-ml]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-monitoring]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-rollup]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-security]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-sql]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-upgrade]
    [2021-04-20T13:15:40,443][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded module [x-pack-watcher]
    [2021-04-20T13:15:40,444][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded plugin [ingest-geoip]
    [2021-04-20T13:15:40,444][INFO ][o.e.p.PluginsService     ] [elasticsearch] loaded plugin [ingest-user-agent]
    [2021-04-20T13:15:46,262][INFO ][o.e.x.s.a.s.FileRolesStore] [elasticsearch] parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]
    [2021-04-20T13:15:47,393][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [elasticsearch] [controller/72] [Main.cc@109] controller (64 bit): Version 6.5.0 (Build 71882a589e5556) Copyright (c) 2018 Elasticsearch BV
    [2021-04-20T13:15:48,569][INFO ][o.e.d.DiscoveryModule    ] [elasticsearch] using discovery type [zen] and host providers [settings]
    [2021-04-20T13:15:49,868][INFO ][o.e.n.Node               ] [elasticsearch] initialized
    [2021-04-20T13:15:49,868][INFO ][o.e.n.Node               ] [elasticsearch] starting ...
    [2021-04-20T13:15:50,159][INFO ][o.e.t.TransportService   ] [elasticsearch] publish_address {172.18.0.2:9300}, bound_addresses {0.0.0.0:9300}
    [2021-04-20T13:15:50,204][INFO ][o.e.b.BootstrapChecks    ] [elasticsearch] bound or publishing to a non-loopback address, enforcing bootstrap checks
    [2021-04-20T13:15:53,310][INFO ][o.e.c.s.MasterService    ] [elasticsearch] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {elasticsearch}{bK-z6URAQ9efPnpifDKHzA}{Ns5Qzl42RS69XWYe8EoCQA}{172.18.0.2}{172.18.0.2:9300}{ml.machine_memory=8215052288, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}
    [2021-04-20T13:15:53,317][INFO ][o.e.c.s.ClusterApplierService] [elasticsearch] new_master {elasticsearch}{bK-z6URAQ9efPnpifDKHzA}{Ns5Qzl42RS69XWYe8EoCQA}{172.18.0.2}{172.18.0.2:9300}{ml.machine_memory=8215052288, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, reason: apply cluster state (from master [master {elasticsearch}{bK-z6URAQ9efPnpifDKHzA}{Ns5Qzl42RS69XWYe8EoCQA}{172.18.0.2}{172.18.0.2:9300}{ml.machine_memory=8215052288, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
    [2021-04-20T13:15:53,371][INFO ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [elasticsearch] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
    [2021-04-20T13:15:53,371][INFO ][o.e.n.Node               ] [elasticsearch] started
    [2021-04-20T13:15:53,739][WARN ][o.e.x.s.a.s.m.NativeRoleMappingStore] [elasticsearch] Failed to clear cache for realms [[]]
    [2021-04-20T13:15:53,803][INFO ][o.e.l.LicenseService     ] [elasticsearch] license [b71b9552-809a-46c5-a938-4f71778d8a73] mode [basic] - valid
    [2021-04-20T13:15:53,825][INFO ][o.e.g.GatewayService     ] [elasticsearch] recovered [0] indices into cluster_state

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.