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

Random DNS issue when using Github Actions #107

Open
saarw-opti opened this issue Jan 24, 2024 · 6 comments
Open

Random DNS issue when using Github Actions #107

saarw-opti opened this issue Jan 24, 2024 · 6 comments

Comments

@saarw-opti
Copy link

saarw-opti commented Jan 24, 2024

Screenshot 2024-01-24 at 10 47 32

I'm trying to use TailScale GitHub actions on the latest (I also tested different versions) version of TailScale and getting these DNS Issues.
It also happens when attempting to install it manually on the machine while it is running,
I've tried injecting the nameserver and the search to /etc/resolve.conf
But it doesn't help in this case.
On the Admin console, I've defined the machine as an Ephermal and pre-approved machine.
It happens only on GitHub action machines.
This issue is something that happens and sometimes does not.

Thanks.

@saarw-opti saarw-opti changed the title DNS issue when using Github Actions TailsSale Random DNS issue when using Github Actions TailsSale Jan 24, 2024
@saarw-opti saarw-opti changed the title Random DNS issue when using Github Actions TailsSale Random DNS issue when using Github Actions Jan 24, 2024
@bradfitz
Copy link
Member

Are you using a Dockerfile runner or the Tailscale-supplied action.yml?

What's your GitHub runner type/version?

@saarw-opti
Copy link
Author

saarw-opti commented Jan 30, 2024

I tried both the GitHub actions and the manual installation, run on ubuntu-latest, and 20.04 (seems more stable).
tried the 1.58.0 and the 1.56.0 of tailscale.

@matthewjthomas
Copy link

I was running into a lot of transient DNS resolution failures, followed this recommendation and it seems to be working a lot better: #51 (comment)

@sylr
Copy link

sylr commented Apr 5, 2024

I too encounter a lot of transient DNS errors, my deployment pipelines randomly fail like this:

> Run helm package ./deploy/chart \
Successfully packaged chart and saved it to: /home/runner/work/.../..../......tgz
Error: Kubernetes cluster unreachable: Get "https://xxxxx.gr7.eu-central-1.eks.amazonaws.com/version": dial tcp: lookup xxxxx.gr7.eu-central-1.eks.amazonaws.com on 127.0.0.53:53: read udp 127.0.0.1:40699->127.0.0.53:53: i/o timeout

It was working fine a few weeks ago, now I have to restart my deployment pipelines a lot.

@dgivens
Copy link

dgivens commented May 2, 2024

I saw this a while back, but it seemed to go away for a while, then it became a problem again about a week ago. We are using the standard hosted runner and the following action. When it started causing us problems last week, we added the Tailscale version based on the same issue @matthewjthomas referenced, #51. It has not made a difference.

This is our action.

name: 'connect_tailscale'
description: 'Connects to Tailscale'
inputs:
    ts_oauth_client_id:
        description: 'TS_OAUTH_CLIENT_ID'
        required: true
    ts_oauth_secret:
        description: 'TS_OAUTH_SECRET'
        required: true
runs:
    using: 'composite'
    steps:
        - name: Tailscale
          uses: tailscale/github-action@v2
          with:
              version: 1.64.0
              oauth-client-id: ${{ inputs.TS_OAUTH_CLIENT_ID }}
              oauth-secret: ${{ inputs.TS_OAUTH_SECRET }}
              tags: tag:github
              args: --accept-routes --accept-dns

@KlausVii
Copy link

We are also experiencing DNS timeouts with tailscale in our ci. Our setup

     - name: Tailscale
        uses: tailscale/github-action@v2
        with:
          oauth-client-id: ${{ env.TS_OAUTH_CLIENT_ID }}
          oauth-secret: ${{ env.TS_OAUTH_SECRET }}
          tags: tag:ci
          version: 1.64.0

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

6 participants