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

Custom task not running on remote agent.

vbvaghela952 June 27, 2017

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

 

 

 

1 answer

1 vote
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2017

Which version of Bamboo do you have? Support for Atlassian scanner on remote agent was added in Bamboo 6 IIRC.

Chris Farris August 21, 2017

I'm running Bamboo 6.1.1 myself and I'm having the same problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events