Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778044 - app-misc/elasticsearch-7.10.2 elasticsearch-systemd-pre-exec[4614]: could not find java in bundled jdk at /usr/share/elasticsearch/jdk/bin/java
Summary: app-misc/elasticsearch-7.10.2 elasticsearch-systemd-pre-exec[4614]: could not...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-25 01:28 UTC by Alessandro Barbieri
Modified: 2022-04-13 06:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-25 01:28:06 UTC
systemctl start elasticsearch.service fails and gives the error
elasticsearch-systemd-pre-exec[4614]: could not find java in bundled jdk at /usr/share/elasticsearch/jdk/bin/java

/usr/share/elasticsearch/ doesn't contain any folder jdk
Comment 1 Andrew Udvare 2021-08-20 23:21:14 UTC
Workaround on systemd:

Install OpenJDK 11 then in /etc/systemd/system/elasticsearch.service.d/java.conf , put the correct JAVA_HOME (ES_JAVA_HOME is preferred by Elasticsearch):

[Service]
Environment="ES_JAVA_HOME=/opt/openjdk-bin-11"

In /etc/elasticsearch/jvm.options , comment out the Xlog line around line ~92. Otherwise ES will not start.

Then run `systemctl daemon-reload` and start the service.