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

net/http: TLS handshake timeout #1065

Closed
3 tasks done
tgajdo opened this issue Feb 28, 2024 · 1 comment
Closed
3 tasks done

net/http: TLS handshake timeout #1065

tgajdo opened this issue Feb 28, 2024 · 1 comment

Comments

@tgajdo
Copy link

tgajdo commented Feb 28, 2024

Contributing guidelines

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

This action time to time fails with "net/http: TLS handshake timeout" without any reason. On subsequent re-runs without any change it passes. I'm using ARC on local hosted Kubernetes.

Expected behaviour

Always be able to push images.

Actual behaviour

For almost every first run the push action fails with timeout.

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Build and push
        uses: docker/build-push-action@v5
        with:
          push: true
          tags: ghcr.io/${{ github.repository }}:${{ env.NEXT_VERSION }}
          context: .
          file: ./Dockerfile
          target: production
          labels: |
            org.opencontainers.image.title=${{ github.event.repository.name }}
            org.opencontainers.image.source=https://github.com/${{ github.repository }}
            org.opencontainers.image.version=${{ env.NEXT_VERSION }}
            org.opencontainers.image.created=${{ steps.semvers.outputs.date }}

Workflow logs

ERROR: failed to solve: failed to push ghcr.io/***/***:0.3.7: failed to do request: Head "https://ghcr.io/v2/***/***/blobs/sha256:***": net/http: TLS handshake timeout
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/***/***:0.3.7: failed to do request: Head "https://ghcr.io/v2/***/***/blobs/sha256:***": net/http: TLS handshake timeout

BuildKit logs

No response

Additional info

No response

@crazy-max
Copy link
Member

This action time to time fails with "net/http: TLS handshake timeout" without any reason.

ERROR: failed to solve: failed to push ghcr.io/***/***:0.3.7: failed to do request: Head "https://ghcr.io/v2/***/***/blobs/sha256:***": net/http: TLS handshake timeout

This is not the action but an issue with the remote registry you're pushing to which we don't control so nothing much we can do about it, sorry. This is similar to #251 and #975. Suggest to contact GitHub support: https://docs.github.com/en/support/contacting-github-support/creating-a-support-ticket.

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

No branches or pull requests

2 participants