Package Details: elasticsearch-bin 8.15.2-0

Git Clone URL: https://aur.archlinux.org/elasticsearch-bin.git (read-only, click to copy)
Package Base: elasticsearch-bin
Description: Log analyzer. search, store and analyze logs
Upstream URL: https://github.com/elastic/elasticsearch
Licenses: ELv2
Submitter: thorko
Maintainer: thorko (VVL)
Last Packager: thorko
Votes: 2
Popularity: 0.65
First Submitted: 2022-07-19 06:51 (UTC)
Last Updated: 2024-09-27 09:16 (UTC)

Dependencies (2)

Required by (0)

Sources (6)

Latest Comments

bjo commented on 2024-01-20 12:42 (UTC)

It does not start:

"main" java.lang.NoClassDefFoundError: Could not initialize class java.security.Security
.ExceptionInInitializerError: Exception java.lang.InternalError: Error loading java.security file [in thread "main"]

Seems like it misses the java.security file somewhere.

RaK commented on 2024-01-03 11:31 (UTC)

The package still refers a lot to /opt/elasticsearch, and makes it hard to use ...

thorko commented on 2023-10-04 19:18 (UTC)

Thanks @ipaqmaster. I've added the patch.

ipaqmaster commented on 2023-10-04 11:27 (UTC)

The below diff seems to do the trick but this package has other problems. Everything keeps referring to /opt/elasticsearch including /opt/elasticsearch/bin/elasticsearch-keystore create but the service itself runs pointing to /etc/elasticsearch. May be a good idea for this package to take some of the config from https://aur.archlinux.org/packages/elasticsearch to help streamline the installation.

diff --git a/PKGBUILD b/PKGBUILD
index 38609e9..043b475 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,6 +26,9 @@ sha256sums=(
 package() {
     mkdir -p "${pkgdir}/opt"
     cp -R "${srcdir}/elasticsearch-${pkgver}" "${pkgdir}/opt/elasticsearch"
+    mkdir -p "${pkgdir}/etc/elasticsearch"
+    cp -R "${srcdir}/elasticsearch-${pkgver}/config/." "${pkgdir}/etc/elasticsearch/"
+    chmod 755 -R "${pkgdir}/opt/elasticsearch/jdk/bin" "${pkgdir}/opt/elasticsearch/jdk/lib"
     install -Dm0644 "elasticsearch.service" "${pkgdir}/etc/systemd/system/elasticsearch.service"
     install -Dm0644 "sysctl.conf" "${pkgdir}/usr/lib/sysctl.d/elasticsearch.conf"
     install -Dm0644 "users.conf" "${pkgdir}/usr/lib/sysusers.d/elasticsearch.conf"

HLFH commented on 2023-10-04 05:18 (UTC)

Same issue as sohlk.

sohlk commented on 2023-09-23 15:46 (UTC) (edited on 2023-09-23 15:50 (UTC) by sohlk)

start elasticsearch.service after install failed, seems like permission issue.

❯ systemctl start elasticsearch.service

❯ systemctl status elasticsearch.service

× elasticsearch.service - Elasticsearch
     Loaded: loaded (/etc/systemd/system/elasticsearch.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sat 2023-09-23 23:42:57 CST; 6s ago
   Duration: 19ms
       Docs: http://www.elastic.co
    Process: 424084 ExecStart=/opt/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid (code=exited, status=126)
   Main PID: 424084 (code=exited, status=126)
        CPU: 17ms

Sep 23 23:42:57 ArchLinux systemd[1]: Started Elasticsearch.
Sep 23 23:42:57 ArchLinux elasticsearch[424099]: /opt/elasticsearch/bin/elasticsearch-env: line 86: cd: /etc/elasticsearch: No such file or directory
Sep 23 23:42:57 ArchLinux elasticsearch[424084]: /opt/elasticsearch/bin/elasticsearch-cli: line 14: /opt/elasticsearch/jdk/bin/java: Permission denied
Sep 23 23:42:57 ArchLinux systemd[1]: elasticsearch.service: Main process exited, code=exited, status=126/n/a
Sep 23 23:42:57 ArchLinux systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

thorko commented on 2022-07-27 08:48 (UTC)

thx, I updated the sah256sum

kode54 commented on 2022-07-27 07:10 (UTC)

elasticsearch.service does not match the package sha256sum.