setup-k3d-k3s icon indicating copy to clipboard operation
setup-k3d-k3s copied to clipboard

Intermittent fail

Open jan-sykora opened this issue 2 years ago • 4 comments

When running the setup-k3d-k3s in our Github workflow we sometimes get an error.

Setup:

jobs:
  some-job:
    steps:
      - name: Set up k3d
         uses: nolar/setup-k3d-k3s@v1
         with:
           version: v1.20

Error:

Run nolar/setup-k3d-k3s@v1
  with:
    version: v1.20
    k3d-tag: latest
  env:
    MSYS: winsymlinks:nativestrict
Run /home/runner/work/_actions/nolar/setup-k3d-k3s/v1/action.sh
  /home/runner/work/_actions/nolar/setup-k3d-k3s/v1/action.sh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    MSYS: winsymlinks:nativestrict
    VERSION: v1.20
    K3D_TAG: latest
    K3D_NAME: 
    K3D_ARGS: 
    GITHUB_TOKEN: 
    SKIP_CREATION: 
    SKIP_READINESS: 
Error: Process completed with exit code 22.

Based on the exit code it seems that the curl command in action.sh got 401 Unauthorized. This error occurs irregularly (when running the same setup).

jan-sykora avatar Jan 18 '23 13:01 jan-sykora

We see this issue fairly often. Is there any progress here?

sprutton1 avatar Jul 24 '23 15:07 sprutton1

Sorry, there is no sufficient information to debug the issue. It does not happen to me. If you find the cause and make a fix, please send a PR.

What I can assume blindly, if GITHUB_TOKEN is not set, is that you hit the GitHub rate limit for unauthorized users.

nolar avatar Jul 24 '23 15:07 nolar

Thanks, I'll try adding the token. If the issue comes up again I'll see if I can get more info and let you know what's happening.

sprutton1 avatar Jul 24 '23 17:07 sprutton1

Unfortunately, the only workaround that worked for us was to setup k3d/k3s manually (not using the setup-k3d-k3s action). We didn't change anything else.

jan-sykora avatar Jul 25 '23 10:07 jan-sykora