Could not execute task '<task name>' no Plugin with key '<task key>' is installed

Arvind Ghodse December 17, 2020

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/ 

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

 

1 answer

0 votes
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2020

Hi @Arvind Ghodse ,

There are recommendations on how to fix this issue here:

Tasks do not run on agents due to Plugin availability errors 

Arvind Ghodse December 17, 2020

Hi @edwin ,

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.

edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2020

What version of Bamboo are you running?

Arvind Ghodse December 17, 2020

Latest Bamboo Server version- 7.1.4

Arvind Ghodse December 21, 2020

hi @edwin

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

Thanks.

Arvind Ghodse January 4, 2021

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?

Arvind Ghodse January 4, 2021

Is there anyone who can help me with this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events