Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bamboo agent install error Cannot run program "chmod": error=13, Permission denied


I am running  Atlassian Bamboo version 7.1.1 build 70117 - 23 Jul 20. 

I am trying to add a "Ubuntu 20.04 LTS" remote agent in Bamboo,

When I run the following command on remote agent 


java -jar atlassian-bamboo-agent-installer-7.1.1.jar

I get following error 

Installing file: /generic/lib/bamboo-agent-bootstrap-jar-with-dependencies.jar to: /root/bamboo-agent-home/lib/bamboo-agent-bootstrap.jar
Installing file: /arch/linux/x86_64/wrapper to: /root/bamboo-agent-home/bin/wrapper
Error invoking chmod commandString Cannot run program "chmod": error=13, Permission denied
at java.base/java.lang.ProcessBuilder.start(
at java.base/java.lang.ProcessBuilder.start(
at java.base/java.lang.Runtime.exec(
at java.base/java.lang.Runtime.exec(
at com.atlassian.bamboo.agent.installer.strategy.AbstractInstallStrategy.setExecutable(
at com.atlassian.bamboo.agent.installer.strategy.CopyStrategy.copyFile(
at com.atlassian.bamboo.agent.installer.strategy.CopyStrategy.install(
at com.atlassian.bamboo.agent.installer.InstallableFile.install(
at com.atlassian.bamboo.agent.installer.AgentInstaller.install(
at com.atlassian.bamboo.agent.installer.AgentInstaller.main(
Caused by: error=13, Permission denied
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(
at java.base/java.lang.ProcessImpl.start(
at java.base/java.lang.ProcessBuilder.start(
... 9 more

Any thoughts ?

1 answer

0 votes

Hi @yogesh_devi ! 

Please, verify the user and location you are installing the wrapper. 

as I see it's in  /root/bamboo-agent-home/bin/wrapper which is not recommend way

Hi Gonchik,

Thank you for your response

I am not sure I understand what you mean by "Please, verify the user and location you are installing the wrapper" .

I have tried running this as both "root" and "bamboo" user and  both times I ran it from the home of the bamboo user and I get the stated error in each of those attempts 

In order to install the Atlassian agent I run following command 

java -jar atlassian-bamboo-agent-installer-7.1.1.jar

All that ensues including  the below message  is result of what the Bamboo agent Jar does for me.

 "Installing file: /arch/linux/x86_64/wrapper to: /root/bamboo-agent-home/bin/wrapper
Error invoking chmod commandString"


So can you please   help me understand what should I do differently 

Best regards 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

961 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you