While attempting to run a KitchenCI test on Bamboo, we get the following error:
Error occurred while running Task 'Kitchen Convergence Test(5)' of type net.bytesource.bamboo.cheftesttask:kitchenTestTask.
22-Mar-2016 16:47:21 java.lang.IllegalMonitorStateException
22-Mar-2016 16:47:21 at java.lang.Object.wait(Native Method)
22-Mar-2016 16:47:21 at net.bytesource.bamboo.cheftesttask.KitchenTestTask.execute(KitchenTestTask.java:25)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$124(TaskExecutorImpl.java:269)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:269)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
22-Mar-2016 16:47:21 at java.lang.Thread.run(Thread.java:745)
I have tried tracking the cause of this error down but I am having zero luck figuring it out. I need to know how I can prevent, suppress, or otherwise ignore this error so that Bamboo will continue testing as configured.
The problem exists in Test Tasks for Chef Cookbooks v1.1 addon. The short answer is to downgrade versions to v1.0 and do not upgrade until the developer fixes the problem. To downgrade:
Note that you should not have to go back into all of your build plans and re-add all the Chef related tasks. They should still be there.
The long answer, in case you're crafty with Java programming, is that there is a bug in the TaskResult execute(TaskContext taskContext) function of the KitchenTestTask.class file on line 25, as noted by the error in the log:
I compared this file to the one in version 1.0 and found a block of code that has been added. Unfortunately, it appears as though code comments are an alien concept to this developer, so I'm not sure what they're trying to accomplish by adding the highlighted block:
The above block of highlighted code does not exist in v1.0 and the release notes say nothing of adding this block into the code. I submitted a lengthy request to the developer of the plugin to fix the problem, but have yet to see any progress. We are running Bamboo (latest) on CentOS 6.7 Final with Java JDK 1.8.0u74. If the Developer can't (or won't) fix it, then we'll probably end up forking the plugin and and maintaining our own copy of it.
Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...
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!
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