Skip to content
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

Consistent Cannot connect to the Docker daemon issue on CI #176

Closed
ra0x3 opened this issue Nov 1, 2022 · 5 comments
Closed

Consistent Cannot connect to the Docker daemon issue on CI #176

ra0x3 opened this issue Nov 1, 2022 · 5 comments

Comments

@ra0x3
Copy link

ra0x3 commented Nov 1, 2022

Behaviour

  • I'm getting a consistent error when trying to use the setup-buildx-action
  • The error is consistent in that it happens on each push
    • Sometimes it happens for target x86_64-unknown-linux-gnu, then sometimes it happens for target x86_64-apple-darwin
      • It has primarily been happening for x86_64-apple-darwin
  ERROR: failed to initialize builder builder-a9707d5d-0e81-4fb9-9d1f-4c4408494f56 (builder-a9707d5d-0e81-4fb9-9d1f-4c4408494f560): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  Error: The process '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/docker-setup-buildx-OSo80H/bin/buildx' failed with exit code 1

Steps to reproduce this issue

  • Reproducing exact behavior might be hard
  • I have included links to the public action on the public repository however

Expected behaviour

Tell us what should happen

  • I expect the simple setup-buildx-action to not fail. This failure is new behavior

Actual behaviour

Tell us what happens instead

  • I get a very consistent failure related to docker not running?

Configuration

  publish-fuel-indexer-binaries:
    name: Release fuel-indexer binaries
    runs-on: ${{ matrix.job.os }}
    needs:
      - cancel-previous-runs
      # - cargo-test-workspace-all-features
      # - cargo-verifications
    # if: github.event_name == 'release' && github.event.action == 'published'
     # Only do this job if publishing a release
    strategy:
      matrix:
        job:
          # TODO: Add other targets as needed, using fuel-core as reference
          - os: ubuntu-latest
            platform: linux
            target: x86_64-unknown-linux-gnu
            cross_image: x86_64-linux-gnu
          # - os: macos-latest
          #   platform: darwin
          #   target: x86_64-apple-darwin
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

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

      - name: Log in to the ghcr.io registry
        uses: docker/login-action@v1
        with:
          registry: ${{ env.REGISTRY }}
          username: ${{ github.repository_owner }}
          password: ${{ secrets.GITHUB_TOKEN }}

Logs

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

@ra0x3
Copy link
Author

ra0x3 commented Nov 1, 2022

Attaching raw logs from the workflow error raw-logs.txt

@ra0x3
Copy link
Author

ra0x3 commented Nov 1, 2022

Just FYI. I read in a previous issue that the error might be related to something in the environment? So I commented everything else out in my workflow YAML file, to no avail. Error persists.

@crazy-max
Copy link
Member

Docker is not available on MacOS runners. See actions/runner-images#2150 for more info.

@ra0x3
Copy link
Author

ra0x3 commented Nov 1, 2022

@crazy-max

  • Thanks for the quick response.
  • I will go back and try w/o a darwin target now.
  • Will leave this open for a bit longer in case my issue persists.
  • Will come back and close if all works well.

@ra0x3
Copy link
Author

ra0x3 commented Nov 1, 2022

Closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants