Plan initialization fails during start-up due to failed deletion

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following error is thrown when Bamboo:


2010-08-31 14:38:58,464 INFO [main] [DefaultBuildDefinitionManager] Getting Build Configuration for 'GARBAGE-DEF'.
2010-08-31 14:38:58,470 ERROR [main] [BambooContainer] Cannot start bamboo
 java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
  at com.atlassian.bamboo.build.strategy.CronTriggerBuildStrategy.populateFromConfig(CronTriggerBuildStrategy.java:68)
  at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:207)
  at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:84)
  at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:42)

As a result the plan initialization fails and Bamboo fails to start-up

Cause

When deleting a plan, Bamboo sets the MARKED_FOR_DELETION flag to true. This will make Bamboo ignore the build check during the initialization.

Bamboo is having problems to obtain the Cron Expression data from the build.

Diagnosis

Please run the following query and provide us the result:


SELECT MARKED_FOR_DELETION FROM BUILD WHERE FULL_KEY="<plan_key>";

Resolution

If the build is marked for deletion and the Boolean is set to true, then change it to false.

For MySQL execute the following SQL;


update BUILD set MARKED_FOR_DELETION=1 WHERE FULL_KEY="<plan_key>";

Last modified on Nov 21, 2012

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.