# Yarn es snapshot command fails

**URL:** <https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819>\
**Category:** Kibana\
**Created:** [July 15, 2021, 4:39pm UTC](https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819 "2021-07-15T16:39:01Z")\
**Posts on this page:** 4\
**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:** [July 15, 2021, 4:39pm UTC](https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819/1 "2021-07-15T16:39:01Z")

</div>

Hello all,

I have been struggling with setting up dev environment from a long time. Right now, I am behind corporate proxy. I have set up proxy settings for Yarn, NPM and Git but when I run yarn es snapshot, it gives me following errors.

```auto
$ yarn es snapshot
yarn run v1.21.1
$ node scripts/es snapshot
 info Installing from snapshot
   │ info version: 7.13.3
   │ info install path: C:\TEMP\kibana-development\developed-kibana\kibana\.es\7.13.3
   │ info license: basic
   │ info Downloading snapshot manifest from https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json
   │ warn ...failure, retrying in 5 seconds: request to https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json failed, reason: getaddrinfo ENOTFOUND storage.googleapis.com
   │ info ...retrying
   │ warn ...failure, retrying in 5 seconds: request to https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json failed, reason: getaddrinfo ENOTFOUND storage.googleapis.com
   │ info ...retrying
   │ warn ...failure, retrying in 5 seconds: request to https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json failed, reason: getaddrinfo ENOTFOUND storage.googleapis.com
   │ info ...retrying
   │ warn ...failure, retrying in 5 seconds: request to https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json failed, reason: getaddrinfo ENOTFOUND storage.googleapis.com
   │ info ...retrying
   │ERROR Unhandled error
   │ERROR FetchError: request to https://storage.googleapis.com/kibana-ci-es-snapshots-daily/7.13.3/manifest-latest-verified.json failed, reason: getaddrinfo ENOTFOUND storage.googleapis.com
   │ at ClientRequest.<anonymous> (C:\TEMP\kibana-development\developed-kibana\kibana\node_modules\node-fetch\lib\index.js:1461:11)
   │ at ClientRequest.emit (events.js:375:28)
   │ at TLSSocket.socketErrorListener (_http_client.js:475:9)
   │ at TLSSocket.emit (events.js:375:28)
   │ at emitErrorNT (internal/streams/destroy.js:106:8)
   │ at emitErrorCloseNT (internal/streams/destroy.js:74:3)
   │ at processTicksAndRejections (internal/process/task_queues.js:82:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

Am I still missing something? Is there any work around for this? Please help!

Thank you.

---

<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:** [July 15, 2021, 5:15pm UTC](https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819/2 "2021-07-15T17:15:43Z")

</div>

The `yarn es snapshot` command is a shortcut, but you can connect your development Kibana instance to any Elasticsearch instance on the same version. It does look like your proxy is rejecting the `storage.googleapis.com` location where the ES snapshots are located, so that's probably the first place to try.

---

<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:** [July 15, 2021, 5:30pm UTC](https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819/3 "2021-07-15T17:30:40Z")

</div>

Hello @wylie ,

Thanks for responding.

following are my proxy configurations.

yarn config set proxy [http://username:password@host](http://username:password@host):port  
yarn config set http-proxy [http://username:password@host](http://username:password@host):port  
yarn config set https-proxy [http://username:password@host](http://username:password@host):port

npm config set proxy [http://username:password@host](http://username:password@host):port  
npm config set http-proxy [http://username:password@host](http://username:password@host):port  
npm config set https-proxy [http://username:password@host](http://username:password@host):port  
npm set strict-ssl false

git config --global http.proxy [http://username:password@host](http://username:password@host):port  
git config --global https.proxy [http://username:password@host](http://username:password@host):port

Thanks.

---

<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:** [August 12, 2021, 5:31pm UTC](https://discuss.elastic.co/t/yarn-es-snapshot-command-fails/278819/4 "2021-08-12T17:31:34Z")

</div>

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