-
Notifications
You must be signed in to change notification settings - Fork 21
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
bootBuildImage task hangs while saving docker image intermittently #312
Comments
@xuan-nguyen-swe I can run a similar configuration successfully, so I don't think this has anything to do with the buildpack. Does this also happen when you don't configure custom buildpacks, or only when you list the buildpacks shown above? Can you try this using the
|
@scottfrederick Thanks for your prompt reply. |
Could it be a network issue? When you don't set any buildpacks, it'll load those from the builder which is just a single image that's needed. When you put in the buildpacks, more network requests happen. It needs to go fetch those images. Maybe one of those requests is hanging? Maybe try |
No, I don't think so. It hangs at the last step to save the built image as local docker image. |
@scottfrederick @dmikusa I updated the original post with the easiest way to reproduce the bug. |
i have the exact same issue, just opened a ticket: spring-projects/spring-boot#34026 |
@fabioportieri what are you using for Docker (software/version)? When it's saving and your Docker becomes unresponsive, can you do other tasks with Docker? Like |
@xuan-nguyen-swe and @fabioportieri Can you try to reproduce the problem using the |
I will try to use cli and tell me result later. I am totally new to buildpacks so I need to check how to set it up. |
docker becomes completely unresponsive even from commandline, the only thing i can do is to restart the machine, the issue has been reproduced in two different windows machines (win10 and win11), as i said i will try to reproduce in a native ubuntu installation, in my case i had to do the following commands:
eventually stuck here, with docker unresponsive:
|
Thanks for trying that @fabioportieri. That confirms that the problem is not related to the Spring Boot plugins or the |
Thanks @fabioportieri for testing the issue with pack cli. |
@fabioportieri what are you using for Docker (software/version)? I assume Docker Desktop for Windows, but if you could confirm & let us know the specific version as well. If it's not the latest version, please update. Thanks |
yes, docker desktop, updated to latest version v4.16.3, for windows this is my docker info Client: Server: |
Hello, I've successfully built on a Windows 10 machine,
with that
and Docker For Windows v20.10.8 with
a fair number of times now: https://github.com/anthonydahanne/spring-boot-demo/actions/workflows/windows.yml @fabioportieri @xuan-nguyen-swe : I invite you to clone my repo and use your own machine as a runner, see if you still can reproduce your issues: the advantage of using GH actions is that it will allow us to investigate further and understand exactly under which conditions we can reproduce the issue. Without any additional context / logs / recorded builds, I'd say the issue does not happen anymore. Thanks! |
can we close the issue? |
I also confirm the same issue, I am using spring boot, mostly with AOT builds but I also reproduced that with non-aot build. |
Can you please share a project that makes docker hang, along with the command you used? |
./gradlew :clean :bootBuildImage
build.gradle.kts
and repeat from step 2 above until docker is frozen. I can reproduce the bug after 4 or 5 tries.Happens on both Spring Boot 3 and Spring Boot 2
console-log-spring-boot-3-success.txt
console-log-spring-boot-3-frozen.txt
The text was updated successfully, but these errors were encountered: