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

This widget could not be displayed.

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
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

79 views 0 1
Join discussion

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