com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1

Atlassian JIRA | Mark Chaimungkalanont | 5 years ago
  1. 0

    If you have data with plans that's been marked for deletion but have not fully removed them yet, upgrade task 2704 will fail with {code} 2011-10-11 16:34:38,598 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-11 16:34:38,598 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] Running upgrade task 2704 : Init BuildResultSummaryRevisionKey 2011-10-11 16:34:38,599 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-11 16:34:38,674 ERROR [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1 com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1 at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId(UpgradeTask2704InitializeRepositoryChangesets.java:295) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.access$100(UpgradeTask2704InitializeRepositoryChangesets.java:37) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate(UpgradeTask2704InitializeRepositoryChangesets.java:161) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:39) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.executeWithResult(BambooTransactionHibernateTemplate.java:34) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.processBRS(UpgradeTask2704InitializeRepositoryChangesets.java:135) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.doUpgrade(UpgradeTask2704InitializeRepositoryChangesets.java:103) at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:200) at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:91) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:115) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:112) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:662) {code}

    Atlassian JIRA | 5 years ago | Mark Chaimungkalanont
    com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1
  2. 0

    If you have data with plans that's been marked for deletion but have not fully removed them yet, upgrade task 2704 will fail with {code} 2011-10-11 16:34:38,598 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-11 16:34:38,598 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] Running upgrade task 2704 : Init BuildResultSummaryRevisionKey 2011-10-11 16:34:38,599 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-11 16:34:38,674 ERROR [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1 com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1 at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId(UpgradeTask2704InitializeRepositoryChangesets.java:295) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.access$100(UpgradeTask2704InitializeRepositoryChangesets.java:37) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate(UpgradeTask2704InitializeRepositoryChangesets.java:161) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:39) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.executeWithResult(BambooTransactionHibernateTemplate.java:34) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.processBRS(UpgradeTask2704InitializeRepositoryChangesets.java:135) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.doUpgrade(UpgradeTask2704InitializeRepositoryChangesets.java:103) at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:200) at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:91) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:115) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:112) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:662) {code}

    Atlassian JIRA | 5 years ago | Mark Chaimungkalanont
    com.atlassian.upgrade.UpgradeException: Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1
  3. 0

    If you're upgrading to 2.7.4 with a repository plugin that doesn't exist (eg Git plugin not installed) the repo information will be stripped out and look like {code:xml} <configuration> <inheritRepository>false</inheritRepository> <selectedWebRepositoryViewer>bamboo.webrepositoryviewer.provided:noRepositoryViewer</selectedWebRepositoryViewer> <repository> <change> <schedule> <cronExpression>0 0 0 ? * MON</cronExpression> </schedule> </change> </repository> <selectedBuildStrategy>schedule</selectedBuildStrategy> <custom> <auto> <label/> <regex/> </auto> <ncover> <path/> </ncover> <clover> <path/> <license/> <useLocalLicenseKey>true</useLocalLicenseKey> <integration>custom</integration> </clover> </custom> </configuration> {code} when you then upgrade from 2.7.4 to 3.3.2 it fails with: {code} 2011-10-19 14:01:16,833 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-19 14:01:16,833 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] Running upgrade task 2704 : Init BuildResultSummaryRevisionKey 2011-10-19 14:01:16,834 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-19 14:01:16,904 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 1000 records, elapsed time: 0:00:00.041, 9223372036854775807 records per second 2011-10-19 14:01:16,915 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 2000 records, elapsed time: 0:00:00.052, 9223372036854775807 records per second 2011-10-19 14:01:16,927 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 3000 records, elapsed time: 0:00:00.064, 9223372036854775807 records per second 2011-10-19 14:01:16,947 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 4000 records, elapsed time: 0:00:00.084, 9223372036854775807 records per second 2011-10-19 14:01:16,982 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 5000 records, elapsed time: 0:00:00.119, 9223372036854775807 records per second 2011-10-19 14:01:16,984 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 6000 records, elapsed time: 0:00:00.120, 9223372036854775807 records per second 2011-10-19 14:01:16,985 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 7000 records, elapsed time: 0:00:00.121, 9223372036854775807 records per second 2011-10-19 14:01:16,990 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 8000 records, elapsed time: 0:00:00.126, 9223372036854775807 records per second 2011-10-19 14:01:16,995 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 9000 records, elapsed time: 0:00:00.131, 9223372036854775807 records per second 2011-10-19 14:01:17,010 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 10000 records, elapsed time: 0:00:00.146, 9223372036854775807 records per second 2011-10-19 14:01:17,020 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 11000 records, elapsed time: 0:00:00.156, 9223372036854775807 records per second 2011-10-19 14:01:17,061 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 12000 records, elapsed time: 0:00:00.196, 9223372036854775807 records per second 2011-10-19 14:01:17,062 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 13000 records, elapsed time: 0:00:00.197, 9223372036854775807 records per second 2011-10-19 14:01:17,124 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 14000 records, elapsed time: 0:00:00.259, 9223372036854775807 records per second 2011-10-19 14:01:17,301 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 15000 records, elapsed time: 0:00:00.435, 9223372036854775807 records per second 2011-10-19 14:01:17,498 ERROR [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1 com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1 at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId(UpgradeTask2704InitializeRepositoryChangesets.java:293) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.access$100(UpgradeTask2704InitializeRepositoryChangesets.java:36) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate(UpgradeTask2704InitializeRepositoryChangesets.java:160) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:39) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.executeWithResult(BambooTransactionHibernateTemplate.java:34) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.processBRS(UpgradeTask2704InitializeRepositoryChangesets.java:134) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.doUpgrade(UpgradeTask2704InitializeRepositoryChangesets.java:102) at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:200) at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:91) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:115) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:112) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:680) {code} we should handle this case and the upgrade should handle this incomplete data

    Atlassian JIRA | 5 years ago | Mark Chaimungkalanont
    com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If you're upgrading to 2.7.4 with a repository plugin that doesn't exist (eg Git plugin not installed) the repo information will be stripped out and look like {code:xml} <configuration> <inheritRepository>false</inheritRepository> <selectedWebRepositoryViewer>bamboo.webrepositoryviewer.provided:noRepositoryViewer</selectedWebRepositoryViewer> <repository> <change> <schedule> <cronExpression>0 0 0 ? * MON</cronExpression> </schedule> </change> </repository> <selectedBuildStrategy>schedule</selectedBuildStrategy> <custom> <auto> <label/> <regex/> </auto> <ncover> <path/> </ncover> <clover> <path/> <license/> <useLocalLicenseKey>true</useLocalLicenseKey> <integration>custom</integration> </clover> </custom> </configuration> {code} when you then upgrade from 2.7.4 to 3.3.2 it fails with: {code} 2011-10-19 14:01:16,833 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-19 14:01:16,833 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] Running upgrade task 2704 : Init BuildResultSummaryRevisionKey 2011-10-19 14:01:16,834 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] -------------------------------------------------------------- 2011-10-19 14:01:16,904 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 1000 records, elapsed time: 0:00:00.041, 9223372036854775807 records per second 2011-10-19 14:01:16,915 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 2000 records, elapsed time: 0:00:00.052, 9223372036854775807 records per second 2011-10-19 14:01:16,927 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 3000 records, elapsed time: 0:00:00.064, 9223372036854775807 records per second 2011-10-19 14:01:16,947 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 4000 records, elapsed time: 0:00:00.084, 9223372036854775807 records per second 2011-10-19 14:01:16,982 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 5000 records, elapsed time: 0:00:00.119, 9223372036854775807 records per second 2011-10-19 14:01:16,984 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 6000 records, elapsed time: 0:00:00.120, 9223372036854775807 records per second 2011-10-19 14:01:16,985 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 7000 records, elapsed time: 0:00:00.121, 9223372036854775807 records per second 2011-10-19 14:01:16,990 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 8000 records, elapsed time: 0:00:00.126, 9223372036854775807 records per second 2011-10-19 14:01:16,995 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 9000 records, elapsed time: 0:00:00.131, 9223372036854775807 records per second 2011-10-19 14:01:17,010 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 10000 records, elapsed time: 0:00:00.146, 9223372036854775807 records per second 2011-10-19 14:01:17,020 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 11000 records, elapsed time: 0:00:00.156, 9223372036854775807 records per second 2011-10-19 14:01:17,061 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 12000 records, elapsed time: 0:00:00.196, 9223372036854775807 records per second 2011-10-19 14:01:17,062 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 13000 records, elapsed time: 0:00:00.197, 9223372036854775807 records per second 2011-10-19 14:01:17,124 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 14000 records, elapsed time: 0:00:00.259, 9223372036854775807 records per second 2011-10-19 14:01:17,301 INFO [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [UpgradeTask2704InitializeRepositoryChangesets] Processed 15000 records, elapsed time: 0:00:00.435, 9223372036854775807 records per second 2011-10-19 14:01:17,498 ERROR [2-UpgradeTaskBackgroundThread:pool-8-thread-1] [AbstractUpgradeManager] com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1 com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1 at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId(UpgradeTask2704InitializeRepositoryChangesets.java:293) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.access$100(UpgradeTask2704InitializeRepositoryChangesets.java:36) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate(UpgradeTask2704InitializeRepositoryChangesets.java:160) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:39) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.executeWithResult(BambooTransactionHibernateTemplate.java:34) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.processBRS(UpgradeTask2704InitializeRepositoryChangesets.java:134) at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.doUpgrade(UpgradeTask2704InitializeRepositoryChangesets.java:102) at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:200) at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:91) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:115) at com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:112) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:680) {code} we should handle this case and the upgrade should handle this incomplete data

    Atlassian JIRA | 5 years ago | Mark Chaimungkalanont
    com.atlassian.upgrade.UpgradeException: Plan DWHEAD-LSGTEST has 0 repositories configured while it should have exactly 1
  6. 0

    Upgrade of Bamboo failing with InterruptedException errors - Atlassian Documentation

    atlassian.com | 6 days ago
    com.atlassian.upgrade.UpgradeException: Unable to upgrade: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; An SQLException was provoked by the following failure: java.lang.InterruptedException; nested exception is java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.upgrade.UpgradeException

      Plan FWORK-MASTER has 0 repositories configured while it should have exactly 1

      at com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId()
    2. com.atlassian.bamboo
      UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate
      1. com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.getRepositoryDefinitionId(UpgradeTask2704InitializeRepositoryChangesets.java:295)
      2. com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.access$100(UpgradeTask2704InitializeRepositoryChangesets.java:37)
      3. com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets$2.doInHibernate(UpgradeTask2704InitializeRepositoryChangesets.java:161)
      3 frames
    3. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
      1 frame
    4. com.atlassian.bamboo
      BambooTransactionHibernateTemplate$1.doInTransaction
      1. com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:39)
      1 frame
    5. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)
      1 frame
    6. com.atlassian.bamboo
      UpgradeLauncher$1.call
      1. com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.executeWithResult(BambooTransactionHibernateTemplate.java:34)
      2. com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.processBRS(UpgradeTask2704InitializeRepositoryChangesets.java:135)
      3. com.atlassian.bamboo.upgrade.tasks.UpgradeTask2704InitializeRepositoryChangesets.doUpgrade(UpgradeTask2704InitializeRepositoryChangesets.java:103)
      4. com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:200)
      5. com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:91)
      6. com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:115)
      7. com.atlassian.bamboo.upgrade.UpgradeLauncher$1.call(UpgradeLauncher.java:112)
      7 frames
    7. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      4. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      5. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7 frames
    8. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame