buildkit: ERROR: failed to solve: DeadlineExceeded: context deadline exceeded
Sorry for the vague error message.
We have a docker image that runs some things. Most times, it runs fine. Occasionally, it errors at the very end with a vague error message that is not from the yml file but I think is from the docker image exiting/ending. (All our commands run fine in the container. It is failing after the last one completes).
We run the image from a github action, if that matter.
The question is:
- What is not being solved?
- What deadline is exceeded?
- Can it be increased?
- Is there some way of running the container in debug mode for more information?
Thanks in advanced.
2023-10-04T20:39:13.3582748Z #24 exporting to client directory
2023-10-04T20:39:14.5610603Z #24 copying files 28B
2023-10-04T20:39:19.7302573Z #24 copying files 1.75GB 5.2s
2023-10-04T20:39:24.6910750Z #24 copying files 3.81GB 10.2s
2023-10-04T20:39:29.7983597Z #24 copying files 5.89GB 15.3s
2023-10-04T20:39:35.6174985Z #24 copying files 7.41GB 21.1s
2023-10-04T20:39:49.8824772Z #24 copying files 7.69GB 35.4s
2023-10-04T20:39:54.8880765Z #24 copying files 10.02GB 40.4s
2023-10-04T20:40:04.0740589Z #24 copying files 10.52GB 49.4s done
2023-10-04T20:40:04.0741210Z #24 DONE 50.7s
2023-10-04T20:41:33.3139725Z ERROR: failed to solve: DeadlineExceeded: context deadline exceeded
2023-10-04T20:41:33.3615053Z ##[error]Process completed with exit code 1.
2023-10-04T20:41:33.4182323Z Cleaning up orphan processes
[epasveer@ws7-01 ~]$ docker --version
Docker version 20.10.8, build 3967b7d
[epasveer@ws7-01 ~]$
About this issue
- Original URL
- State: open
- Created 9 months ago
- Reactions: 2
- Comments: 28 (7 by maintainers)
I’m facing a similar issue on my Ubuntu 20.04.6 LTS servers. My os and docker/builkdit config:
I disabled garbage collection and enabled debug on buildkit level. My Dockerfile:
I use below command to build it:
Stack trace/error:
On buildkit container level I get:
I tried quite a lot of things already:
For us the problem happens when as a result of publishresults step we have > 450MB of data to copy/send, it happens in 98% of such cases. For other apps when we have ~100-200MB of data to transfer this problem on same os/docker/buildkit configuration happens very rarely, for ~2% of cases.
Any hints will be really appreciated! 😃
i saw @tonistiigi suggesting it before, simple as that:
@crazy-max iiuc that function isn’t really called in local export as that would call
NewFSSyncTargetDir