github-runner icon indicating copy to clipboard operation
github-runner copied to clipboard

Fails to remove "Does not exist"

Open cvdsande opened this issue 4 years ago • 0 comments

I've been using this image in Kubernetes, not sure if relevant, but I noticed when I deleted the Pods, the runners were failing to cleanup.

I'm able to reproduce this manually

github@github-runner-6647c669fb-8ntbt:~$ registration_url="https://github.com/${GITHUB_OWNER}"
github@github-runner-6647c669fb-8ntbt:~$ token_url="https://api.github.com/orgs/${GITHUB_OWNER}/actions/runners/registration-token"
github@github-runner-6647c669fb-8ntbt:~$ payload=$(curl -sX POST -H "Authorization: token ${GITHUB_PAT}" "${token_url%/registration-token}/remove-token")
github@github-runner-6647c669fb-8ntbt:~$ REMOVE_TOKEN=$(echo "$payload" | jq .token --raw-output)
github@github-runner-6647c669fb-8ntbt:~$ ./config.sh remove --unattended --token "${REMOVE_TOKEN}"

# Runner removal

Does not exist. Skipping Removing runner from the server
√ Removed .credentials
√ Removed .runner

github@github-runner-6647c669fb-8ntbt:~$ 

I'm not sure why I'm getting the "Does not exist" error. Otherwise the image is working well.

cvdsande avatar Jul 20 '21 13:07 cvdsande