Elasticsearch exited unexpectedly ES exited with code 1

After running: yarn es snapshot
i get the following error

yarn run v1.22.19
warning ../../package.json: No license field
$ node scripts/es snapshot
 info Installing from snapshot
   │ info version: 8.5.0
   │ info install path: /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0
   │ info license: basic
   │ info Downloading snapshot manifest from https://storage.googleapis.com/kibana-ci-es-snapshots-daily/8.5.0/manifest-latest-verified.json
   │ info Daily snapshot manifest not found, falling back to permanent manifest
   │ info Downloading snapshot manifest from https://storage.googleapis.com/kibana-ci-es-snapshots-permanent/8.5.0/manifest.json
   │ info verifying cache of https://storage.googleapis.com/kibana-ci-es-snapshots-permanent/8.5.0/elasticsearch-8.5.0-SNAPSHOT-linux-x86_64.tar.gz
   │ info etags match, reusing cache from 2023-01-19T20:41:05.773Z
   │ info install directory already exists, removing
   │ info extracting /mnt/c/Users/LTI/docker-kibana/kibana/.es/cache/elasticsearch-8.5.0-SNAPSHOT-linux-x86_64.tar.gz
   │ info extracted to /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0
   │ info created /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR
   │ info setting secure setting bootstrap.password to changeme
 info Starting
   │ info bin/elasticsearch -E action.destructive_requires_name=true -E cluster.routing.allocation.disk.threshold_enabled=false -E ingest.geoip.downloader.enabled=false -E search.check_ccs_compatibility=true
   │ info ES_JAVA_OPTS: -Xms1536m -Xmx1536m
   │ info [2023-01-20T17:53:45,109][WARN ][x-pack-ml-controller-stderr] [DESKTOP-I6JBMQ1] 2023-01-20 22:53:45,106184 UTC [3265] ERROR /ml-cpp/lib/core/CNamedPipeFactory.cc@242 Unable to create named pipe /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR/controller_log_3220: Operation not supported
   │ info [2023-01-20T17:53:45,115][WARN ][x-pack-ml-controller-stderr] [DESKTOP-I6JBMQ1] 2023-01-20 22:53:45,106277 UTC [3265] ERROR /ml-cpp/lib/core/CLogger.cc@319 Cannot log to named pipe /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR/controller_log_3220 as it could not be opened for writing
   │ info [2023-01-20T17:53:45,116][WARN ][x-pack-ml-controller-stderr] [DESKTOP-I6JBMQ1] 2023-01-20 22:53:45,106287 UTC [3265] FATAL /ml-cpp/bin/controller/Main.cc@114 Could not reconfigure logging
   │ info [o.e.n.Node] [DESKTOP-I6JBMQ1] version[8.5.0-SNAPSHOT], pid[3220], build[tar/6f7deeef04a13dd9224fc2b40c9d3dfa8d1f5a4d/2022-11-01T14:07:15.762074510Z], OS[Linux/5.10.16.3-microsoft-standard-WSL2/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19/19+36-2238]
   │ info [o.e.n.Node] [DESKTOP-I6JBMQ1] JVM home [/mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/jdk], using bundled JDK [true]
   │ info [o.e.n.Node] [DESKTOP-I6JBMQ1] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -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, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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, -Xms1536m, -Xmx1536m, -XX:MaxDirectMemorySize=805306368, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
   │ info [o.e.n.Node] [DESKTOP-I6JBMQ1] version [8.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production
   │ info [c.a.c.i.j.JacksonVersion] [DESKTOP-I6JBMQ1] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [aggs-matrix-stats]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [analysis-common]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [apm]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [constant-keyword]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [data-streams]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [frozen-indices]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [ingest-attachment]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [ingest-common]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [ingest-geoip]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [ingest-user-agent]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [kibana]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [lang-expression]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [lang-mustache]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [lang-painless]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [legacy-geo]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [mapper-extras]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [mapper-version]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [old-lucene-versions]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [parent-join]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [percolator]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [rank-eval]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [reindex]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repositories-metering-api]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repository-azure]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repository-encrypted]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repository-gcs]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repository-s3]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [repository-url]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [runtime-fields-common]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [search-business-rules]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [searchable-snapshots]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [snapshot-based-recoveries]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [snapshot-repo-test-kit]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [spatial]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [test-delayed-aggs]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [test-die-with-dignity]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [test-error-query]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [transform]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [transport-netty4]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [unsigned-long]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [vector-tile]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [wildcard]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-aggregate-metric]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-analytics]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-async]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-async-search]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-autoscaling]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-ccr]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-core]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-deprecation]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-enrich]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-eql]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-fleet]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-graph]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-identity-provider]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-ilm]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-logstash]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-ml]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-monitoring]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-ql]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-rollup]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-security]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-shutdown]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-sql]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-stack]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-text-structure]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-voting-only-node]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] loaded module [x-pack-watcher]
   │ info [o.e.p.PluginsService] [DESKTOP-I6JBMQ1] no plugins loaded
   │ info [stderr] [DESKTOP-I6JBMQ1] Jan 20, 2023 5:54:02 PM org.apache.lucene.store.MMapDirectory lookupProvider
   │ info [stderr] [DESKTOP-I6JBMQ1] WARNING: You are running with Java 19. To make full use of MMapDirectory, please pass '--enable-preview' to the Java command line.
   │ info [o.e.e.NodeEnvironment] [DESKTOP-I6JBMQ1] using [1] data paths, mounts [[/mnt/c (C:\)]], net usable_space [169.9gb], net total_space [953.2gb], types [9p]
   │ info [o.e.e.NodeEnvironment] [DESKTOP-I6JBMQ1] heap size [1.5gb], compressed ordinary object pointers [true]
   │ info [o.e.n.Node] [DESKTOP-I6JBMQ1] node name [DESKTOP-I6JBMQ1], node ID [JssObZ0vQCGzyZiFgIwF2Q], cluster name [elasticsearch], roles [data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest]
   │ info [o.e.x.s.Security] [DESKTOP-I6JBMQ1] Security is enabled
   │ info [o.e.x.s.a.s.FileRolesStore] [DESKTOP-I6JBMQ1] parsed [0] roles from file [/mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/config/roles.yml]
   │ info [o.e.b.Elasticsearch] [DESKTOP-I6JBMQ1] fatal exception while booting Elasticsearch org.elasticsearch.ElasticsearchException: Failure running machine learning native code. This could be due to running on an unsupported OS or distribution, missing OS libraries, or a problem with the temp directory. To bypass this problem by running Elasticsearch without machine learning functionality set [xpack.ml.enabled: false].
   │            at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:950)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.node.Node.lambda$new$15(Node.java:704)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.plugins.PluginsService.lambda$flatMap$0(PluginsService.java:252)
   │            at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
   │            at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
   │            at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
   │            at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
   │            at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
   │            at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
   │            at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
   │            at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
   │            at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
   │            at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.node.Node.<init>(Node.java:719)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.node.Node.<init>(Node.java:316)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.bootstrap.Elasticsearch$2.<init>(Elasticsearch.java:214)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:214)
   │            at org.elasticsearch.server@8.5.0-SNAPSHOT/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)
   │ERROR ERROR: Elasticsearch did not exit normally - check the logs at /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/logs/elasticsearch.log
   │
   │ERROR
   │
   │ERROR ERROR: Elasticsearch exited unexpectedly
   │
