Bamboo agent cannot start due to Unable to delete error

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Bamboo agent does not start and throws an Unable to delete: C:\bamboo-agent-home\classpath\winp.x64.dllerror.

Environment

Bamboo agent running on Windows OS.

Diagnosis

The following error can be seen in the logs:

FATAL [WrapperSimpleAppMain] [AgentBootstrap] Exiting due to fatal exception. java.lang.RuntimeException: at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.removeSpuriousFiles(ClasspathBuilder.java:146) at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.sync(ClasspathBuilder.java:109) at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getClassLoader(ClasspathBuilder.java:59) at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:335) at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:97) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:121) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.AccessDeniedException: C:\bamboo-agent-home\classpath\winp.x64.dll at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) at java.nio.file.Files.delete(Unknown Source) at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.removeSpuriousFiles(ClasspathBuilder.java:144) ... 12 more JVM exited while starting the application.

Cause

Java platform SE binary process is using the file C:\bamboo-agent-home\classpath\winp.x64.dll file preventing the agent from starting.

Solution

Confirm that the user account that runs the Bamboo service has access to the agent's home directory. Then, terminate the Java process and restart the agent.

Updated on May 22, 2025

Still need help?

The Atlassian Community is here for you.