Package Details: elasticsearch 9.1.5-1

Git Clone URL: https://aur.archlinux.org/elasticsearch.git (read-only, click to copy)
Package Base: elasticsearch
Description: Free and Open, Distributed, RESTful Search Engine
Upstream URL: https://www.elastic.co/elasticsearch/
Licenses: custom:Elastic-2.0
Conflicts: elasticsearch-bin, elasticsearch7
Provides: elasticsearch
Submitter: hashworks
Maintainer: ipaqmaster
Last Packager: ipaqmaster
Votes: 10
Popularity: 0.003892
First Submitted: 2022-01-08 16:30 (UTC)
Last Updated: 2025-10-07 16:52 (UTC)

Dependencies (2)

Required by (18)

Sources (9)

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 Next › Last »

mailme_gx commented on 2022-12-15 02:39 (UTC)

I can confirm to build the package I needed java-17-openJDK as the latest version (19) gave the same error.

I also upgraded to ES 8.5.3 and the service failed to start due to timeouts, I noticed the error

elasticsearch.service: Got notification message from PID 180914, but reception only permitted for main PID 180853

adding the below to the [Service] section of the file /usr/lib/systemd/system/elasticsearch.service resolved this and now its build and runs fine

NotifyAccess=all
TimeoutStartSec=60

Hope this helps.

gth commented on 2022-12-06 10:29 (UTC)

I had the same error with java-19-openjdk. For me it worked using the java-17-openjdk: sudo archlinux-java set java-17-openjdk

Maybe this has something to do with a missing gradle compatiblity with java-18-openjdk: https://github.com/gradle/gradle/issues/20372

At least on my machine it seems like gradle version 7.5.1 is used and this version should not be compatible with java-19 according to the upper link.

HLFH commented on 2022-12-05 10:45 (UTC) (edited on 2022-12-05 17:05 (UTC) by HLFH)

@chovy Did you try removing the cache? https://github.com/elastic/elasticsearch/issues/91264
Normally, the bug you are mentioning is no longer present in version 8.5.2.

chovy commented on 2022-12-04 12:41 (UTC)

Still getting it ith 19:

==> Starting build()...
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_settings generic class cache for settings file '/home/ettinger/.cache/yay/elasticsearch/src/elasticsearch-8.5.2/settings.gradle' (/home/ettinger/.gradle/caches/7.5.1/scripts/5to744it9kqg1iod85bp73rh8).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: elasticsearch

HLFH commented on 2022-12-04 10:10 (UTC)

@chovy What is your default Java environment? It seems you have put it to java-8-openjdk? Can you set it at least to java-17-openjdk or above?

archlinux-java status
Available Java environments:
  java-17-openjdk
  java-18-openjdk
  java-19-openjdk (default)
sudo archlinux-java set java-19-openjdk

chovy commented on 2022-12-03 22:20 (UTC)

Still getting same error:

==> Starting build()...
Starting a Gradle Daemon (subsequent builds will be faster)
Could not write standard input to Gradle build daemon.
java.io.IOException: Stream closed
        at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
        at java.io.OutputStream.write(OutputStream.java:116)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:68)
        at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:53)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html
Process command line: /usr/lib/jvm/java-8-openjdk/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/ettinger/.gradle/wrapper/dists/gradle-7.5.1-all/1ehga6e77gqps5uk2kc5kf1vc/gradle-7.5.1/lib/gradle-launcher-7.5.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.5.1
Please read the following process output to find out more:
-----------------------
Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: elasticsearch

HLFH commented on 2022-12-03 22:00 (UTC)

@chovy Elasticsearch has been updated to 8.5.2. Try the last version of this package which relies on jdk19-openjdk.
And if you have issues with jdk18-openjdk, you should post it there >> https://aur.archlinux.org/packages/jdk18-openjdk.

chovy commented on 2022-12-03 21:14 (UTC)

Starting a Gradle Daemon (subsequent builds will be faster)
Could not write standard input to Gradle build daemon.
java.io.IOException: Broken pipe
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:326)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:68)
        at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:53)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html
Process command line: /usr/lib/jvm/java-8-openjdk/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/ettinger/.gradle/wrapper/dists/gradle-7.5.1-all/1ehga6e77gqps5uk2kc5kf1vc/gradle-7.5.1/lib/gradle-launcher-7.5.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.5.1
Please read the following process output to find out more:
-----------------------
Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: elasticsearch

chovy commented on 2022-12-03 21:11 (UTC)

==> ERROR: A failure occurred in build(). Aborting... -> error making: java18-openjdk (jre18-openjdk-headless jre18-openjdk jdk18-openjdk

How do I fix this?

HLFH commented on 2022-11-25 14:39 (UTC)

@chovy Well you cannot make java18-openjdk with java19-openjdk.