ERROR ES exited with code 1
error Command failed with exit code 1.

When reviewing the log, the first three lines indicate the following.

UTC [3265] ERROR /ml-cpp/lib/core/CNamedPipeFactory.cc@242 Unable to create named pipe /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR/controller_log_3220: Operation not supported
[2023-01-20T17:53:45,115][WARN ][x-pack-ml-controller-stderr] [DESKTOP-I6JBMQ1] 2023-01-20 22:53:45,106277 UTC [3265] ERROR /ml-cpp/lib/core/CLogger.cc@319 Cannot log to named pipe /mnt/c/Users/LTI/docker-kibana/kibana/.es/8.5.0/ES_TMPDIR/controller_log_3220 as it could not be opened for writing
[2023-01-20T17:53:45,116][WARN ][x-pack-ml-controller-stderr] [DESKTOP-I6JBMQ1] 2023-01-20 22:53:45,106287 UTC [3265] FATAL /ml-cpp/bin/controller/Main.cc@114 Could not reconfigure logging
[2023-01-20T17:53:48,756][INFO ][o.e.n.Node               ] [DESKTOP-I6JBMQ1] version[8.5.0-SNAPSHOT], pid[3220], build[tar/6f7deeef04a13dd9224fc2b40c9d3dfa8d1f5a4d/2022-11-01T14:07:15.762074510Z], OS[Linux/5.10.16.3-microsoft-standard-WSL2/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19/19+36-2238]

Hello @jdso1988 , welcome to the community !

Your logs have already provided solution to your issue :smiley:

nope, it didn't work. The solution was to run it in ubuntu. Things generally don't go well in Windows XD.

Well, if you are installing the *NIX version of ES, configuring it based on *NIX file system and starting up the ES node on windows, there is no way it will ever start. It was however presumptuous that it's running in correct OS with correct package.
Nevertheless, good to know that you solved your issue :slight_smile:

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