com.atlassian.workcontext.exception.WorkContextSeveredException: Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214}

Atlassian JIRA | Aulia Fajri [Atlassian] | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary The Mail Queue Service fails to initialise correctly after an upgrade. Outgoing Mails queue up in the queue and are not sent. Customers don't receive notifications h3. Logs {noformat} 2016-09-03 07:50:00,069 Caesium-1-1 ERROR anonymous Mail Queue Service [c.a.jira.service.ServiceRunner] An error occurred while trying to run service 'Mail Queue Service'. Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214} com.atlassian.workcontext.exception.WorkContextSeveredException: Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214} at com.atlassian.workcontext.api.PrivateWorkContext.lambda$getLocalMap$0(PrivateWorkContext.java:143) at java.util.Optional.orElseThrow(Optional.java:290) at com.atlassian.workcontext.api.PrivateWorkContext.getLocalMap(PrivateWorkContext.java:143) at com.atlassian.workcontext.api.PrivateWorkContext.setLocal(PrivateWorkContext.java:151) at com.atlassian.workcontext.api.WorkContextLocal.set(WorkContextLocal.java:83) at com.atlassian.jira.security.JiraAuthenticationContextImpl.clearRequestCache(JiraAuthenticationContextImpl.java:58) at com.atlassian.jira.util.thread.JiraThreadLocalUtils.preCall(JiraThreadLocalUtils.java:71) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:59) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:63) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Workaround * Manually Flush the Email Queue. (sends queued emails but doesn't solve the problem) * Restart the instance for the service to be started correctly again. Please have the site Technical Contact raise a [Cloud Support request|https://support.atlassian.com] and provide the best time for a restart.

    Atlassian JIRA | 6 months ago | Aulia Fajri [Atlassian]
    com.atlassian.workcontext.exception.WorkContextSeveredException: Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214}

    Root Cause Analysis

    1. com.atlassian.workcontext.exception.WorkContextSeveredException

      Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214}

      at com.atlassian.workcontext.api.PrivateWorkContext.lambda$getLocalMap$0()
    2. com.atlassian.workcontext
      PrivateWorkContext.lambda$getLocalMap$0
      1. com.atlassian.workcontext.api.PrivateWorkContext.lambda$getLocalMap$0(PrivateWorkContext.java:143)
      1 frame
    3. Java RT
      Optional.orElseThrow
      1. java.util.Optional.orElseThrow(Optional.java:290)
      1 frame
    4. com.atlassian.workcontext
      WorkContextLocal.set
      1. com.atlassian.workcontext.api.PrivateWorkContext.getLocalMap(PrivateWorkContext.java:143)
      2. com.atlassian.workcontext.api.PrivateWorkContext.setLocal(PrivateWorkContext.java:151)
      3. com.atlassian.workcontext.api.WorkContextLocal.set(WorkContextLocal.java:83)
      3 frames
    5. com.atlassian.jira
      ServiceRunner.runJob
      1. com.atlassian.jira.security.JiraAuthenticationContextImpl.clearRequestCache(JiraAuthenticationContextImpl.java:58)
      2. com.atlassian.jira.util.thread.JiraThreadLocalUtils.preCall(JiraThreadLocalUtils.java:71)
      3. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:59)
      4. com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:63)
      5. com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44)
      6. com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32)
      6 frames
    6. com.atlassian.scheduler
      SchedulerQueueWorker.run
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
      2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
      3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
      4. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)
      5. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410)
      6. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388)
      7. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)
      8. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)
      9. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
      10. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
      11. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
      11 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame