setup-k3d-k3s
setup-k3d-k3s copied to clipboard
Intermittent fail
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).
We see this issue fairly often. Is there any progress here?
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.
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.
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.