Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo Remote Agents: What is bamboo-init.properties

Kevin Duane May 22, 2014

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

1 vote
Mujahed July 1, 2014

Hi,

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

rliu054 February 6, 2015

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

0 votes
s2zaman April 10, 2017

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.

0 votes
Mujahed May 30, 2014

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.

joji_johny July 1, 2014

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.

0 votes
Mujahed May 29, 2014

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

Kevin Duane May 29, 2014

Mujahed,

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

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

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

Kevin Duane June 4, 2014

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

Kevin Duane July 17, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events