-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 8.0.0 EAP1
-
Component/s: Database (other)
-
None
-
1
-
Severity 3 - Minor
Issue Summary
Bamboo Cluster Node Heartbeat check throws java.lang.IllegalStateException when Bamboo shutdown process did not completely and are two Bamboo instances running.
Steps to Reproduce
- Start Bamboo wait for logs to show "[QuartzScheduler] Scheduler atlassian-scheduler-quartz2.local_$_NON_CLUSTERED started."
- Issue the Stop Bamboo command and start immediately.
- Check whether you have two Bamboo processing running
- After a few seconds you will see the exception in the logs repeating every 30 seconds
Expected Results
There should be no errors.
stop-bamboo.sh script should check the process is stopped before ending.
Actual Results
021-11-01 14:18:02,348 ERROR [nodeHeartbeat.quartz_Worker-1] [JobLauncher] Scheduled job with ID 'com.atlassian.beehive.db.ClusterNodeHeartbeatService' failedcom.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.beehive.AbstractBambooRawJdbcDao.withDatabaseConnection(AbstractBambooRawJdbcDao.java:42) at com.atlassian.bamboo.beehive.BambooClusterNodeHeartBeatRawJdbcDao.writeHeartBeat(BambooClusterNodeHeartBeatRawJdbcDao.java:46) at com.atlassian.bamboo.beehive.BambooClusterNodeHeartbeatServiceImpl$HeartbeatJobRunner.runJob(BambooClusterNodeHeartbeatServiceImpl.java:142) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90) at com.atlassian.scheduler.quartz2.Quartz2Job.execute(Quartz2Job.java:28) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)Caused by: java.lang.IllegalStateException: Container is not setup at com.atlassian.spring.container.LazyComponentReference.create(LazyComponentReference.java:41) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 10 more
Workaround
Check your server whether you have the older Bamboo instance still running by executing this command.
ps -ef | grep -i bamboo
And if you see two instances, please kill the old process by checking the start date of the process.
- Mentioned in