# Yarn build fails

**URL:** <https://discuss.elastic.co/t/yarn-build-fails/281849>\
**Category:** Kibana\
**Created:** [August 18, 2021, 3:35pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849 "2021-08-18T15:35:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 18, 2021, 3:35pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/1 "2021-08-18T15:35:33Z")

</div>

Hello there,

I am trying to build archive for my custom plugin. I am following the process in the link below.

> **[Plugin tooling | Kibana Guide \[7.14\] | Elastic](https://www.elastic.co/guide/en/kibana/current/plugin-tooling.html)**

So, I generated the plugin with the generate\_plugin script but then it says that in order to use my plugin in production, I need to run yarn build to generate the archive of my plugin.

but it gives me following errors.

```auto
$ yarn build
yarn run v1.21.1
$ node scripts/build --all-platforms
 info [global] Verifying environment meets requirements
   │ succ Node.js version verified
   │ succ ✓ 0 sec

 info [global] Cleaning artifacts from previous builds
   │ debg Deleting patterns: [
   │ 'C:\\TEMP\\ELK-Development\\kibana\\build',
   │ 'C:\\TEMP\\ELK-Development\\kibana\\target',
   │ 'C:\\TEMP\\ELK-Development\\kibana\\.node_binaries'
   │ ]
   │ debg Deleted 1 files/directories
   │ succ ✓ 0 sec

 info [global] Downloading node.js builds for all platforms
   │ debg Downloading shasum values for node version 14.17.2 from https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v14.17.2/SHASUMS256.txt
   │ERROR failure 0 sec
   │ERROR Error: getaddrinfo ENOTFOUND us-central1-elastic-kibana-184716.cloudfunctions.net
   │ at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26)

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

```

Has anyone seen this error before?

Thank you!

---

<div class="post-metadata">

**Author:** ![GavinAnderegg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavinanderegg/32/91793_2.png) [@GavinAnderegg](https://discuss.elastic.co/u/GavinAnderegg)\
**Post date:** [August 18, 2021, 4:35pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/2 "2021-08-18T16:35:27Z")

</div>

Hi Akhil,

The `ENOTFOUND` error means that Node wasn't able to connect to the URL for the [shasum text file](https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v14.17.2/SHASUMS256.txt) from your computer. It's possible the server was down momentarily, or you were possibly having some connection issues at the time. Are you able to access the following URL in a browser?

[https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v14.17.2/SHASUMS256.txt](https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v14.17.2/SHASUMS256.txt)

If so, you may want to try again and see if it works now. I'm able to load this URL on my end.

If not, there may be something in your network settings preventing you from accessing this file.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 18, 2021, 4:58pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/3 "2021-08-18T16:58:54Z")

</div>

Hello @GavinAnderegg ,

Thanks for replying. I appreciate your help. I tried to access the URL in a browser.  
Is this the right content on this URL? Just confirming.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/6/7673ac50754bae91fd407010732a8134f1c70ad9.png)

I am behind corporate proxy and added some settings for yarn, node and Gitbash to bypass proxy.

Thank you,  
Akhil

---

<div class="post-metadata">

**Author:** ![GavinAnderegg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavinanderegg/32/91793_2.png) [@GavinAnderegg](https://discuss.elastic.co/u/GavinAnderegg)\
**Post date:** [August 18, 2021, 6:27pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/4 "2021-08-18T18:27:52Z")

</div>

Hi @Akhil2,

Yes, that is the same content I see when I visit the URL.

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 18, 2021, 7:10pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/5 "2021-08-18T19:10:55Z")

</div>

Thanks @GavinAnderegg. I am trying everything. I reset those yarn, npm and GitHub configs to bypass proxy again but same errors are coming up.

---

<div class="post-metadata">

**Author:** ![GavinAnderegg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavinanderegg/32/91793_2.png) [@GavinAnderegg](https://discuss.elastic.co/u/GavinAnderegg)\
**Post date:** [August 19, 2021, 11:11am UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/6 "2021-08-19T11:11:58Z")

</div>

Hi @Akhil2, sadly I'm not sure what else to try. The issue is likely in Bazel, the build system Kibana uses. It's possible this StackOverflow answer might help?

> <https://stackoverflow.com/questions/52311486/bazel-build-behind-proxy/52315366#52315366>

I'm currently having a lot of issues coming to grips with Bazel and the rest of the toolchain for plugin development, so you're definitely not alone here.

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 19, 2021, 3:59pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/7 "2021-08-19T15:59:08Z")

</div>

Thanks @GavinAnderegg for the guidance! I will definitely look into Stack Overflow answers.

---

<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 16, 2021, 3:59pm UTC](https://discuss.elastic.co/t/yarn-build-fails/281849/8 "2021-09-16T15:59:43Z")

</div>

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