Trying to get a pipeline runner working in a Kubernetes cluster.
Followed this guide: https://janosmiko.com/blog/2021-09-08-bitbucket-pipelines-runners-in-k8s/
When I run the deployment I get the following error in the logs:
[2022-06-20 18:37:30,261] An error occurred whilst updating runner state to "ONLINE".
com.atlassian.pipelines.stargate.client.core.exceptions.StargateForbiddenException: Response Summary: HttpResponseSummary{httpStatusCode=403, httpStatusMessage=Forbidden, bodyAsString={"error":{"message":"Forbidden","detail":"Could not find runner associated with oauth client.","data":{"key":"rest-service.rest-service.forbidden","arguments":{}}}}}
There is some issue with the actual key? When I check the environment variables the correct key is there.
Any ideas?
Found the solution, needed to include the REPOSITORY_UUID environment var!
Hey @justinquaintance - this has just randomly started happening on our pipelines....where did you set this environment var?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For those who stumble on this - my solution was to upgrade the runners.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please give me more detail about upgrading the runners. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pham Minh Man I was running into this issue as well.
I installed the BitBucket Autoscaler for Kubernetes using the latest Helm chart as of today from https://github.com/lablabs/bitbucket-runner-autoscaler-helm-chart/tree/main.
This creates a configmap named bitbucket-runner-autoscaler/bitbucket-runner-autoscaler-template which contains a line in the job.yaml.template property that specifies a runner image of
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.