Yarn kbn bootstrap fails

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$

@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

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.

   β”‚ 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.

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

Hi @Akhil2 it's probably related with Machine learning settings in Elasticsearch | Elasticsearch Guide [7.13] | Elastic

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

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

Cheers

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

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. :smiley: I am a little happy now as i am almost at the end.

@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

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.

1 Like

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