Bitbucket pipeline steps being queued indefinitely with runners
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Bitbucket Pipelines builds that run on self-hosted runners can sometimes remain in a queued state indefinitely. This issue can occur even when there are other runners available to accept new connections.
Environment
Bitbucket Cloud Pipelines
Cause
This issue may arise due to a communication failure between the Runners and the backend of Bitbucket Pipelines. In some rare instances, the Runner will fail to reach Bitbucket to confirm the current Runner status, causing a desync between the two.
Workaround
Delete the existing runner.
Go to the repository preferences
Navigate to Runners to access the runner settings page.
Select the runner that needs to be deleted and click on the three dots.
Choose Delete.
Solution
If prefer to maintain your existing runner, raise a ticket with Bitbucket Cloud Support and provide us with the "RUNNER_UUID" or a HAR file when loading the runner settings page.
How to get the Runner UUI
The Runner UUID is now available on the Pipeline build, as demonstrated in the example below:
Pipelines build details:
1
2
3
4
5
6
7
8
9
Runner matching labels:
- linux
- self.hosted
Runner name: test3
Runner UUID: {0b72dd80-8656-5770-8c23-bfccf28be744}
Runner labels: self.hosted, linux
Runner version:
current: 1.433
latest: 1.433
Our engineering team can then update the backend for this specific runner to make it available again.
How to get runner UUID
Identify the runner that is available but not being assigned any pipeline steps.
From the "docker container run" command which pipelines provides when you create your runner there would be a field showing something as below :
1
RUNNER_UUID={9221374-acbd-574d-be9b-7c112gt526c1b}
Was this helpful?