-
Notifications
You must be signed in to change notification settings - Fork 26
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
Spring Boot bootBuildImage
fails with Invalid response received when loading image
#1392
Comments
Invalid response received when loading image
Invalid response received when loading image
bootBuildImage
fails with Invalid response received when loading image
I don't think that's related to arm. It seems to be having trouble fetching an image, but it's not clear from this message. Can you include the full build output? Other things you might want to try to troubleshoot:
|
Sure here you go:
|
Pruning did not help and calling it via
with error:
Tried switching to JDK17 but that also did not fix it, as pack cli choose to use JDK17 even though the project used JDK21. Log output of pack build
|
Hello @Ch4s3r ! I've run on your project (using a Mac M1 and Docker Desktop) and it worked
Then I've run and it failed, slightly differently than you though:
I'll try and see if it's related to Spring Boot plugins (probably) with @scottfrederick Question for you:
|
PS: I changed your
and I still got the
but then it continued fine
|
If you can, I 👍 @anthonydahanne's suggestion of using the buildpackless-tiny builder. It's going to work better/faster on your nice Mac hardware. That said, you should be able to build with the base builder, if you need something from it that's not included in tiny. The difference is that your MBP is going to be building under emulation/rosetta (depending on how you have Docker setup). In your That seems to be working, but then the JVM crashes which is very weird. Unfortunately, we can't get at the crash dump the JVM is generating. It's in the build container and that goes away. That seems to be a different error than what you're seeing when you build with the Spring Boot Tools though. In that case, the buildpacks are not even running. The issue with Spring Boot Tools maybe related to spring-projects/spring-boot#40697, but it's not totally clear. That issue has a hang, whereas you're getting a definitive failure. If you add the As a side note, what is your Docker install and what version are you using? Docker Desktop on Mac has had some major version updates recently and this has broken some things with the Spring integration. |
I can re-create this also, using the provided sample and by modifying Spring Boot's integration tests to use a similar configuration. I'll see what I can figure out on the Spring Boot side. |
I'm pretty sure this has to do with the count of layers in the builder image and the specified buildpack image. We've seen issues like this before. The Paketo builder has 100+ layers, and The workaround is what Anthony and Daniel mentioned above - start with a buildpack-less builder. This works for me:
|
I was just using the base setup that is set per default when running
I was aware of some issues that popped up already as there was a change with layer naming. Is there any estimate when java will get updated in the default builder When setting
But with the new java version it works nicely, maybe we can change then for java apps to the tiny builder?
This also works for me, when using |
Can you give the full build output when this happens? This is usually something that happens when images/binaries get mixed up. I'd like to look into it and make sure we don't have a problem with the multi-arch image. Thanks! |
Can't reproduce it anymore, tried also older versions of |
Works as expected now. Thanks for looking into it to everyone who contributed. |
Cannot build docker image with spring boot's
bootBuildImage
, when adding the latest java buildpack (13.0.1
).Expected Behavior
A docker image is created.
Current Behavior
./gradlew clean bootBuildImage
results inInvalid response received when loading image "pack.local/builder/voglnshknh:latest"
Steps to Reproduce
13.0.1
./gradlew clean bootBuildImage
Motivations
Wanted to try out the fix for activeprocessorcount and the this build is the first one for dual stack support with arm and this could be related.
Device used: M3 aarch64
The text was updated successfully, but these errors were encountered: