tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
532 stars 80 forks source link

Pkgs.tailscale.com appears to be blocking Github Actions Runners #37

Closed michaeldelago closed 2 years ago

michaeldelago commented 2 years ago

I'm experiencing an issue where it appears that pkgs.tailscale.com is timing out when attempting to use this action within a github workflow. In the below text box, the connection or pkgs.tailscale.com times out after 2m09s

  0     0    0     0    0     0      0      0 --:--:--  0:02:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:02:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:02:09 --:--:--     0
curl: (7) Failed to connect to pkgs.tailscale.com port 443: Connection timed out

When SSHing into the Action Runner with tmate, the issue was verified by confirming I could curl an arbitrary, different domain (https://google.com was used), and then confirming that I could not curl the URL that would be templated with this action, https://pkgs.tailscale.com/stable/tailscale_1.24.2_amd64.tgz

Here's the steps executed within the workflow:

- name: Get Tailscale Auth Key
  run: |
    TAILSCALE_PAYLOAD=$(curl -X POST https://api.tailscale.com/api/v2/tailnet/${{ env.TAILSCALE_NETWORK }}/keys \
      -u "${{ secrets.TAILSCALE_API_KEY }}" \
      -H "Content-Type: application/json" \
      --data-binary '{
        "capabilities": {
          "devices": {
            "create": {
              "reusable": false,
              "ephemeral": true
            }
          }
        }
      }')
    TAILSCALE_AUTH_KEY="$(jq -r '.key' <<< $TAILSCALE_PAYLOAD)"
    echo "TAILSCALE_AUTH_KEY=$TAILSCALE_AUTH_KEY" >> $GITHUB_ENV

- name: Tailscale
  uses: tailscale/github-action@v1
  with:
    authkey: "${{ env.TAILSCALE_AUTH_KEY }}"
    version: "1.24.2"
nsmith22 commented 2 years ago

I am seeing the same as of an hour or so ago, thanks for reporting this.

dave-andersen commented 2 years ago

Hi, folks - I believe this problem was due to a connectivity problem with DigitalOcean:

https://github.com/tailscale/tailscale/issues/4699

There is now a DigitalOcean incident report for this: https://status.digitalocean.com/incidents/82xnb04903pf

Probably safe to either close this bug or turn it into "can we get a non-digitalocean replica of pkgs.tailscale.org" or improve the script in some way to use an alternate site.