Bamboo agent cannot start due to error java.lang.RuntimeException: Unable to delete: C:\bamboo-agent-home\classpath\winp.x64.dll
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
要約
Bamboo agent does not start and throws an Unable to delete: C:\bamboo-agent-home\classpath\winp.x64.dll
error.
環境
Bamboo agent running on Windows OS.
診断
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.
原因
Java platform SE binary process is using the file C:\bamboo-agent-home\classpath\winp.x64.dll file preventing the agent from starting.
ソリューション
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.