# Elasticsearch snapshot for starting Kibana as a developer

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135>\
**Category:** Kibana\
**Created:** [August 16, 2022, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135 "2022-08-16T05:36:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [August 16, 2022, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135/1 "2022-08-16T05:36:11Z")

</div>

To create a custom plugin, I  
1. I cloned the kibana git hub repo  
2. yarn kbn bootstrap ----\> was succesfull

The next step as per the documentation, ([Getting started | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/development-getting-started.html))

1. yarn es snapshot ---- \> error

```auto
[2022-08-15T09:42:45,344][ERROR][o.e.b.Elasticsearch] [localhost.localdomain] fatal exception while booting Elasticsearch
java.lang.RuntimeException: can not run elasticsearch as root
	at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:260) ~[elasticsearch-8.5.0-SNAPSHOT.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:166) ~[elasticsearch-8.5.0-SNAPSHOT.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:66) ~[elasticsearch-8.5.0-SNAPSHOT.jar:?]

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 16, 2022, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135/2 "2022-08-16T06:15:49Z")

</div>

> [@Sheereen](#):
>
> ```auto
> java.lang.RuntimeException: can not run elasticsearch as root
> 
> ```

You will need to make sure you are not root.

---

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [August 16, 2022, 6:36am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135/3 "2022-08-16T06:36:40Z")

</div>

I had downloaded the source code and done yarn kbn bootstrap as a root user.

So should I create another user for the machine and then start afresh from downloading the source code? If yes, is it good to do the same in /home/user-name directory ... or create another directory in /.

---

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [August 17, 2022, 5:56am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135/4 "2022-08-17T05:56:27Z")

</div>

I created a different user for my linux machine and in ./created a folder and git cloned the Kibana repo into it... and then did all the steps afresh from there.

---

<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:** [September 14, 2022, 5:56am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-for-starting-kibana-as-a-developer/312135/5 "2022-09-14T05:56:28Z")

</div>

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