Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to find agent with id -1

Markus I'm New Here Nov 02, 2021


I am trying to set up a bamboo remote agent by following this guide, but when I run the command in point 3, The function fails after 10 attempts to build the agent. After searching the logs I find that for each build attempt, the message "java.lang.IllegalStateException: Unable to find agent with id -1" is printed. I have looked into different sources, including an old working bamboo setup on the build server (no-one remember how it was set up multiple years ago so it is no-one to ask) and seen that in the file "bamboo-agent.cfg.xml" it is specified various parameters such as ID, name and description in the agentdefinition element as shown in the upper part of the picture. However in the .xml file for the new agent setup the entire agentDefinition block is missing including an ID. Since the -1 value in the message might mean that it can't find the ID, I wondered how to create an ID for the remote agent? I have googled a lot, but can't find anything about how this ID is created. Does anyone know how to find this, or have an idea of what could be the problem? Is it supposed to generate the ID as a part of the command in part 3 of the guide, or does it has to be manually specified?



Best regards



1 answer

1 accepted

1 vote
Answer accepted
Markus I'm New Here Nov 03, 2021

It turned out I had downloaded the wrong version of Java, I had JRE, but you must have JDK. Memo to myself, read user guides carefully:

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...

67 views 0 4
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