# Yarn kbn bootstrap fails

**URL:** <https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337>\
**Category:** Kibana\
**Created:** [June 8, 2021, 6:24pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337 "2021-06-08T18:24:50Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 6, 2021, 6:11pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/21 "2021-07-06T18:11:26Z")

</div>

Following is the architecture I am running on.

codebind@DESKTOP-L3L3CBE:/mnt/c/Temp/kibana$ bazel --version  
**bazel 4.0.0**  
codebind@DESKTOP-L3L3CBE:/mnt/c/Temp/kibana$ lsb\_release -a  
**No LSB modules are available.**  
**Distributor ID: Ubuntu**  
**Description: Ubuntu 20.04.2 LTS**  
**Release: 20.04**  
**Codename: focal**  
codebind@DESKTOP-L3L3CBE:/mnt/c/Temp/kibana$

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 6, 2021, 6:53pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/22 "2021-07-06T18:53:51Z")

</div>

> [@Akhil2](#):
>
> still trying to connect to local Bazel server after

@Akhil2 I suspect about one thing here. I think we can try 2 things:

1 - disable IPV6 in the WSL  
2 - add a new file to the root of the kibana repo named `.bazelrc.user` and within its content a single line with `startup --batch`

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 7, 2021, 9:49pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/23 "2021-07-07T21:49:50Z")

</div>

Hi @tiagocosta,

Let me thank you first for helping me through out the whole process.  
Good news is yarn kbn bootstrap worked. but yarn es snapshot is giving me a lot of errors.

```auto
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-monitoring]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-ql]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-rollup]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-security]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-shutdown]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-sql]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-stack]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-text-structure]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-voting-only-node]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] loaded module [x-pack-watcher]
   │ info [o.e.p.PluginsService] [DESKTOP-TUBC0V5] no plugins loaded
   │ info [o.e.e.NodeEnvironment] [DESKTOP-TUBC0V5] using [1] data paths, mounts [[/mnt/c (C:\)]], net usable_space [170.8gb], net total_space [222.4gb], types [drvfs]
   │ info [o.e.e.NodeEnvironment] [DESKTOP-TUBC0V5] heap size [1gb], compressed ordinary object pointers [true]
   │ info [o.e.n.Node] [DESKTOP-TUBC0V5] node name [DESKTOP-TUBC0V5], node ID [23izlRXCTLeBFmR74sUS-A], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
   │ info [o.e.b.ElasticsearchUncaughtExceptionHandler] [DESKTOP-TUBC0V5] uncaught exception in thread [main]
   │ org.elasticsearch.bootstrap.StartupException: 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.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ Caused by: 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:726) ~[?:?]
   │ at org.elasticsearch.node.Node.lambda$new$18(Node.java:605) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) ~[?:?]
   │ at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
   │ at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
   │ at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
   │ at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
   │ at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
   │ at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
   │ at org.elasticsearch.node.Node.<init>(Node.java:609) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.node.Node.<init>(Node.java:278) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:217) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:217) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:397) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.13.2-SNAPSHOT.jar:7.13.2-SNAPSHOT]
   │ ... 6 more
   │ERROR uncaught exception in thread [main]
   │ 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:726)
   │ at org.elasticsearch.node.Node.lambda$new$18(Node.java:605)
   │ at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
   │ at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
   │ at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
   │ at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
   │ at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
   │ at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   │ at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
   │ at org.elasticsearch.node.Node.<init>(Node.java:609)
   │ at org.elasticsearch.node.Node.<init>(Node.java:278)
   │ at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:217)
   │ at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:217)
   │ at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:397)
   │ at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
   │ at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
   │ at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
   │ at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
   │ at org.elasticsearch.cli.Command.main(Command.java:79)
   │ at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
   │ at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
   │ For complete error details, refer to the log at /mnt/c/Temp/kibana/.es/7.13.2/logs/elasticsearch.log
   │
   │ERROR ES exited with code 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

Thanks again.

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 7, 2021, 10:12pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/24 "2021-07-07T22:12:32Z")

</div>

I tried adding xpack.ml.enabled: false to elasticsearch.yml but the error keeps coming back.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 11:22am UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/25 "2021-07-08T11:22:45Z")

</div>

Hi @Akhil2 it's probably related with [Machine learning settings in Elasticsearch | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/ml-settings.html#ml-settings)

Let's try to run the snapshots with that feature disabled.

```auto
yarn es snapshot --license trial -E xpack.ml.enabled=false

```

Cheers

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 8, 2021, 5:02pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/26 "2021-07-08T17:02:36Z")

</div>

It worked @tiagocosta . one more question, yarn start is giving me the following errors.

```auto
Error: No native build was found for platform=linux arch=x64 runtime=node abi=83 uv=1 libc=glibc node=14.16.1
    loaded from: /mnt/c/Temp/kibana/node_modules/lmdb-store

```

I have seen couple of related posts online but no solutions.

Thank you. 😃 I am a little happy now as i am almost at the end.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 5:44pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/27 "2021-07-08T17:44:47Z")

</div>

@Akhil2 could you make sure you are in sync with the latest master? After it please run `yarn kbn reset && yarn kbn bootstrap`. I think after that it should work as expected.

Cheers

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 8, 2021, 7:14pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/28 "2021-07-08T19:14:17Z")

</div>

Thanks for all the help @tiagocosta.

Finally I was able to set up development environment with git bash as well. I started gitbash as an administrator. I think that helped. but you have been a great help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 5, 2021, 7:15pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337/29 "2021-08-05T19:15:13Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/yarn-kbn-bootstrap-fails/275337.md?page=1)
