New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageGenerationFailureException: Exit code: 1 when creating native image using -Dquarkus.native.container-build=true #27603
Comments
There should be more information in the stacktrace, can you please add it? |
@geoand there isn't much more than that. There is this exception, which is thrown because I don't have podman installed. But as I could see in the Quarkus code, it's expected.
And this is the entire stack trace of the error that breaks the build.
|
Indeed there is no useful information there... |
@geoand it would probably help if we could see the stdout/err of the generated process. If you point me where this should be done, I can patch the Quarkus code and try it locally. |
Not sure what your asking exactly. If I were you, I would do |
@hbelmiro do you see any output like the following before the error?
If so, can you please post that part? |
It looks like the native image is not being generated.
|
That's an odd one, but I found a similar error in this Stackoverflow question. Is there anything particular about your docker env? Are you running the docker daemon locally? Note also this:
You probably have an extension missing to build the runtime container, once you get the native part working. |
@geoand @zakkak @galderz Thank you guys for your help. |
👌 |
Guys, I opened a PR to add this information to the documentation. |
Describe the bug
When I try to run the following command to build a native image:
The following error happens:
Expected behavior
The build complete without errors.
Actual behavior
The build fails with the above error.
How to Reproduce?
Run
mvn clean package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
in any Quarkus application.Output of
uname -a
orver
Linux 192.168.10.47 5.18.19-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Aug 21 15:52:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10) OpenJDK 64-Bit Server VM Temurin-11.0.15+10 (build 11.0.15+10, mixed mode)
GraalVM version (if different from Java)
Mandrel 22.1.0.0-Final
Quarkus version or git rev
2.11.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.8.6
Additional information
No response
The text was updated successfully, but these errors were encountered: