A Docker image build in GitHub Actions dies with "Error: Process completed with exit code 137."
BeginnerTroubleshootingPipeline outages
Answer
Likely causes → The runner ran out of memory and the kernel killed the process (137 = SIGKILL). Common culprits: webpack/TypeScript builds, Gradle daemons, parallel test runners, or docker build with many layers on a small runner.
Diagnose → Re-run with debug logging and print memory in a step (free -m, cat /sys/fs/cgroup/memory.max). Note which step dies.
Fix → Reduce parallelism (--max-workers=2, -Dorg.gradle.workers.max=2), cap tool memory (NODE_OPTIONS=--max-old-space-size=4096), or use a larger runner.
Prevent → Track build memory over time, split huge builds, and use multi-stage Docker builds so heavy compilers don't share memory with test runs.
More on Pipeline outages
Every GitHub Actions job in the org sits at "Waiting for a runner to pick up this job..." for 30 minutes.BeginnerJenkins builds on one agent fail with "java.io.IOException: No space left on device" while checking out code.BeginnerA deploy workflow that worked yesterday fails at `aws-actions/configure-aws-credentials` with "Not authorized to perform sts:AssumeRoleWithWebIdentity".IntermediateEvery pipeline in the company fails at the dependency step with "npm ERR! 503 Service Unavailable" (or PyPI/Maven timeouts) because an upstream registry is having an outage.Intermediate`terraform apply` in CI fails with "Error acquiring the state lock: ConditionalCheckFailedException" and shows a lock from a pipeline run that was cancelled two hours ago.BeginnerArgo CD shows the `payments` app permanently `OutOfSync` and self-heal keeps fighting: replicas jump between 3 and 12 every few minutes.Intermediate