New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Pack plugin download fails on Windows desktop #24570

Closed
ankitgupta07 opened this Issue May 9, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@ankitgupta07

ankitgupta07 commented May 9, 2017

Describe the feature:

Elasticsearch version: 5.2.2

Plugins installed: [X-Pack]

JVM version (java -version): java version "1.8.0_102"

OS version (uname -a if on a Unix-like system): Windows 10

Description of the problem including expected versus actual behavior: While trying to install X-pack plugin, ran into below error -

\Java\jdk1.8.0_102\bin\java.exe was unexpected at this time.```

**Steps to reproduce**:

Please include a *minimal* but *complete* recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc.  The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

 1. On windows machine, have your JAVA_HOME path have spaces in the directory path. In my case, JAVA_HOME was set to -

```echo %JAVA_HOME%
C:\Program Files (x86)\Java\jdk1.8.0_102```
 2. Issue the command - elasticsearch-plugin.bat install file:\\\<<Path to x-pack-5.2.2.zip>>
 3. Error - Java\jdk1.8.0_102\bin\java.exe was unexpected at this time.

**Provide logs (if relevant)**:
@dadoonet

This comment has been minimized.

Member

dadoonet commented May 9, 2017

I'd try to put java in a directory which name does not contain any special char like () or a space.

@jasontedor

This comment has been minimized.

Member

jasontedor commented May 9, 2017

Closed by 3f54ae6

@jasontedor jasontedor closed this May 9, 2017

@jasontedor

This comment has been minimized.

Member

jasontedor commented May 9, 2017

Move your Java installation to a directory that contains a single space, or apply the change 3f54ae6 to your local copy of elasticsearch-plugin.bat. This will be fixed in 5.4.1.

@ankitgupta07

This comment has been minimized.

ankitgupta07 commented May 9, 2017

Thanks for the fix @jasontedor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment