Yarn es snapshot command fails

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.

$ 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.

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.

Hello @wylie ,

Thanks for responding.

following are my proxy configurations.

yarn config set proxy http://username:password@host:port
yarn config set http-proxy http://username:password@host:port
yarn config set https-proxy http://username:password@host:port

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

git config --global http.proxy http://username:password@host:port
git config --global https.proxy http://username:password@host:port

Thanks.

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