-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Clearer error message - installing windows service #33804
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
Conversation
The error message reports it can not find a file in a directory it was not looking for it in. I've updated the message so it makes it clearer what JAVA_HOME is set to and which directories it tried to find jvm.dll in
This is only a small change to wording, but I've signed the contributor's agreement as requested. |
Pinging @elastic/es-core-infra |
test this please |
I think that we will need manual testing here too since our PR CI does not currently cover Windows. |
I manually tested this to make sure it printed the error as I expected it to. The easiest way to test (if you have the correct version of java installed) is to change the value of JAVA_HOME to something wrong and then run. |
Thanks for the PR. I have tested now several scenarios on different Java versions (Java 8 and Java 10 with Elasticsearch 6.5.2) on Windows Server 2012R2. If
If I remove / rename
(which is raised by the JVM itself when Elasticsearch attempts to invoke So I wonder whether this change is actually needed as we never seem to hit this error condition. |
It's a while ago now, but I think the reason I got the message was I had two editions of java installed and JAVA_HOME was pointing at the wrong one. The folder existed, but the file did not or the directory structure in JAVA_HOME was different. Seeing the path in the error, would have helped me spot this. I would have found this helpful, but perhaps others would not. |
@elasticmachine test this please |
@elasticmachine test this please |
Just fyi: I have merged the latest master on your behalf to ensure all required PR checks can run successfully. No need to do anything on your end. |
The error message reports it can not find a file in a directory it was not looking for it in. I've updated the message so it makes it clearer what JAVA_HOME is set to and which directories it tried to find jvm.dll in
Thanks for your PR. I've merged it now and it will be released in Elasticsearch 7.1.0. |
Backported to |
The error message reports it can not find a file in a directory it was not looking for it in.
I've updated the message so it makes it clearer what JAVA_HOME is set to and which directories it tried to find jvm.dll in.
I spent more time than I should have done trying alternate values for JAVA_HOME to try and fix this error, so this error message should save others from this fate. Turns out I got this error because I had installed the client version of Java and not the SE version, and this puts jvm.dll in a different folder inside JAVA_HOME.