Answers: <p>The most common reason is that it has run out of memory.</p>
  <p>It is worth checking the CPU and memory usage of the workers, this can happen with really big stacks that are using an <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_SingleMetricPerInstance.html" rel="nofollow noreferrer">EC2 instance</a> (or equivalent) with not enough memory to handle it.</p>
  <p>If you are using Terraform, you could also add the env var <a href="https://developer.hashicorp.com/terraform/internals/debugging" rel="nofollow noreferrer">TF_LOG = DEBUG</a> to get more verbose logging which may give clues.</p>
  <p>Thank you!</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-01-05T14:58:08.030Z
Answers: 2024-01-05T14:58:08.030Z
Answers: Spacelift
Body: <p>I am using a private worker on Spacelift but my run keeps failing with the error &quot;worker crashed&quot;.</p>
  <p>This is only happening on one stack, any suggestions?</p>
  
Tags: <terraform><spacelift>
Title: Why is my private worker crashing on Spacelift?
UserDisplayName: Danielle Murphy
ThreadText: # Why is my private worker crashing on Spacelift?
  
  (Asked by: username_0 on 2024-01-03)
  
  I am using a private worker on username_1 but my run keeps failing with the error "worker crashed".
  
  This is only happening on one stack, any suggestions?
  
  **Tags:** terraform, spacelift
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-05. Score: 1 | Accepted answer
  
  The most common reason is that it has run out of memory.
  
  It is worth checking the CPU and memory usage of the workers, this can happen with really big stacks that are using an [EC2 instance](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_SingleMetricPerInstance.html) (or equivalent) with not enough memory to handle it.
  
  If you are using Terraform, you could also add the env var [TF\_LOG = DEBUG](https://developer.hashicorp.com/terraform/internals/debugging) to get more verbose logging which may give clues.
  
  Thank you!
  
  
  ---
  
  