You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After a couple of hours of not using the runner, it will become offline #556
So after everything is up an running, did run some jobs, all is good but then, after not using the runner for some hours, it wil become offline, and I will have to delete the runner pool and delete the runner from github so that it gets recreated. Is there some setting like idle timeout or something like that? I do have the minimum runner set to 1 in my CRD
What does the logs of the pod say? I am no longer working with tietoevry, and no longer have write-access to the repo - but might be able to shed some light on what is wrong.
Then there is already a runner registered with this name in the GH console, force-remove those. It's maybe wise to set the pod-policy to restart: Never - then they won't reappear and end in this state.
I think this is the problem that we need to always force-remove it and sometimes recreate the runner-pool, I've added restartPolicy: Never , lets see if it's help
@davidkarlsen it happened again, even with the restartPolicy: Never.
In the meantime, until a fix is found I unded up setting a cron that runs every day inside kubernetes to delete the pod. This way a new one is spawned and is automatically registered in github.
I know its not a real solution, it just helps us to focus on different things that are more urgent.
Here the code for such cronjob:
kind: CronJob
metadata:
name: delete-runner-pod
spec:
schedule: "00 22 * * *" # Schedule to run daily at midnight Berlin time
jobTemplate:
spec:
template:
spec:
containers:
- name: kubectl
image: bitnami/kubectl # Using a kubectl container image
command:
- /bin/sh
- -c
- kubectl get pods --no-headers=true | awk '/^runner-pool-pod-/ {print $1}' | xargs -I {} kubectl delete pod {} --grace-period=0 --force
restartPolicy: OnFailure
ttlSecondsAfterFinished: 172800 # delete job after 48 hours
Activity
ni-aackerman commentedon Jun 17, 2023
Hello?
davidkarlsen commentedon Jun 18, 2023
What does the logs of the pod say? I am no longer working with tietoevry, and no longer have write-access to the repo - but might be able to shed some light on what is wrong.
ni-skopp commentedon Jun 19, 2023
Hi @davidkarlsen
we have these in our logs of the pod
looks like it can't be removed which cause it crashloop since the same pod is already running, do know where to look why it's failing to do so?
davidkarlsen commentedon Jun 19, 2023
Then there is already a runner registered with this name in the GH console, force-remove those. It's maybe wise to set the pod-policy to restart: Never - then they won't reappear and end in this state.
davidkarlsen commentedon Jun 19, 2023
BTW: Love traktor ;-)
ni-skopp commentedon Jun 19, 2023
I think this is the problem that we need to always force-remove it and sometimes recreate the runner-pool, I've added
restartPolicy: Never, lets see if it's helpni-skopp commentedon Jun 26, 2023
@davidkarlsen just wanted to confirm that we don't see any issues since one week, looks like it helped, thank you!
ni-aackerman commentedon Jul 24, 2023
@davidkarlsen it happened again, even with the
restartPolicy: Never.In the meantime, until a fix is found I unded up setting a cron that runs every day inside kubernetes to delete the pod. This way a new one is spawned and is automatically registered in github.
I know its not a real solution, it just helps us to focus on different things that are more urgent.
Here the code for such cronjob: