Eli Brody
← Back to blog

The Myth of the Root Cause

· 11 min read
SRE Reliability Operations

The post-mortem is winding down. The timeline is rebuilt and the dashboards have been picked over. Then someone asks what everyone has been waiting for: "So what was the root cause?" The room relaxes, because a root cause gives the outage a story with a culprit and a fix, and then everyone can go back to work.

Complex systems don't fail that way. The root cause is a comforting fiction, a shortcut that lets us feel we understand what happened. The outage that took down your checkout flow for 47 minutes had no root cause. It had a set of contributing factors, none of them enough to cause a failure alone, that lined up in a particular order under particular conditions and produced an outcome nobody predicted.

As long as your organization keeps chasing a single root cause, you'll fix the last incident and leave the conditions for the next one in place.

How Complex Systems Fail

Richard Cook's paper "How Complex Systems Fail" should be required reading for every engineer who has sat in a post-mortem. Its main point is that complex systems carry several latent failures at all times. Your production environment, right now, has misconfigurations that haven't been triggered, race conditions that haven't been hit, capacity limits that haven't been reached and assumptions that haven't been violated. They are always there. That is what normal looks like in a complex system.

Failure comes when enough of those latent conditions line up. A deployment introduces a subtle memory leak. The leak is tolerable under normal traffic, but a marketing campaign drives a 40% traffic spike and the extra traffic speeds the leak up. The OOM killer starts terminating processes. The auto-scaler tries to compensate, but the new instances have the same leak, so they crash too. Meanwhile the retry storm from the dying instances overwhelms the database connection pool, and now the checkout flow is down.

So which one was the root cause: the memory leak, the traffic spike, the auto-scaler configuration, the connection pool size or the retry logic? Each is a legitimate contributing factor, and none of them caused the failure alone. Take any one away and the outage probably doesn't happen, but that doesn't promote it to "the" root cause. You might as well say the root cause of a fire was the oxygen in the room.

The Problem with "5 Whys"

"5 Whys" is one of the most widely used tools in incident analysis, and one of the most misleading. You keep asking "why" until you reach the fundamental cause. Why did the service crash? It ran out of memory. Why did it run out of memory? A memory leak in the new deployment. Why was there a memory leak? The code wasn't properly reviewed. Why wasn't it properly reviewed? We don't have automated memory profiling in CI. So the root cause is insufficient CI tooling.

That feels satisfying. Look at what happened along the way, though: at each step the analyst chose one branch out of several. The service crashed because it ran out of memory, and also because the auto-scaler didn't respond fast enough, because the health check interval was too long, and because there was no circuit breaker on the downstream calls. Every "why" is a fork, and the analyst takes whichever path feels most compelling. What comes out is a narrative. I wouldn't call it an analysis.

Worse, "5 Whys" pulls toward human error. Ask "why" for long enough and you almost always land on "someone made a mistake" or "someone didn't follow the process." That finding is useless. People make mistakes all the time, which is a property of being human and no kind of root cause. If your incident analysis ends with "the engineer should have caught this," you've learned nothing you can act on. The useful thing to ask is why the system let a single mistake cause an outage.

Contributing Factors

Contributing factors are the better mental model. An incident has several conditions behind it. Some are proximate: the direct trigger, like the deployment with the bug. Some are latent: long-standing conditions that set the scene, like the missing circuit breaker or the undersized connection pool. Some are organizational: the team was understaffed, the code review was rushed because of a deadline, the monitoring didn't cover this failure mode.

Listing the factors describes the failure as it happened, in all its complexity. It gives you several places to intervene. And it puts responsibility where it belongs, across systems, processes and organizational decisions, so the blame doesn't run downhill to one person.

Here is the same outage analyzed as contributing factors:

That is six contributing factors and six interventions. A team that settled on the memory leak as the single root cause would have fixed one thing and left the other five in place, ready to combine with some future trigger and produce another outage.

The Blame Trap

Root cause analysis also makes blame convenient. A single root cause often comes with a single person attached: the engineer who wrote the buggy code, the ops person who misconfigured the load balancer, the manager who approved the deployment on a Friday afternoon. Naming the cause slides easily into assigning the blame, even in organizations that claim to practice blameless post-mortems.

I've been in post-mortems that were technically blameless. Nobody was punished and nobody was called out, but the root cause went down as "engineer deployed code with a bug." The words are neutral and the implication isn't. Everyone in the room knows who deployed that code, the engineer included, and so does their manager. It corrodes the team even when nobody says a word about it.

Blame backfires for a plain reason: it suppresses information. If people believe that being associated with an incident costs them something, even socially, as "the person who caused the outage," they work at not being associated with incidents. They take fewer risks. They hide near-misses that they should report. They avoid deploying on their shift, and they write defensive post-mortem timelines that minimize their own part. All of that makes the system less safe.

The organizations that learn the most from incidents are the ones where engineers volunteer information freely, because they know the analysis will look at system conditions and leave individual actions alone. That is what "blameless" means. Mistakes still happen, and when one does it is read as a symptom of how the system was designed.

Learning from Incidents

With the hunt for a root cause set aside, the goal of incident analysis is learning: finding out how your system behaves under stress, which is rarely how you assume it behaves.

An incident shows you interactions between components that nobody documented, and assumptions that were baked into the architecture. It shows the gap between your mental model of the system and what the system does. You can't get this from design docs, architecture diagrams or code reviews. You get it only by watching the system under real failure conditions.

The questions I'd ask in place of "what was the root cause" are these four:

Building Resilience Instead of Fixing Causes

Thinking in contributing factors changes what remediation looks like. You come away with a set of improvements where you used to have one fix. And your aim widens. Stopping this particular incident from recurring is a narrow goal. The wider one is a system that holds up against the whole class of failures the incident belongs to.

Compare "fix the memory leak" with "build systems that tolerate memory leaks gracefully." The first is a point fix and the second is a resilience improvement. Both are worth doing, but the second reaches much further. Circuit breakers, graceful degradation, bulkheading, load shedding and automatic rollbacks don't prevent any specific failure. They limit the blast radius of every failure, including the ones you haven't had yet.

The most resilient systems I've worked with did not have the fewest bugs. Their bugs didn't cascade. One component could fail without taking down the whole service. A bad deployment was rolled back automatically before users noticed. A traffic spike was absorbed through elastic scaling and graceful degradation. Those systems still had memory leaks, misconfigurations and software bugs, and they handled them without turning each one into a customer-facing incident.

Changing the Post-Mortem

To move past root cause thinking, start with your post-mortem template. Remove the "Root Cause" field and put "Contributing Factors" in its place. It sounds cosmetic, and it changes the whole analysis.

A template with one "Root Cause" field makes the analysis converge on one answer. A "Contributing Factors" section makes it spread out, and people start naming conditions they would have glossed over. "Oh, and the health check interval was probably too long." "And we didn't have alerting on connection pool exhaustion." "And the team that owns the upstream service wasn't in the war room because they didn't know we depended on them." Each of those is a real finding with a real improvement behind it.

Structure your post-mortems around these sections:

  1. Timeline. What happened, when, in sequence. Facts, without interpretation.
  2. Impact. Who was affected, for how long, to what degree.
  3. Contributing factors. Every condition that contributed to the incident: technical, procedural and organizational.
  4. What went well. Resilience mechanisms, good decisions, effective responses.
  5. What surprised us. Gaps between expectation and reality.
  6. Action items. Specific improvements, each tied to a contributing factor, each with an owner and a deadline.

"Who was responsible" appears nowhere in that list, on purpose. The post-mortem is there to work out what happened, why, and how to improve.

The root cause of every incident in a complex system is that the system is complex. Everything else is a contributing factor. Start there and you'll build systems that fail less catastrophically. You won't have removed every cause. You'll have made the system able to survive the causes combining, which they will.

Stop looking for the root cause and look for the conditions that made the outcome possible. Fix those, build the resilience, and accept that complex systems will keep surprising you. You can't prevent every failure. You can build systems, and organizations, that handle failure gracefully.

Comments