build-push-action: Failure due to data exceeding the limit of 491994 byte
Contributing guidelines
- I’ve read the contributing guidelines and wholeheartedly agree
I’ve found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
Starting to encounter this issue when running the action:
Error: buildx failed with: ERROR: failed to solve: Internal: rpc error: code = Internal desc = received 4294967293-bytes data exceeding the limit 491994 bytes
It started after I added the load: true parameter to my action but I didn’t manage to reproduce it to know if that is indeed what triggered it, when it fails a rerun is always successful afterwards which isn’t expected.
Expected behaviour
Build should run smoothly without this error
Actual behaviour
Getting this error in the beginning of the docker build:
Error: buildx failed with: ERROR: failed to solve: Internal: rpc error: code = Internal desc = received 4294967293-bytes data exceeding the limit 491994 bytes
When rerunning it the build is successful
Repository URL
No response
Workflow run URL
No response
YAML workflow
- name: Build image
uses: docker/build-push-action@v6
with:
push: ${{ inputs.push_image }}
context: ./${{ inputs.image_path }}
load: ${{ inputs.load }}
provenance: false
tags: |
${{ inputs.docker_repo }}/${{ env.NAME }}:rc-${{ env.TAG }}
build-args: |
GIT_BRANCH=${{ inputs.branch }}
GIT_REPO=${{ github.repository }}
GIT_TAG=${{ env.TAG }}
${{ inputs.args }}
target: ${{ inputs.target }}
shm-size: 4g
file: ./${{ inputs.image_path }}/${{ inputs.dockerfile_name }}
secret-files: |
"pip-conf=${{ env.PYPI_HOME }}/.pip/pip.conf"
"netrc=${{ env.PYPI_HOME }}/.netrc"
cache-from: ${{ env.CACHE_FROM }}
cache-to: ${{ env.CACHE_TO }}
Workflow logs
2024-11-13T09:42:10.6274606Z
2024-11-13T09:42:10.6275552Z #9 [ 1/17] FROM gcr.io/<repo>/cuda:cuda12.2.0-base-ubuntu22.04-py310@sha256:91f19aa3fcb87600d933a7b721ab74add6f2861f5a388e76917bdbf9532d033f
2024-11-13T09:42:10.6277190Z #9 resolve gcr.io/<repo>/cuda:cuda12.2.0-base-ubuntu22.04-py310@sha256:91f19aa3fcb87600d933a7b721ab74add6f2861f5a388e76917bdbf9532d033f done
2024-11-13T09:42:10.6278009Z #9 DONE 0.0s
2024-11-13T09:42:10.6278155Z
2024-11-13T09:42:10.6278361Z #10 importing cache manifest from local:11625040072298951821
2024-11-13T09:42:10.6279312Z #10 inferred cache manifest type: application/vnd.oci.image.index.v1+json done
2024-11-13T09:42:10.7453819Z #10 DONE 0.1s
2024-11-13T09:42:10.7454639Z
2024-11-13T09:42:10.7455017Z #8 [internal] load build context
2024-11-13T09:42:15.0605981Z #8 transferring context: 627.95MB 4.4s
2024-11-13T09:42:15.4751102Z #8 transferring context: 675.39MB 4.8s done
2024-11-13T09:42:15.4752605Z #8 ERROR: rpc error: code = Internal desc = received 4294967272-bytes data exceeding the limit 426398 bytes
2024-11-13T09:42:15.4753410Z ------
2024-11-13T09:42:15.4753815Z > [internal] load build context:
2024-11-13T09:42:15.4754406Z ------
2024-11-13T09:42:15.4761878Z ERROR: failed to solve: Internal: rpc error: code = Internal desc = received 4294967272-bytes data exceeding the limit 426398 bytes
2024-11-13T09:42:15.4818235Z ##[group]Reference
2024-11-13T09:42:15.5800856Z builder-828661dc-b680-4e3d-84ab-8e499aa3a5ed/builder-828661dc-b680-4e3d-84ab-8e499aa3a5ed0/m9gqlgajeeqeq8odh49r0rf90
2024-11-13T09:42:15.5802806Z ##[endgroup]
2024-11-13T09:42:15.5803507Z ##[group]Check build summary support
2024-11-13T09:42:15.5805817Z Build summary supported!
2024-11-13T09:42:15.5807143Z ##[endgroup]
2024-11-13T09:42:15.5836255Z ##[error]buildx failed with: ERROR: failed to solve: Internal: rpc error: code = Internal desc = received 4294967272-bytes data exceeding the limit 426398 bytes
2024-11-13T09:42:15.5947391Z ##[group]Run dev-drprasad/delete-tag-and-release@v0.2.1
2024-11-13T09:42:15.5947798Z with:
2024-11-13T09:42:15.5948029Z delete_release: false
2024-11-13T09:42:15.5948314Z tag_name: v0.76.0
2024-11-13T09:42:15.5948552Z env:
2024-11-13T09:42:15.5948771Z NAME: <repo>
2024-11-13T09:42:15.5949033Z TAG: v0.76.0
2024-11-13T09:42:15.5949286Z PYPI_HOME: /home/runner
2024-11-13T09:42:15.5949938Z CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/_work/<repo>/<repo>/<creds.json>
2024-11-13T09:42:15.5951300Z GOOGLE_APPLICATION_CREDENTIALS: /home/runner/_work/<repo>/<repo>/<creds.json>
2024-11-13T09:42:15.5952278Z GOOGLE_GHA_CREDS_PATH: /home/runner/_work/<repo>/<repo>/<creds.json>
2024-11-13T09:42:15.5952908Z CLOUDSDK_CORE_PROJECT: <gcp-project>
2024-11-13T09:42:15.5953256Z CLOUDSDK_PROJECT: <gcp-project>
2024-11-13T09:42:15.5953578Z GCLOUD_PROJECT: <gcp-project>
2024-11-13T09:42:15.5953892Z GCP_PROJECT: <gcp-project>
2024-11-13T09:42:15.5954220Z GOOGLE_CLOUD_PROJECT: l<gcp-project>
2024-11-13T09:42:15.5954698Z CACHE_FROM: type=local,src=/var/lib/docker/<repo>/.buildx-cache
2024-11-13T09:42:15.5955371Z CACHE_TO: type=local,dest=/var/lib/docker/<repo>/.buildx-cache-new,mode=max
2024-11-13T09:42:15.5956025Z GITHUB_TOKEN: ***
2024-11-13T09:42:15.5956288Z ##[endgroup]
BuildKit logs
Added them as attachments
Additional info
buildkit-4.txt buildkit-3.txt buildkit-5.txt buildkit-2txt.txt buildkit-1.txt
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 18 (8 by maintainers)
Should be fixed with latest BuildKit stable (0.17.2)
This has been fixed in https://github.com/moby/buildkit/pull/5530, will be available in next patch release of BuildKit.
Error from our public repo: https://github.com/smartcontractkit/chainlink/actions/runs/11823026225/job/32941422115
@erez-levi For “Workflow logs” can you show the full logs of
name: Build imagestep please? Want to check builder information like: https://github.com/docker/build-push-action/actions/runs/11814963949/job/32915142064#step:6:121And
As well.