# \[KBN-ES Development\] yarn es snapshot doesn't work

**URL:** <https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [June 23, 2021, 1:38pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798 "2021-06-23T13:38:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flavio1](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@Flavio1](https://discuss.elastic.co/u/Flavio1)\
**Post date:** [June 23, 2021, 1:38pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/1 "2021-06-23T13:38:34Z")

</div>

Hi all,  
i'm trying to start kbn development enviroment to create my first plugin.  
I follow the guide in this link: [getting started](https://www.elastic.co/guide/en/kibana/current/development-getting-started.html)

1. fork from kibana repo
2. clone the repo on my local
3. bootstrap kibana

I can bootstrap properly kibana with a success message at the end, i can also start kibana with:

**yarn start**

but i'm finding problems with elastic and the command:

**yarn es snapshot**.

Basically it remains stucked with this trace:

```auto
C:\Users\mario.rossi\kibana>yarn es snapshot --version 7.13.2
yarn run v1.22.10
warning package.json: "dependencies" has dependency "@elastic/apm-rum" with range "^5.8.0" that collides with a dependency in "devDependencies" of the same name with version "^5.6.1"
warning package.json: "dependencies" has dependency "@elastic/apm-rum-react" with range "^1.2.11" that collides with a dependency in "devDependencies" of the same name with version "^1.2.5"
$ node scripts/es snapshot --version 7.13.2
 info Installing from snapshot
   │ info version: 7.13.2
   │ info install path: C:\Users\mario.rossi\kibana\.es\7.13.2
   │ info license: basic
   │ info Downloading snapshot manifest from https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.2/manifest-latest-verified.json
   │ info verifying cache of https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.2/archives/20210613-194436_04715f2a747/elasticsearch-7.13.2-SNAPSHOT-windows-x86_64.zip
   │ info etags match, reusing cache from 2021-06-22T15:23:17.620Z
   │ info install directory already exists, removing
   │ info extracting C:\Users\mario.rossi\kibana\.es\cache\elasticsearch-7.13.2-SNAPSHOT-windows-x86_64.zip
   │ info extracted to C:\Users\mario.rossi\kibana\.es\7.13.2
   │ info created C:\Users\mario.rossi\kibana\.es\7.13.2\ES_TMPDIR

```

after three hours, the process is not finished yet. I think something is not working but i don't know how to solve this. Any help?  
I also tried with default version 8.0.0. with the same result.  
Thx in advance.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 23, 2021, 2:57pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/2 "2021-06-23T14:57:52Z")

</div>

`yarn es snapshot` is the command to run a local Elasticsearch cluster for your development, the process doesn't automatically terminate to keep Elasticsearch running.

Were you able to successfully run `yarn kbn bootstrap`? That process is typically the slowest, especially [because Windows is a slower environment](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501).

---

<div class="post-metadata">

**Author:** ![Flavio1](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@Flavio1](https://discuss.elastic.co/u/Flavio1)\
**Post date:** [June 23, 2021, 3:11pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/3 "2021-06-23T15:11:16Z")

</div>

yes i was able to successfully run yarn kbn bootstrap. But when i try:

**yarn start**

in order to rise a kibana server, it tells me that: **no elasticsearch istance in running**.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 23, 2021, 3:13pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/4 "2021-06-23T15:13:08Z")

</div>

Right. Kibana does require a running Elasticsearch instance to connect to- that is the purpose of `yarn es snapshot`, but if that command is giving you issues you can connect Kibana to any test cluster of your choice.

---

<div class="post-metadata">

**Author:** ![Flavio1](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@Flavio1](https://discuss.elastic.co/u/Flavio1)\
**Post date:** [June 23, 2021, 3:28pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/5 "2021-06-23T15:28:00Z")

</div>

I find out, that if i try to force elastic snapshot 8.0.0. to start with

**./bin/elasticsearch**

i get an error for: **unknown setting**.

but if Try to install elastic snapshot 7.13.2 and i force it to run in the same way that before:

**./bin/elasticsearch**

Elastic runs correctly. Unfortunately at this point kibana gives me this error:

**server log [17:23:07.439] [error][savedobjects-service] This version of Kibana (v8.0.0) is incompatible with the following Elasticsearch nodes in your cluster: v7.13.2 @ 127.0.0.1:9200 (127.0.0.1)**

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 23, 2021, 3:40pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/6 "2021-06-23T15:40:39Z")

</div>

While I can't guarantee compatibility between 7.13.2 and 8.0, you might be able to test it using `yarn start --elasticsearch.ignoreVersionMismatch=true`

---

<div class="post-metadata">

**Author:** ![Flavio1](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@Flavio1](https://discuss.elastic.co/u/Flavio1)\
**Post date:** [June 23, 2021, 3:54pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/7 "2021-06-23T15:54:41Z")

</div>

thank you so much, with your last command, i'm correctly running kibana on my localhost:5601.  
Now i can go on in kibana plugin development.

---

<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:** [July 21, 2021, 3:54pm UTC](https://discuss.elastic.co/t/kbn-es-development-yarn-es-snapshot-doesnt-work/276798/8 "2021-07-21T15:54:54Z")

</div>

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