Netflix/conductor

Cannot build docker compose - gradle build error with "libnative-platform-file-events"

ojhawkins opened this issue · 2 comments

Describe the bug
Building Conductor fails with the following error:

21.64 Process command line: /usr/lib/jvm/java-17-openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/wrapper/dists/gradle-7.6.2-bin/6ot4hgy1mty27tup86cmng5lx/gradle-7.6.2/lib/gradle-launcher-7.6.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6.2
21.64 Please read the following process output to find out more:
21.64 -----------------------
21.64 #
21.64 # A fatal error has been detected by the Java Runtime Environment:
21.64 #
21.64 #  SIGSEGV (0xb) at pc=0x000000000002b1c0, pid=51, tid=54
21.64 #
21.64 # JRE version: OpenJDK Runtime Environment (17.0.9+8) (build 17.0.9+8-alpine-r0)
21.64 # Java VM: OpenJDK 64-Bit Server VM (17.0.9+8-alpine-r0, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
21.64 # Problematic frame:
21.64 # C  [libnative-platform-file-events.so+0x2eb8c]  _init+0x39e4
21.64 #
21.64 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

Full output:


[+] Building 161.0s (24/33)
 => [conductor-server internal] load build definition from Dockerfile                                                                                  0.0s
 => => transferring dockerfile: 2.56kB                                                                                                                 0.0s
 => [conductor-server internal] load .dockerignore                                                                                                     0.0s
 => => transferring context: 147B                                                                                                                      0.0s
 => [conductor-server internal] load metadata for docker.io/library/alpine:3.18                                                                        3.2s
 => [conductor-server internal] load build context                                                                                                     0.1s
 => => transferring context: 378.10kB                                                                                                                  0.1s
 => [conductor-server builder  1/20] FROM docker.io/library/alpine:3.18@sha256:34871e7290500828b39e22294660bee86d966bc0017544e848dd9a255cdf59e0        0.0s
 => CACHED [conductor-server builder  2/20] RUN apk add openjdk17                                                                                      0.0s
 => CACHED [conductor-server builder  3/20] RUN apk add git                                                                                            0.0s
 => CACHED [conductor-server builder  4/20] RUN apk add --update nodejs npm yarn                                                                       0.0s
 => [conductor-server builder  5/20] COPY . /conductor                                                                                                 0.4s
 => CACHED [conductor-server stage-1  3/12] RUN apk add nginx                                                                                          0.0s
 => CACHED [conductor-server stage-1  4/12] RUN mkdir -p /app/config /app/logs /app/libs                                                               0.0s
 => CACHED [conductor-server stage-1  5/12] COPY docker/server/bin /app                                                                                0.0s
 => CACHED [conductor-server stage-1  6/12] COPY docker/server/config /app/config                                                                      0.0s
 => [conductor-server builder  6/20] WORKDIR /conductor/ui                                                                                             0.0s
 => [conductor-server builder  7/20] RUN yarn install && cp -r node_modules/monaco-editor public/ && yarn build                                      129.1s
 => [conductor-server builder  8/20] RUN ls -ltr                                                                                                       0.3s
 => [conductor-server builder  9/20] RUN echo "Done building UI"                                                                                       0.2s
 => [conductor-server builder 10/20] RUN mkdir server-build                                                                                            0.2s
 => [conductor-server builder 11/20] WORKDIR  server-build                                                                                             0.0s
 => [conductor-server builder 12/20] RUN ls -ltr                                                                                                       0.2s
 => [conductor-server builder 13/20] RUN git clone https://github.com/Netflix/conductor-community.git                                                  5.3s
 => [conductor-server builder 14/20] WORKDIR conductor-community                                                                                       0.0s
 => [conductor-server builder 15/20] RUN ls -ltr                                                                                                       0.1s
 => ERROR [conductor-server builder 16/20] RUN ./gradlew build -x test --stacktrace                                                                   21.8s
------
 > [conductor-server builder 16/20] RUN ./gradlew build -x test --stacktrace:
