Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950962 - app-misc/elasticsearch-8.17.3 fails to start: java.lang.module.FindException: Module jdk.attach not found, required by org.elasticsearch.entitlement
Summary: app-misc/elasticsearch-8.17.3 fails to start: java.lang.module.FindException:...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-08 23:39 UTC by nebojsa
Modified: 2025-03-09 07:06 UTC (History)
2 users (show)

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


Attachments
Depend on jdk insted of on jre (elasticsearch.patch,389 bytes, patch)
2025-03-08 23:41 UTC, nebojsa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nebojsa 2025-03-08 23:39:17 UTC
elasticsearch-8.17 introduced dependency on jdk. Without a jdk installed, it fails to start complaining about jdk.attach module not found.
After installing virtual/jdk:17, it works without a problem

Reproducible: Always
Comment 1 nebojsa 2025-03-08 23:41:20 UTC
Created attachment 920379 [details, diff]
Depend on jdk insted of on jre
Comment 2 Volkmar W. Pogatzki 2025-03-09 07:06:56 UTC
(In reply to nebojsa from comment #0)
> elasticsearch-8.17 introduced dependency on jdk. Without a jdk installed, it
> fails to start complaining about jdk.attach module not found.
> After installing virtual/jdk:17, it works without a problem
> 
> Reproducible: Always

Usually if using virtual/jdk, it should go in DEPEND according to https://wiki.gentoo.org/wiki/Java_Developer_Guide#JDK.2FJRE.
In RDEPEND you put virtual/jre - and don't forget to inherit either of 
java-pkg-2.eclass of java-pkg-opt-2.eclass.