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
Formula elasticsearch@6 isn't working after openjdk has updated to 18 #100260
Comments
As a temporary solution, I had to create a local formula forcing the OpenJDK dependency to @17 and it's working right now. |
An easier solution is setting |
Saving this in case anyone else has this problem in the future. I was unable to launch elasticsearch@6 because of Java 18 compatibility issues, so I had to install the JDK 17 from here, and make sure that it was found first in the path: |
Alternative option: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
How do you make I've made:
Then starting manually ES with the But it won't work when I start ES from another session or through
|
I've finally made it work, but I'm not sure this is the right call: I've edited the service plist at <key>ProgramArguments</key>
<array>
<string>/usr/local/opt/elasticsearch@6/bin/elasticsearch</string>
</array>
<key>EnvironmentVariables</key>
<dict>
+ <key>JAVA_HOME</key>
+ <string>'/usr/libexec/java_home -v 17'</string>
</dict> I had to edit the plist in the Cellar folder instead of the one in |
I was having the same problem using brew services start elasticsearch@6. Thanks @inkstak ! |
@inkstak I've tried to edit the same file as you did but I keep having the same error:
|
That's akward: ES seems to run without any issue after booting, but I cannot start it manually. Lastly I tried to revert changes on the plist file and remove openjdk while keeping openjdk@17.
With only one version of java running locally, it seems to work:
However, that's not a permanent solution:
It'll keep looking for a better approach. |
You also need to set JAVA_HOME in your shell if you want to start elasticsearch manually. |
I'm closing this since the formula is deprecated. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I'm trying to run elasticsearch@6 after I've run
brew update
.What happened (include all command output)?
After
brew update
, the current version ofopenjdk
was changed to 18 andelasticsearch@6
formula just depends ofopenjdk
instead of passing a specific version of that (as was @17 7 days ago).With this change, I started to receive the follow error and elasticsearch is not running anymore:
The text was updated successfully, but these errors were encountered: