So, I have created a sample task that is getting the values from the task UI and calling an API with these form data as parameters.
This custom task worked perfectly on the Bamboo server instance on my machine. When I installed a remote agent and tried running the task in there, it gives me error saying:
"Could not execute task 'Default Custom Task' no Plugin with key 'com.custom.bamboo-plugin-demo:CustomPlugin' is installed."
When I checked the logs of remote agent it showed a few suspiciously errorneous stuff. I am sharing here for the community to better understand the problem.
Few errors in log like these and finally the last error is plugin not installed:
INFO | jvm 1 | 2017/06/27 17:27:38 | 2017-06-27 17:27:38,552 ERROR [ThreadPoolAsyncTaskExecutor::Thread 6] [OsgiPlugin] Unable to start the plugin container for plugin 'com.custom.bamboo-plugin-demo'
INFO | jvm 1 | 2017/06/27 17:27:38 | org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.atlassian.com/schema/atlassian-scanner]
INFO | jvm 1 | 2017/06/27 17:27:38 | 2017-06-27 17:27:38,569 ERROR [ThreadPoolAsyncTaskExecutor::Thread 6] [ExtenderConfiguration] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.custom.bamboo-plugin-demo, config=osgibundle:/META-INF/spring/*.xml))
INFO | jvm 1 | 2017/06/27 17:27:38 | 2017-06-27 17:27:38,570 ERROR [ThreadPoolAsyncTaskExecutor::Thread 6] [DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.custom.bamboo-plugin-demo], unsatisfied dependencies: none
AND FINALLY, THIS ERROR:
INFO | jvm 1 | 2017/06/27 17:30:25 | 2017-06-27 17:30:24,958 ERROR [3-BAM::10.20.28.33::Agent:pool-6-thread-1] [TaskExecutorImpl] Could not execute task 'Default custom Task' no Plugin with key 'com.custom.bamboo-plugin-demo.CustomPlugin' is installed.
Few warnings in log like these:
INFO | jvm 1 | 2017/06/27 13:49:55 | 2017-06-27 13:49:55,828 WARN [AgentRunnerThread] [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 1 | 2017/06/27 13:49:55 | 2017-06-27 13:49:55,834 WARN [AgentRunnerThread] [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
Which version of Bamboo do you have? Support for Atlassian scanner on remote agent was added in Bamboo 6 IIRC.
I'm running Bamboo 6.1.1 myself and I'm having the same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.