# Kibana build taking forever to complete

**URL:** <https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [June 8, 2021, 12:36pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297 "2021-06-08T12:36:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![niravk](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@niravk](https://discuss.elastic.co/u/niravk)\
**Post date:** [June 8, 2021, 12:36pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/1 "2021-06-08T12:36:32Z")

</div>

I am trying to build the Kibana locally in my CentOS VM using the yarn build command. However, it is taking too long for the build process to complete(~13 hours). I am wondering, if I am doing something wrong or is there a way to speed this build process?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 8, 2021, 2:41pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/2 "2021-06-08T14:41:29Z")

</div>

Yes, running Kibana in development is slow, but it should _not_ be as slow as you're experiencing. I wonder if something is wrong with your development environment. Could you check if `git` is available for the user running `yarn kbn bootstrap` and could you check the output of `git rev-parse --git-dir` ? What do the logs say ?

cc @jbudz

---

<div class="post-metadata">

**Author:** ![niravk](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@niravk](https://discuss.elastic.co/u/niravk)\
**Post date:** [June 8, 2021, 3:32pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/3 "2021-06-08T15:32:15Z")

</div>

Thanks for responding.  
Yes `git` is available for the user running the `yarn kbn bootstrap`. The output of the `git rev-parse --git-dir` when I ran from the kibana repo directory is:

```auto
[root@centos7 kibana]# git rev-parse --git-dir
.git
[root@centos7 kibana]#

```

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [June 8, 2021, 5:40pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/4 "2021-06-08T17:40:44Z")

</div>

It should take about an hour on SSDs - longer for slower hardrives. Can you share more information on the steps that are slow?

---

<div class="post-metadata">

**Author:** ![niravk](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@niravk](https://discuss.elastic.co/u/niravk)\
**Post date:** [June 9, 2021, 4:19pm UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/5 "2021-06-09T16:19:05Z")

</div>

@jbudz, sure I will try to get the logs for `yarn build` and let you know. Also, I am wondering if there is any system or H/W specifications/recommendations to be used for building kibana?

---

<div class="post-metadata">

**Author:** ![niravk](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@niravk](https://discuss.elastic.co/u/niravk)\
**Post date:** [June 22, 2021, 11:13am UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/6 "2021-06-22T11:13:27Z")

</div>

Increasing the system specifications and using SSD reduced the build time to ~1.5 hours. Thanks @jbudz

---

<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 20, 2021, 11:14am UTC](https://discuss.elastic.co/t/kibana-build-taking-forever-to-complete/275297/7 "2021-07-20T11:14:05Z")

</div>

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