0.370 Downloading https://services.gradle.org/distributions/gradle-7.6.2-bin.zip
2.101 ...........10%............20%...........30%............40%............50%...........60%............70%............80%...........90%............100%
21.47
21.47 Welcome to Gradle 7.6.2!
21.47
21.47 Here are the highlights of this release:
21.47  - Added support for Java 19.
21.47  - Introduced `--rerun` flag for individual task rerun.
21.47  - Improved dependency block for test suites to be strongly typed.
21.47  - Added a pluggable system for Java toolchains provisioning.
21.47
21.47 For more details see https://docs.gradle.org/7.6.2/release-notes.html
21.47
21.47 Starting a Gradle Daemon (subsequent builds will be faster)
21.63
21.63 FAILURE: Build failed with an exception.
21.63
21.63 * What went wrong:
21.63 Unable to start the daemon process.
21.63 This problem might be caused by incorrect configuration of the daemon.
21.63 For example, an unrecognized jvm option is used.
21.63 Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.6.2/userguide/gradle_daemon.html
21.63 Process command line: /usr/lib/jvm/java-17-openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/wrapper/dists/gradle-7.6.2-bin/6ot4hgy1mty27tup86cmng5lx/gradle-7.6.2/lib/gradle-launcher-7.6.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6.2
21.63 Please read the following process output to find out more:
21.63 -----------------------
21.63 #
21.63 # A fatal error has been detected by the Java Runtime Environment:
21.63 #
21.63 #  SIGSEGV (0xb) at pc=0x000000000002b1c0, pid=51, tid=54
21.63 #
21.63 # JRE version: OpenJDK Runtime Environment (17.0.9+8) (build 17.0.9+8-alpine-r0)
21.63 # Java VM: OpenJDK 64-Bit Server VM (17.0.9+8-alpine-r0, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
21.63 # Problematic frame:
21.63 # C  [libnative-platform-file-events.so+0x2eb8c]  _init+0x39e4
21.63 #
21.63 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
21.63 #
21.63 # An error report file with more information is saved as:
21.63 # /root/.gradle/daemon/7.6.2/hs_err_pid51.log
21.63 #
21.64 # If you would like to submit a bug report, please visit:
21.64 #   https://gitlab.alpinelinux.org/alpine/aports/issues
21.64 # The crash happened outside the Java Virtual Machine in native code.
21.64 # See problematic frame for where to report the bug.
21.64 #
21.64
21.64
21.64 * Try:
21.64 > Run with --info or --debug option to get more log output.
21.64 > Run with --scan to get full insights.
21.64
21.64 * Exception is:
21.64 org.gradle.api.GradleException: Unable to start the daemon process.
21.64 This problem might be caused by incorrect configuration of the daemon.
21.64 For example, an unrecognized jvm option is used.
21.64 Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.6.2/userguide/gradle_daemon.html
21.64 Process command line: /usr/lib/jvm/java-17-openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/wrapper/dists/gradle-7.6.2-bin/6ot4hgy1mty27tup86cmng5lx/gradle-7.6.2/lib/gradle-launcher-7.6.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6.2
21.64 Please read the following process output to find out more:
21.64 -----------------------
21.64 #
21.64 # A fatal error has been detected by the Java Runtime Environment:
21.64 #
21.64 #  SIGSEGV (0xb) at pc=0x000000000002b1c0, pid=51, tid=54
21.64 #
21.64 # JRE version: OpenJDK Runtime Environment (17.0.9+8) (build 17.0.9+8-alpine-r0)
21.64 # Java VM: OpenJDK 64-Bit Server VM (17.0.9+8-alpine-r0, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
21.64 # Problematic frame:
21.64 # C  [libnative-platform-file-events.so+0x2eb8c]  _init+0x39e4
21.64 #
21.64 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
21.64 #
21.64 # An error report file with more information is saved as:
21.64 # /root/.gradle/daemon/7.6.2/hs_err_pid51.log
21.64 #
21.64 # If you would like to submit a bug report, please visit:
21.64 #   https://gitlab.alpinelinux.org/alpine/aports/issues
21.64 # The crash happened outside the Java Virtual Machine in native code.
21.64 # See problematic frame for where to report the bug.
21.64 #
21.64
21.64 	at org.gradle.launcher.daemon.client.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:38)
21.64 	at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:181)
21.64 	at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:137)
21.64 	at org.gradle.launcher.daemon.client.DefaultDaemonConnector.doStartDaemon(DefaultDaemonConnector.java:222)
21.64 	at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:216)
21.64 	at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:164)
21.64 	at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:99)
21.64 	at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:57)
21.64 	at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:210)
21.64 	at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:259)
21.64 	at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:230)
21.64 	at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:82)
21.64 	at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:30)
21.64 	at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:96)
21.64 	at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:40)
21.64 	at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:44)
21.64 	at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:26)
21.64 	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:41)
21.64 	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:26)
21.64 	at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:361)
21.64 	at org.gradle.launcher.Main.doAction(Main.java:35)
21.64 	at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:50)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21.64 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21.64 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21.64 	at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
21.64 	at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21.64 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21.64 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21.64 	at org.gradle.launcher.GradleMain.main(GradleMain.java:34)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21.64 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21.64 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21.64 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21.64 	at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:35)
21.64 	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:110)
21.64 	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:66)
21.64
21.64
21.64 * Get more help at https://help.gradle.org
------
failed to solve: process "/bin/sh -c ./gradlew build -x test --stacktrace" did not complete successfully: exit code: 1

Details
Conductor version: v3.15.0
⭐️ Using all of the default configuration for the below provided in the docker-compose file
Persistence implementation: Cassandra, Postgres, MySQL, Dynomite etc
Queue implementation: Postgres, MySQL, Dynoqueues etc
Lock: Redis or Zookeeper?
Workflow definition:
Task definition:
Event handler definition:

To Reproduce
Steps to reproduce the behavior:

  1. clone conductor
    git clone https://github.com/Netflix/conductor.git
  2. checkout tag v3.15.0
    git checkout tags/v3.15.0
  3. build the docker compose
cd docker
docker-compose build
  1. See error

Expected behavior
The build completes successfully

Screenshots
Please see the output

Additional context
Building on a macbook air m2 - macOS Ventura 13.4.1 (c)

Hey!

I am also having the same issue on a M1 Pro, I think this might be related gradle/gradle#24875

Heya, I have also experienced this issue on a Macbook Pro M1 Ventura 13.4.1