Closed patr1kt0th closed 1 year ago
/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel)
@patr1kt0th can you please try the following?
podman machine stop
ulimit -n 10240
podman machine start
and try building again?
FTR A similar issue was discussed in https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/.E2.9C.94.20Podman.20container.20builds.20on.20Mac.20M1.2FM2
@zakkak thanks a lot for the hint, you're a lifesaver 👍 After setting the limit I was able to successfully complete the build 🎆 Should I close the issue?
Describe the bug
Hi guys, I'm struggling (a lot) with building a native Linux executable on macOS (Sonoma 14.0). I can't complete the build with any of our microservices successfully, but I have the same issue with a "dummy" project generated via https://code.quarkus.io/, so I'll use this one for reference.
Please see the Actual behavior and How to Reproduce? sections for more details but basically, I'm unable to build a native Linux executable because of strange
Too many open files
andFeature ??? class not found on the classpath
exceptions.Thanks a lot for any kind of hints.
Expected behavior
All my colleagues running on Windows (11) and another colleague using macOS (Ventura 13.6) are able to build a native Linux executable, so instead of finishing the build with [INFO] BUILD FAILURE, I'd expect [INFO] BUILD SUCCESS.
Actual behavior
After running
quarkus build --native --no-tests -Dnative.container-build=true -Dquarkus.native.container-runtime=podman
I get:How to Reproduce?
Steps to reproduce:
code-with-quarkus
folderquarkus build --native --no-tests -Dnative.container-build=true -Dquarkus.native.container-runtime=podman
Output of
uname -a
orver
Darwin Patriks-MacBook-Pro.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "17.0.6" 2023-01-17 LTS OpenJDK Runtime Environment Zulu17.40+19-CA (build 17.0.6+10-LTS) OpenJDK 64-Bit Server VM Zulu17.40+19-CA (build 17.0.6+10-LTS, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.4.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /Users/patriktoth/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5 Java version: 17.0.6, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home Default locale: en_SK, platform encoding: UTF-8 OS name: "mac os x", version: "14.0", arch: "x86_64", family: "mac"
Additional information
podman version
podman machine inspect