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.

Push with rpc error Unknown desc failed commit on ref: no response

See original GitHub issue

Behaviour

Steps to reproduce this issue

  1. build two image in two jobs
  2. push both image

Expected behaviour

Tell us what should happen Both build and push successfully.

Actual behaviour

Tell us what happens instead One of it failed with below error:

2020-09-18T07:02:11.1178027Z #31 601.3 /root/occlum
2020-09-18T07:02:11.1178732Z #31 601.3 Install headers and miscs ...
2020-09-18T07:02:11.1179454Z #31 601.3 Installation is done.
2020-09-18T07:02:14.4196889Z #31 DONE 604.6s
2020-09-18T07:02:14.4197138Z 
2020-09-18T07:02:14.4198600Z #32 [stage-1 25/27] COPY docker/start_aesm.sh /opt/occlum/
2020-09-18T07:02:14.5643527Z #32 DONE 0.2s
2020-09-18T07:02:14.6664753Z 
2020-09-18T07:02:14.6667170Z #33 [stage-1 26/27] RUN echo '/opt/occlum/start_aesm.sh' >> /root/.bashrc
2020-09-18T07:02:14.6667612Z #33 DONE 0.1s
2020-09-18T07:02:14.8171244Z 
2020-09-18T07:02:14.8172393Z #34 [stage-1 27/27] WORKDIR /root
2020-09-18T07:02:14.8172759Z #34 DONE 0.0s
2020-09-18T07:02:14.8172964Z 
2020-09-18T07:02:14.8173261Z #35 exporting to image
2020-09-18T07:02:14.8173616Z #35 exporting layers
2020-09-18T07:06:38.4132220Z #35 exporting layers 263.7s done
2020-09-18T07:06:38.5634365Z #35 exporting manifest sha256:6cc3f68a6d9cda095cfce78ae433191bdede87945316e8cb6bccf55443dc6ddb done
2020-09-18T07:06:38.5636690Z #35 exporting config sha256:3cad84067ea172485fe1745e249c51a58b483a7f101d32854354168c9b9df208 done
2020-09-18T07:06:38.5637842Z #35 pushing layers
2020-09-18T07:07:05.7767157Z #35 pushing layers 27.2s done
2020-09-18T07:07:05.7769825Z #35 ERROR: failed commit on ref "layer-sha256:33aa5f589f15bb4ee72fd2fa7cab7830732096590f3d21f3d2de36172ecca45d": no response
2020-09-18T07:07:05.7771347Z ------
2020-09-18T07:07:05.7771811Z  > exporting to image:
2020-09-18T07:07:05.7772364Z ------
2020-09-18T07:07:05.7773945Z failed to solve: rpc error: code = Unknown desc = failed commit on ref "layer-sha256:33aa5f589f15bb4ee72fd2fa7cab7830732096590f3d21f3d2de36172ecca45d": no response
2020-09-18T07:07:05.8062900Z ##[error]The process '/usr/bin/docker' failed with exit code 1
2020-09-18T07:07:05.9106929Z Post job cleanup.

Configuration

# paste your YAML workflow file here and remove sensitive data
name: Occlum Docker Build and Push

# Triggers the workflow on pre-release events
on:
  release:
    types: [prereleased]

jobs:
  generate-centos-image:
      # GitHub Actions doesn't have CentOS VM provided
      runs-on: ubuntu-18.04

      steps:
      - name: Prepare tools
        run: |
          sudo apt-get update
          sudo apt-get install yum
      - name: Checkout code
        uses: actions/checkout@v2

      # Because "Build and push" step `context` field can't be subdir,
      # we need to copy files needed by dockerfile to root dir of the project
      - name: Copy context for docker build
        run: |
          cp -r tools/toolchains .
          cp -r tools/docker .
      - name: Get release version
        id: get_version
        run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

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

      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}

      - name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          file: ./tools/docker/Dockerfile.centos8.1
          platforms: linux/amd64
          push: true
          tags: occlum/occlum:${{ env.RELEASE_VERSION }}-centos8.1


  generate-ubuntu-image:
      runs-on: ubuntu-18.04

      steps:
      - name: Checkout code
        uses: actions/checkout@v2

      # Because "Build and push" step `context` field can't be subdir,
      # we need to copy files needed by dockerfile to root dir of the project
      - name: Copy context for docker build
        run: |
          cp -r tools/toolchains .
          cp -r tools/docker .
      - name: Get release version
        id: get_version
        run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

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

      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}

      - name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          file: ./tools/docker/Dockerfile.ubuntu18.04
          platforms: linux/amd64
          push: true
          tags: occlum/occlum:${{ env.RELEASE_VERSION }}-ubuntu18.04

Logs

Download the log file of your build and attach it to this issue.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jessehuicommented, Sep 21, 2020

Thank you @crazy-max and @tonistiigi. I will keep tracking on this. @crazy-max please close this issue if you think it is irrelevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rpc error: code = Unknown desc = failed commit on ref - ...
I have a django application and I'm trying to run it using docker. But when I run docker-compose build the following error shows...
Read more >
Pushes intermittently fail with error 'rpc error: code = Unknown ...
Reported by a customer running v13.3.4 and using a Gitaly Cluster. While running a test of pushing 1.25 times second for ~110 minutes, ......
Read more >
failed to solve: rpc error: code = unknown desc ...
I am able to get the docker-compose file to work by getting rid of the docker file in the proxy folder and doing...
Read more >
[RTFACT-25700] Unable to push multi-arch images to jfrog
We are trying to push multi-arch docker images to jfrog private docker ... 341error: failed to solve: rpc error: code = Unknown desc...
Read more >
rpc error: code = Unknown desc = executor failed running ...
I took your Dockerfile and ran it just fine on Docker Desktop for Mac, so I'm guessing there is a setting for the...
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