Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Local Runner failing on build

Jez Cordonnier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2025

I have got a local runner on a Debian server which was working until recently. The pipeline is super small now just to do the bare minimum (see below).

The runner is up and running and Bitbucket is able to see the runner as active. When I run a pipeline, it starts the clone and I can see the logs progressing (so its definitely processing the action), until it gets to the build step. At this point, it just fails. No feedback in the GUI and no clear reason in the logs on the server. 

This was working fine for months before it suddenly didn't. Something must have changed, but I'm unsure what it could be. 

The worker is the Java linux shell. (I don't want to install docker just for this).


This is the runner log where it exists. Clone above is fine.

Generating build script.
Adding log file: /home/user/atlassian-bitbucket-pipelines-runner/bin/../temp/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX/tmp/build12306387268082114998.log
Executing build script in native script.
Script exited with exit code: 1

 

In the `tmp` directory these are the only log files. Build and CacheTeardown are both empty.

0     build12306387268082114998.log
0 cacheTeardown13785616896405678645.log
1053 clone12982692299869077354.log
2061 cloneScript626750428785171366.sh

 

bitbucket-pipeline.yml

definitions:
steps:
- step: &minimal-test
name: Minimal Test
runs-on:
- self.hosted
- linux.shell
- staging
script:
- echo "test"

pipelines:
custom:
test:
- step: *minimal-test


Any ideas would be greatly welcomed. 

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 7, 2025

Hey @Jez Cordonnier 

Can you delete the existing runner and re-create it? It could be an issue with the runner itself (usually the working directory, or it may not have terminated gracefully at some point and it has caused issues with the configuration).

If this doesn't resolve the issue - please raise a support ticket with our support team as per your Premium support entitlement (including the build URL and runners logs). We need access to your workspace/build environment to troubleshoot further, and our system requires a support ticket to allow us to grant ourselves the necessary access:

If you encounter issues raising a ticket - please let me know your timezone so I may raise one on your behalf with the team that operates within your region.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events