# Issue in building Kibana rpm 7.0.1 from src

**URL:** <https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606>\
**Category:** Kibana\
**Created:** [March 23, 2020, 7:14am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606 "2020-03-23T07:14:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 23, 2020, 7:14am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/1 "2020-03-23T07:14:28Z")

</div>

Hi,  
I am trying to build Kibana rpm 7.0.1 from src code on CentOS 7.4.  
I am facing issue while running `yarn kbn bootstrap`. I have also followed [https://github.com/elastic/kibana/issues/47214](https://github.com/elastic/kibana/issues/47214) .But it did not help me.  
Attached the screenshot of issue.

 ![kibana-issue](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88a8bae33133ef625a2ba03d4b48bf4ca39bf239.png)  
Can you please help me building Kibana rpm?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [March 23, 2020, 10:10am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/2 "2020-03-23T10:10:58Z")

</div>

Hi @chaitra_hegde

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`?  
Thanks

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 24, 2020, 9:25am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/3 "2020-03-24T09:25:15Z")

</div>

Hi,  
I have cloned the git repo on a server.. I do the build on a different server which does not have git. I have copied the content of the git repo onto this server. So is it mandatory to have git while building kibana?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [March 24, 2020, 12:22pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/4 "2020-03-24T12:22:10Z")

</div>

If I'm not wrong, yes it's required to build Kibana from the source. There are some tools that require git, probably is not 100% needed if you just need to build kibana from source, but I don't think we have options to avoid that at the moment

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 24, 2020, 12:54pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/5 "2020-03-24T12:54:47Z")

</div>

Hi @markov00 ,  
Thanks mark. I have installed git and `yarn kbn bootstrap --oss` step is done successfully.  
Now i am trying to build rpm, using `yarn build --rpm`.  
I have tried couple of more commands also with the build like  
`yarn build --oss`  
`yarn build --skip-node-download`  
`yarn build --skip-archives`  
But here I am facing the below issue and attached screenshot also.  
`│ERROR failure`  
`│ERROR Error: connect ETIMEDOUT 104.20.23.46:443`  
`│ at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)`

 ![kibana-build-issue](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d29f520e85d75349f510980805084a6fad7e6303.png)

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [March 24, 2020, 1:34pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/6 "2020-03-24T13:34:58Z")

</div>

have you tried `yarn build --oss --skip-node-download` ?  
That error means that we cannot connect to the internet to download the node.js binaries files required for each platforms, adding also the `--skip-node-download` to `--oss` it should do the trick

Are you looking to build kibana for all supported platform or just for the current one?

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 24, 2020, 1:57pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/7 "2020-03-24T13:57:47Z")

</div>

Hi @markov00  
I have tried the command which you mentioned previously. But facing the same issue. I have attached the screenshot for the same.

 ![kibana-oss-build-issue](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aec01635aa645f0b4683ac8ddb585b21d222e82a.png)  
I am looking for building kibana oss rpm for CentOS-7, CentOS-8.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [March 24, 2020, 3:01pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/8 "2020-03-24T15:01:39Z")

</div>

I've checked on our source code, but we you cannot build Kibana in a air-gapped environment because, you can "skip" the node download but we are still connecting to one of our endpoint to check the SHA of the used node version.

Don't you have the possibility to connect that machine to the internet? you can eventually build Kibana on the same machine where you cloned the code (if you have cloned it from a remote github url), build your rpm there and then use them on your machines.  
You can even build kibana on another machine and just transfer the build.

I'm assuming you are changed something in the code, if not you can use directly the our RPM package: [https://www.elastic.co/downloads/past-releases/kibana-7-0-1](https://www.elastic.co/downloads/past-releases/kibana-7-0-1)

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 26, 2020, 4:47am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/9 "2020-03-26T04:47:35Z")

</div>

Hi @markov00  
Proxy is configured in this server. So I can reach the internet. I am able to download other things from internet using the proxy. So what might be issue in Kibana case?

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 27, 2020, 9:26am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/10 "2020-03-27T09:26:20Z")

</div>

Hi,  
I have commented out the SHA check. I downloaded node-js darwin, linux, window files manually in specific directory. I have used `--skip-node-download`.  
I am able to proceed further. I am able to build tar, zip files of Kibana. But now in creating rpm task the build is failing. There are no detailed logs even in debug/verbose mode. I have attached the same. Please let me know if I am missing some thing.  
I have used `yarn build --rpm -v --skip-node-download --oss --skip-archives --release` command for building.

```auto
     info [kibana-oss] Creating rpm package
       │ debg calling fpm with args: [ '--force',
       │ '-t',
       │ 'rpm',
       │ '--package',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/target/NAME-7.0.1-ARCH.TYPE',
       │ '-s',
       │ 'dir',
       │ '--name',
       │ 'kibana-oss',
       │ '--description',
       │ 'Explore and visualize your Elasticsearch data',
       │ '--version',
       │ '7.0.1',
       │ '--url',
       │ 'https://www.elastic.co',
       │ '--vendor',
       │ 'Elasticsearch, Inc.',
       │ '--maintainer',
       │ 'Kibana Team <info@elastic.co>',
       │ '--license',
       │ 'ASL 2.0',
       │ '--conflicts',
       │ 'kibana',
       │ '--after-install',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/post_install.sh',
       │ '--before-install',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh',
       │ '--before-remove',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh',
       │ '--after-remove',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh',
       │ '--config-files',
       │ '/etc/kibana/kibana.yml',
       │ '--template-value',
       │ 'user=kibana',
       │ '--template-value',
       │ 'group=kibana',
       │ '--template-value',
       │ 'optimizeDir=/usr/share/kibana/optimize',
       │ '--template-value',
       │ 'configDir=/etc/kibana',
       │ '--template-value',
       │ 'pluginsDir=/usr/share/kibana/plugins',
       │ '--template-value',
       │ 'dataDir=/var/lib/kibana',
       │ '--exclude',
       │ 'usr/share/kibana/config',
       │ '--exclude',
       │ 'usr/share/kibana/data',
       │ '--architecture',
       │ 'x86_64',
       │ '--rpm-os',
       │ 'linux',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/=/usr/share/kibana/',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/config/=/etc/kibana/',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/data/=/var/lib/kibana/',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/service_templates/sysv/etc/=/etc/',
       │ '/home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/service_templates/systemd/etc/=/etc/' ]
       │ sill $ fpm --force -t rpm --package /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/target/NAME-7.0.1-ARCH.TYPE -s dir --name kibana-oss --description Explore and visualize your Elasticsearch data --version 7.0.1 --url https://www.elastic.co --vendor Elasticsearch, Inc. --maintainer Kibana Team <info@elastic.co> --license ASL 2.0 --conflicts kibana --after-install /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/post_install.sh --before-install /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh --before-remove /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh --after-remove /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh --config-files /etc/kibana/kibana.yml --template-value user=kibana --template-value group=kibana --template-value optimizeDir=/usr/share/kibana/optimize --template-value configDir=/etc/kibana --template-value pluginsDir=/usr/share/kibana/plugins --template-value dataDir=/var/lib/kibana --exclude usr/share/kibana/config --exclude usr/share/kibana/data --architecture x86_64 --rpm-os linux /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/=/usr/share/kibana/ /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/config/=/etc/kibana/ /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/build/oss/kibana-7.0.1-linux-x86_64/data/=/var/lib/kibana/ /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/service_templates/sysv/etc/=/etc/ /home/cloud-user/git-kibana/CSF-ELASTIC-KIBANA-MIRROR/src/dev/build/tasks/os_packages/service_templates/systemd/etc/=/etc/
       │ERROR failure
       │ERROR Error: spawn fpm ENOENT
       │ at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
       │ at onErrorNT (internal/child_process.js:415:16)
       │ at process._tickCallback (internal/process/next_tick.js:63:19)

    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

---

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [March 30, 2020, 4:30am UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/11 "2020-03-30T04:30:12Z")

</div>

Hi,  
I have installed fpm package. I am able to build kibana-oss rpm.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [March 31, 2020, 9:04pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/12 "2020-03-31T21:04:59Z")

</div>

Awesome, nice to hear that you managed to build everything

---

<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:** [April 28, 2020, 9:05pm UTC](https://discuss.elastic.co/t/issue-in-building-kibana-rpm-7-0-1-from-src/224606/13 "2020-04-28T21:05:01Z")

</div>

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