Troubleshooting runners
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
This article is intended to give you guidance when checking the different runners.
Solution
Checking the status of a runner
The runner status can be checked on the Runners page associated with the workspace or repository.
To find the status of a workspace runner, select Settings on the left sidebar of the workspace, and select Workspace runners under Pipelines on the left sidebar navigation.
To find the status of a repository runner, select Repository settings on the left sidebar of the repository, and select Runners under Pipelines on the left sidebar navigation.
The status can be one of the following:
Unregistered: The runner was created but was never run. Note: If a runner isn’t registered within one week, it will be removed.
Online: The runner is live and available for step scheduling.
Offline: The runner is not available. It may have been stopped, or there may be network connectivity issues.
Disabled: The runner was temporarily disabled, and steps will not be scheduled on it until it is enabled again.
Reviewing runner logs
Build and services logs (not including the runners' logs) for a step are removed from a runner host once the step is complete. These logs can be found in the step logs on the Pipeline's user interface.
The location of the runner log files varies between operating systems and the type of runner.
Identifying the runner UUID to determine log location
The runner UUID is logged as part of a build's step logs in the Pipeline's user interface. This UUID can be used to identify the correct location of runner.log files.
1
2
3
4
5
6
7
8
Runner matching labels:
- linux.shell
Runner name: linux-shell-runner
Runner UUID: {b609961f-891e-c872-c36b-f3f2c315d186}
Runner labels: self.hosted, linux.shell
Runner version:
current: 1.466
latest: 1.465
Reviewing log files for Linux Docker runners
Access the Linux device hosting the affected runner.
Open the
runner.log
file using a text editor. This log file is stored in the runners' working directory, in a subdirectory named using the runners' UUID (a 32-character hexadecimal string). Such as:1
<runner_working_directory>/<runnerUuid>/runner.log
For example:
1
/tmp/b609961f-891e-c872-c36b-f3f2c315d186/runner.log
The default working directory for the runner is the
/tmp
directory.Review the end of the log file for errors that need to be addressed.
Reviewing log files for Windows PowerShell runners
Access the Windows device hosting the affected runner.
Using PowerShell or File Explorer, navigate to the runner installation directory (
atlassian-bitbucket-pipelines-runner
). This directory will be stored where PowerShell was working when the runner was started. For example: if PowerShell was working in the users' home directory, such as:1
PS C:\Users\Username>
The runner installation directory would be
C:\Users\Username\atlassian-bitbucket-pipelines-runner\
Open the
runner.log
file using a text editor. This log file is stored in the runners' working directory, in a subdirectory named using the runners' UUID (a 32-character hexadecimal string). Such as:1
<runner_working_directory>\<runnerUuid>\runner.log
For example:
1
.\atlassian-bitbucket-pipelines-runner\temp\b609961f-891e-c872-c36b-f3f2c315d186\runner.log
The default working directory for the runner is the
\temp
subdirectory of theatlassian-bitbucket-pipelines-runner
directory.Review the end of the log file for errors that need to be addressed.
Reviewing log files for macOS shell runners
Access the macOS device hosting the affected runner.
Using Terminal or Finder, navigate to the runner installation directory (
atlassian-bitbucket-pipelines-runner
). This directory will be stored where Terminal was working when the runner was started. For example: if Terminal was working in the users' home directory (~/
), such as:/Users/Username/
; the runner installation directory would be/Users/Username/atlassian-bitbucket-pipelines-runner/
Open the
runner.log
file using a text editor. This log file is stored in the runners' working directory, in a subdirectory named using the runners' UUID (a 32-character hexadecimal string). Such as:1
<runner_working_directory>/<runnerUuid>/runner.log
For example:
1
~/atlassian-bitbucket-pipelines-runner/temp/b609961f-891e-c872-c36b-f3f2c315d186/runner.log
The default working directory for the runner is the
/temp
subdirectory of theatlassian-bitbucket-pipelines-runner
directory.Review the end of the log file for errors that need to be addressed.
Debugging runner images
Debugging docker image platform
To debug suspected platform related problems with the images used by your pipeline, there are a few checks you can run against the image to check your platform is supported:
Check the logs inside of
Build Setup
and for any service containers used by your pipeline - any warnings about potential platform incompatibilities will be logged.Check the documentation provided by the image vendor to see if your platform is supported. In some instances, the image may use a specific tag per platform.
Run
docker manifest inspect <image>:<tag>
on the image, looking for a matching entry for your OS and architecture.Check the platform when running
docker inspect <image>:<tag>
, checking that the OS and architecture matches.
Updating a runner version
It is always recommended that you keep your runner updated to receive the latest patches, features, and bug fixes. To see what's included in each update, you can refer to the runner changelog.
If you encounter issues with a runner, updating it to the latest version can help resolve the problem. Follow the steps outlined in to update your runner: Updating a runner version
Troubleshooting errors when starting a runner
An error message | Solution |
---|---|
| Run the command |
| To install a required version of the docker engine, refer to Install Docker Engine help. |
| Run the following command to add read permissions to the current user: |
| User-ns remapping is not supported. Change the docker daemon configuration. Refer to the following docker docs for more information: Isolate containers with a user namespace.Isolate containers with a user namespace Isolate containers with a user namespace |
| |
| |
| |
| The Runner is currently restricted from accessing the Docker image located at docker-public.packages.atlassian.com. It is advisable to examine your network configuration to confirm that this domain is not being obstructed, whether by a firewall or by a local proxy setup. |
Troubleshooting errors during step execution
An error message | Step execution stage | Solution |
---|---|---|
| Cloning | Disable SSL verification on git clone in bitbucket-pipelines.yml |
| Building | The command not found error mostly occurs when the |
| Pulling images locally (rate limit reached) | Log in to Dockerhub on the host to get a higher rate limit AND/OR Follow these instructions: https://docs.docker.com/registry/recipes/mirror/ to set up a docker pull through cache to also avoid the rate limit |
References
Windows PowerShell troubleshooting:
Self-hosted Run Failure Scenarios
Was this helpful?