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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mujahed,
I don't see how your error has anything to do with the topic of this thread: bamboo-init.properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
# <agent-home>, 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=<path>) # atlassian-bamboo-agent-installer-X.X.jar, where X.X represents your Bamboo version number. java -Dbamboo.home=<agent-home> -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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the sole purpose of the bamboo-init.properties file is to specify the data storage location? Nothing more?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.