Custom task not running on remote agent.

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

441 views 2 5
View question

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