question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 Bad Request when pushing manifest to GCR using v1.0.2

See original GitHub issue

Behaviour

Steps to reproduce this issue

  1. Use docker/setup-buildx-action@v1.0.2 to set up docker buildx
  2. Push to GCR

Expected behaviour

Tell us what should happen It should push correctly to GCR as with v1.0.1

Actual behaviour

Tell us what happens instead I get this error

docker/setup-buildx-action#24 pushing manifest for us.gcr.io/REDACTED docker/setup-buildx-action#24 pushing manifest for us.gcr.io/REDACTED 0.2s done docker/setup-buildx-action#24 ERROR: failed commit on ref “manifest-sha256:013abc4ac51e93f9aca0650ba16921c3794ca76a69d2aad7a8bb2ff20122b7c0”: unexpected status: 400 Bad Request

exporting to image:


failed to solve: rpc error: code = Unknown desc = failed commit on ref “manifest-sha256:013abc4ac51e93f9aca0650ba16921c3794ca76a69d2aad7a8bb2ff20122b7c0”: unexpected status: 400 Bad Request Error: The process ‘/usr/bin/docker’ failed with exit code 1

Configuration

  • Repository URL (if public):
  • Build URL (if public):
name: Workflow

env:
  GCR_URL: us.gcr.io
  GC_PROJECT_ID: ID_HERE

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1.0.2

      - name: Login to GCR
        uses: docker/login-action@v1
        with:
          registry: ${{ env.GCR_URL }}
          username: _json_key
          password: SECRET_HERE

      - name: Build and push docker image
        uses: docker/build-push-action@v2
        with:
          context: .
          push: true
          file: Dockerfile
          tags: ${{ env.GCR_URL }}/${{ env.GC_PROJECT_ID }}/IMAGE_TAG_HERE

Logs

Can’t really post the logs since it’s for a private repository

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
crazy-maxcommented, Oct 6, 2020

@akalineskou

but it works using the previous version v1.0.1.

Ok transfer back here then. So it looks like the latest buildkit container image is the issue here. Can you try with:

     - name: Set up Docker Buildx
       uses: docker/setup-buildx-action@v1.0.2
       with:
         driver-opts: image=moby/buildkit:buildx-stable-1

cc. @tonistiigi

2reactions
dmitryzykovcommented, Oct 6, 2020

@crazy-max I have the same issue.

I tested your proposed solution and it helped me.

     - name: Set up Docker Buildx
       uses: docker/setup-buildx-action@v1.0.2
       with:
         driver-opts: image=moby/buildkit:buildx-stable-1
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to push to Google Container Registry - Bad request
The issue was that the tag has to contain the project name: gcr.io/project_name/tre-dock/pytest.
Read more >
Troubleshooting | Container Registry documentation
Bad Request error when pushing an image. When the Cloud Storage API is in the Deny policy list for the constraint constraints/gcp.restrictNonCmekServices ,...
Read more >
Binderhub install gives 400 error (bad request)
I'm trying to install Binderhub v0.2.0-b593363 and I get a 400 error. ... any comments in starting with < that may be causing...
Read more >
Change log for 4.8.53
... Fix github build failing because of wrong docker hub registry name #1016; Build and push multi-arch/os (amazon and windows, no debian) image...
Read more >
Knowledge Base - JFrog
ARTIFACTORY: How to Resolve a 400 Bad Request Error When Trying to Download ... Pull Fails with a '500 Binary provider has no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found