Could not execute task '<task name>' no Plugin with key '<task key>' is installed
Asked by Arvind Ghodse:

I am developing a custom Bamboo task plugin and having some issues with remote agent. When running the task with default/local agent executes successfully and the plugin results are as expected. When I run the task with remote agents, having a below error

Could not execute task 'task' no Plugin with key 'plugin' is installed.

Even i tried with the simple HelloWorld example using the below link there is also i am having the same error.

[https://developer.atlassian.com/server/bamboo/introduction-to-writing-tasks/](https://developer.atlassian.com/server/bamboo/introduction-to-writing-tasks/ "Simple Example Link")

Can you please help with this? please let me know if anything else is required from my side.


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Arvind Ghodse](/t5/user/viewprofilepage/user-id/4197886) ,

There are recommendations on how to fix this issue here:

[Tasks do not run on agents due to Plugin availability errors](https://confluence.atlassian.com/bamkb/tasks-do-not-run-on-agents-due-to-plugin-availability-errors-894139447.html)

comments: author: Arvind Ghodse
body: Hi [@Edwin Kyalangalilwa](/t5/user/viewprofilepage/user-id/255918) ,

thanks for your reply, i referred above solution as well but it did not helped me.

In my case there is only one entry for jvm, even i tried with new remote agent as well as restarting or disable/enable agent as well.


author: Edwin Kyalangalilwa
body: What version of Bamboo are you running?


author: Arvind Ghodse
body: Latest Bamboo Server version- 7.1.4


author: Arvind Ghodse
body: hi [@Edwin Kyalangalilwa](/t5/user/viewprofilepage/user-id/255918)

Can you please help me with this? please let me know if anything else is required.

Thanks.


author: Arvind Ghodse
body: Hi,

I checked agent log, and found error in the log as below,

2021/01/05 10:39:03 \| 2021-01-05 10:39:03,186 **ERROR** \[AgentRunnerThread\] \[PluginEnabler\] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.temp.plugin.BambooPlugin  
INFO \| jvm 1 \|

.

.

.

INFO \| jvm 1 \| 2021/01/05 10:43:01 \| 2021-01-05 10:43:01,814 WARN \[Spring DM Context Creation Timer\] \[DependencyWaiterApplicationContextExecutor\] Timeout occurred before finding service dependencies for \[NonValidatingOsgiBundleXmlApplicationContext(bundle=com.temp.plugin.BambooPlugin, config=osgibundle:/META-INF/spring/\*.xml)\]  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| 2021-01-05 10:43:01,817 ERROR \[Spring DM Context Creation Timer\] \[OsgiPlugin\] Plugin 'com.temp.plugin.BambooPlugin' never resolved service '\&applicationProperties' with filter '(\&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))'  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| 2021-01-05 10:43:01,818 **ERROR \[Spring DM Context Creation Timer\] \[OsgiPlugin\] Unable to start the plugin container for plugin** 'com.temp.plugin.BambooPlugin'  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| org.springframework.context.ApplicationContextException: **Application context initialization for 'com.temp.plugin.BambooPlugin' has timed out** waiting for (\&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.mainLoop(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.run(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| 2021-01-05 10:43:01,831 ERROR \[Spring DM Context Creation Timer\] \[ExtenderConfiguration\] **Application context refresh failed** (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.temp.plugin.BambooPlugin, config=osgibundle:/META-INF/spring/\*.xml))  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| org.springframework.context.ApplicationContextException: Application context initialization for 'com.temp.plugin.BambooPlugin' has timed out waiting for (\&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.mainLoop(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.run(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| 2021-01-05 10:43:01,831 ERROR \[Spring DM Context Creation Timer\] \[DependencyWaiterApplicationContextExecutor\] Unable to create application context for \[com.temp.plugin.BambooPlugin\], unsatisfied dependencies: Dependency on \[(\&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))\] (from bean \[\&applicationProperties\])  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| org.springframework.context.ApplicationContextException: Application context initialization for 'com.temp.plugin.BambooPlugin' has timed out waiting for (\&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.mainLoop(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:43:01 \| at java.util.TimerThread.run(Unknown Source)  
INFO \| jvm 1 \| 2021/01/05 10:44:06 \| 2021-01-05 10:44:06,624 INFO \[0-BAM::arvindgh02::Agent:pool-3-thread-1\] \[BuildAgentControllerImpl\] Agent 360450 checking build queue for executables...

But still does not found any resolution for this.

Can you please guide me to resolve this issue?


author: Arvind Ghodse
body: Is there anyone who can help me with this?