Skip to content

"yarn es snapshot" fails on Windows #20063

@blfrantz

Description

@blfrantz

Kibana version: Latest master (92245ac)

Elasticsearch version: 7.0.0-alpha1 snapshot

OS version: Windows 10

Describe the bug:
After syncing the kibana source (first time in a few days), yarn es snapshot fails for me as follows:

> yarn es snapshot
yarn run v1.6.0
$ node scripts/es snapshot
 info  Installing from snapshot
   │ info  version: 7.0.0-alpha1
   │ info  install path: F:\CodingProjects\kibana\kibana\.es\7.0.0-alpha1
   │ info  license: basic
   │ info  downloading from https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz
   │ info  etags match, using cache from 2018-06-19T23:38:11.474Z
   │ info  install directory already exists, removing
   │ info  extracting F:\CodingProjects\kibana\kibana\.es\cache\elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz
   │ info  extracted to F:\CodingProjects\kibana\kibana\.es\7.0.0-alpha1
   │ info  setting bootstrap password to changeme
   │ERROR  Unhandled error
   │ERROR  Error: spawn ./bin/elasticsearch-keystore.bat ENOENT
   │           at notFoundError (F:\CodingProjects\kibana\kibana\packages\kbn-es\node_modules\cross-spawn\lib\enoent.js:6:26)
   │           at verifyENOENT (F:\CodingProjects\kibana\kibana\packages\kbn-es\node_modules\cross-spawn\lib\enoent.js:40:16)
   │           at ChildProcess.cp.emit (F:\CodingProjects\kibana\kibana\packages\kbn-es\node_modules\cross-spawn\lib\enoent.js:27:25)
   │           at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
error Command failed with exit code 1.

It appears there is no elasticsearch-keystore.bat file in the .tar.gz file, yet there is in the .zip version. But it appears nothing has changed in kbn-es in the time that this stopped working, so I'm not sure how this used to work. Am I missing something? I could've sworn I didn't do anything different a few days ago...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:OperationsKibana-Operations TeambugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions