Cannot download Bamboo remote agent jar
Asked by runnerpaul:

I'm trying to download the Bamboo Remote Agent Jar to my agent server but when I click the download link I get this error page:

    Internal server errorGo to...Site homepageA system error has occurred - our apologies!Please create a problem report on our support system at https://support.atlassian.com with the following information:a description of your problem and what you were doing at the time it occurredcut & paste the error and system information found belowattach the atlassian-bamboo.log log file found in your application home.We will respond as promptly as possible.Thank you!Version: 7.1.3Build: 70121Build Date: 15 Oct 2020Request information:Request URL: http://server_ip/500.actionScheme: httpServer: server_ipPort: 80URI: /500.actionContext path:Servlet path: /500.actionPath info:Query string:Stack Trace:io.atlassian.util.concurrent.LazyReference$InitializationException: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: Unexpected exception    at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)    at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)    at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95)    at com.atlassian.bamboo.agent.classserver.AgentInstallerServlet.doGet(AgentInstallerServlet.java:117)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)    at 
    .........
    io.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:332)    at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:150)    ... 163 moreCaused by: java.lang.RuntimeException: Unexpected exception    at com.atlassian.bamboo.util.BambooObjectUtils.asRuntimeException(BambooObjectUtils.java:119)    at com.atlassian.bamboo.agent.classserver.ClasspathDiscovererImpl.createJarFromResource(ClasspathDiscovererImpl.java:169)    at com.atlassian.bamboo.agent.classserver.ClasspathDiscovererImpl.discoverClasspath(ClasspathDiscovererImpl.java:91)    at com.atlassian.bamboo.agent.classserver.AgentClassServerImpl$1.create(AgentClassServerImpl.java:83)    at com.atlassian.bamboo.agent.classserver.AgentClassServerImpl$1.create(AgentClassServerImpl.java:78)    at io.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:185)    at io.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:332)    at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:150)    ... 176 moreCaused by: java.io.IOException: Could not create file: c:\Program Files\Bamboo\temp\jarFromResource4243020160613851350.jar    at com.atlassian.bamboo.util.SecureTemporaryFiles.createSecureTempFile(SecureTemporaryFiles.java:255)    at com.atlassian.bamboo.util.SecureTemporaryFiles.createPath(SecureTemporaryFiles.java:211)    at com.atlassian.bamboo.util.SecureTemporaryFiles.create(SecureTemporaryFiles.java:206)    at com.atlassian.bamboo.agent.classserver.ClasspathDiscovererImpl.createJarFromResource(ClasspathDiscovererImpl.java:153)    ... 182 moreCaused by: java.nio.file.AccessDeniedException: c:\Program Files\Bamboo\temp\jarFromResource4243020160613851350.jar    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)    at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)    at java.nio.file.Files.newByteChannel(Files.java:361)    at java.nio.file.Files.createFile(Files.java:632)    at com.atlassian.bamboo.util.SecureTemporaryFiles.createSecureTempFile(SecureTemporaryFiles.java:250)    ... 185 more

How can I get this downloaded?


Answers:
author: Jeyanthan I
body: Hi [@runnerpaul](/t5/user/viewprofilepage/user-id/3309701) ,

The exception *Could not create file: c:\\Program Files\\Bamboo\\temp\\jarFromResource4243020160613851350.jar*denotes that the user as which you are running Bamboo doesn't have permission to write to the temp directory.

We usually see these problems when you start Bamboo with different user (therefore different permissions). If you are starting Bamboo as a service, please switch the service to run as the local user as detailed below

* [Running Bamboo as a Windows service as the local user](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)

Ensure that the local user has read/write access to C*:\\Program Files\\Bamboo\\temp\\*directory.

You may also start Bamboo via **bin/start-bamboo.bat** to overcome this issue.

Hope that helps.

Cheers,  
Jey

comments: author: runnerpaul
body: [@](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1124775)[Jeyanthan I](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1124775) I changed that to my Administrator user which I'm currently using. Now the service won't stay up long enough for me to even connect to the site.