Bamboo Remote Agents: What is bamboo-init.properties

What is bamboo-init.properties and how can we use it when setting up new remote agents? I see this in the logs during agent startup and we are looking to automate remote agent creation.

[RemoteAgent] Starting Bamboo Remote Agent...
[RemoteAgent] Starting application context...
[PropertyPlaceholderConfigurer] Could not load properties from class path resource [bamboo-init.properties]: class path resource [bamboo-init.properties] cannot be opened because it does not exist

5 answers

This widget could not be displayed.

Hi,

The problem was with my JAVA, I reinstalled jre7 instead of the JAVA and its started working for me.

Thanks! This solved my problem. I was on JRE 8 and met this problem, then I rolled back to JRE 7 it worked fine. Wondering why they're not working with 8

This widget could not be displayed.

Hi Kevin,

Thank you for your interest on automating remote agents creating.

Regarding to your question about bamboo-init.properties, the same is used to specify where Bamboo will (store/look for) all data once you start your Bamboo instance by using <bamboo-install>/bin/start-bamboo.(bat/sh).

As per remote agents, you should use the following command:

# &lt;agent-home&gt;, By default, the remote agent will store its data in a USER_HOME/bamboo-agent-home. If you wish to specify a different directory, add the command line parameter before the JAR file name (-Dbamboo.home=&lt;path&gt;)
# atlassian-bamboo-agent-installer-X.X.jar, where X.X represents your Bamboo version number.

java -Dbamboo.home=&lt;agent-home&gt; -jar atlassian-bamboo-agent-installer-X.X.jar http://bamboo-host-server:8085/agentServer/

Please, refer to Additional remote agent options for further information.

Kind regards,
Rafael

So the sole purpose of the bamboo-init.properties file is to specify the data storage location? Nothing more?

Rafael,

Is there any documentation regarding the format or list of propereties we can put into the bamboo-init.properties file? The page you reference doesn't even mention the properties file.

This widget could not be displayed.

I am having the same problem for the windows machines:

Logs:

INFO | jvm 90 | 2014/05/30 00:58:48 | 2014-05-30 00:58:48,037 INFO [WrapperSimpleAppMain] [AgentContext] Bootstrap Type: 'REMOTE'

INFO | jvm 90 | 2014/05/30 00:58:48 | 2014-05-30 00:58:48,272 INFO [Thread-1] [RemoteAgent] com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent starting.

INFO | jvm 90 | 2014/05/30 00:58:48 | 2014-05-30 00:58:48,412 INFO [Thread-1] [RemoteAgentHomeLocatorForBootstrap] Agent home located at 'C:\Bamboo\bamboo.home'

INFO | jvm 90 | 2014/05/30 00:58:48 | 2014-05-30 00:58:48,412 INFO [Thread-1] [RemoteAgent] Starting Bamboo Remote Agent...

INFO | jvm 90 | 2014/05/30 00:58:48 | 2014-05-30 00:58:48,412 INFO [Thread-1] [RemoteAgent] Starting application context...

INFO | jvm 90 | 2014/05/30 00:58:50 | 2014-05-30 00:58:50,553 WARN [Thread-1] [PropertyPlaceholderConfigurer] Could not load properties from class path resource [bamboo-init.properties]: class path resource [bamboo-init.properties] cannot be opened because it does not exist

INFO | jvm 90 | 2014/05/30 00:58:50 | 2014-05-30 00:58:50,599 INFO [Thread-1] [RemoteAgentHomeLocatorForBootstrap] Agent home located at 'C:\Bamboo\bamboo.home'

INFO | jvm 90 | 2014/05/30 00:58:50 | 2014-05-30 00:58:50,599 INFO [Thread-1] [RemoteAgentHomeDirectoryLayout] Plugin directory: C:\Bamboo\bamboo.home\plugins

INFO | jvm 90 | 2014/05/30 00:58:50 | 2014-05-30 00:58:50,599 INFO [Thread-1] [RemoteAgentHomeDirectoryLayout] Plugin cache directory: C:\Bamboo\bamboo.home\caches\plugins

INFO | jvm 90 | 2014/05/30 00:58:50 | [Fatal Error] :-1:-1: Premature end of file.

INFO | jvm 90 | 2014/05/30 00:58:50 | Exiting due to fatal exception.

INFO | jvm 90 | 2014/05/30 00:58:50 | java.lang.reflect.InvocationTargetException

INFO | jvm 90 | 2014/05/30 00:58:50 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

INFO | jvm 90 | 2014/05/30 00:58:50 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

INFO | jvm 90 | 2014/05/30 00:58:50 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

INFO | jvm 90 | 2014/05/30 00:58:50 | at java.lang.reflect.Method.invoke(Unknown Source)

INFO | jvm 90 | 2014/05/30 00:58:50 | at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:28)

INFO | jvm 90 | 2014/05/30 00:58:50 | at java.lang.Thread.run(Unknown Source)

INFO | jvm 90 | 2014/05/30 00:58:50 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentConfiguration' defined in class path resource [applicationContextRemoteAgent.xml]: Invocation of init method failed; nested exception is com.atlassian.bamboo.configuration.ConfigurationException: Could not load configuration file bamboo-agent.cfg.xml from C:\Bamboo\bamboo.home

Mujahed,

I don't see how your error has anything to do with the topic of this thread: bamboo-init.properties.

This widget could not be displayed.

I am also new for the Bamboo and I was searching for the purpose of the 'bamboo-init.properties' file. Getting the above error for the Bamboo remote agent on windows machine.

Hello Mujahed,

Were you able to fix the issue which you have mentioned in the logs above. Because I'm also having the same issue as:

INFO [Thread-2] [RemoteAgentHomeDirectoryLayout] Plugin cache directory: /home/bamboo/bamboo-agent-home/cach

es/plugins

[Fatal Error] :-1:-1: Premature end of file.

Exiting due to fatal exception.

This widget could not be displayed.

I am stuck with getting the agent online.

 

- With JRE_8 i have this very same issue

[RemoteAgent] Starting Bamboo Remote Agent...
[RemoteAgent] Starting application context...
[PropertyPlaceholderConfigurer] Could not load properties from class path resource [bamboo-init.properties]: class path resource [bamboo-init.properties] cannot be opened because it does not exist


 

and

- With JRE_7, the remote-agent does not EVEN launch.
and the error is

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/agent/installer/AgentInstaller : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)


At least it launches with JRE_8.

 

Anybody found any clue to this, i am still on my way to get the agent up-and-running and online.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you