Windows Pipeline Runner is unable to cleanup, left in Unhealthy state

Brendan Bates
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!
January 10, 2025

Our project makes use of local NPM packages, such as:

"dependencies": {

...

"node-ci": "./submodules/node-ci",

...

}

 

This creates a shortcut in Windows in the node_modules folder that links to the actual package (see below):

Screenshot 2025-01-10 at 11.28.52 AM.png

Our pipeline build runs through and completes, but errors out and leaves the runner in an unhealthy state because it tries to delete both folders and fails:

[2025-01-10 11:19:49,974] An error occurred whilst tearing down directories.

java.nio.file.NoSuchFileException: C:\Users\...\atlassian-bitbucket-pipelines-runner\bin\..\temp\5acf5a6b-f269-50f7-b1a5-9e66afd53479\1736525790831\build\node_modules\node-ci

        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
.....

[2025-01-10 11:19:49,974] Cancelling timeout

[2025-01-10 11:19:49,974] Updating runner state to "UNHEALTHY".

[2025-01-10 11:19:50,146] Completing step with result Result{status=FAILED, error=Some(Error{key='runner.working-directory-teardown-error', message='An error occurred while attempting to clean the build folder. Check the runner logs and manually clean up the build folder on the host machine to fix this issue.', arguments={}})}.

This pretty much eliminates our ability to utilize pipelines.  Is there a known workaround?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events