惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

Buttondown's blog

Email could have been X.400 times better The physicists who convinced Fermilab to send Brazil's emails Better in-app previews Analytics 3.0 Subscriber ID variables Comments! Send latest premium action Automation filtering Free API subscribers Surveys in automations Reply to replies Labels for RSS feeds How Jeremy Singer-Vine curates curious datasets for readers 2023 (and what's next) Email vs web content Sort by engagement Better gift subscriptions How Andy Dehnart built a career reviewing television New email template Email-based automations Opt-in reply tracking Automatic alt text More social network integrations Sort by metadata Overlarge image warnings Automation tag actions Pause emails mid-flight Search tags and automations Gift via automations Subscriber-driving emails
Public postmortem: archive downtime
Justin Duke · 2026-01-02 · via Buttondown's blog

TL;DR

On Friday, January 2nd, archives were down for seven minutes from approximately 9:38pm to 9:45pm Eastern. The root cause was a commit that, amongst many other things, included template tags for auto-reloading within debug mode in Django. The problem wasn't with the tags themselves, but with the fact that the third-party package containing those tags was only installed in dev mode — a classic Django anti-pattern.

How did we detect the issue?

Our 500 checker alerted us immediately, and we pinpointed the issue almost instantly.

How did we mitigate the issue?

This is where things got interesting. We attempted three different remediation strategies before landing on one that worked:

  1. Rollback attempt #1: We ran a command to roll back the deploy. This failed because the same commit included a migration to drop the welcome_message column on our newsletter table. Django does not handle this kind of rollback gracefully.

  2. Hotfix attempt #1: We tried committing a fix and pushing directly to Heroku, bypassing CI. This also failed because our deployment process immediately pulls built assets for each commit, which are only built in GitHub Actions.

  3. Manual database fix + rollback: We manually added the welcome_message field back onto the Django table and rolled back to the previous commit. This stopped the bleeding while the hotfix worked its way through CI.

A few minutes later, the hotfix passed CI, deployed successfully, and the incident was resolved.

How will we prevent this from happening again?

This incident highlighted a few things we need to improve:

  1. Staging deploys with health checks: Going forward, we'll change our deployment setup to first deploy to the demo site and run a naive health check against it. Such a health check would have caught this specific error before it reached production. Once that health check passes, we deploy to production and then to all other auxiliary deploy targets.

  2. Better rollback tooling: The front-end build issue — where we couldn't deploy without CI-built assets — is a true own goal. This is largely a documentation issue, since the workaround was there all along, but we need to make it more obvious and accessible in the heat of the moment.

  3. Commit hygiene: The size and complexity of this commit (bringing in an external dependency and dropping a database field) made remediation harder than it needed to be. This was a post-code-freeze commit, so not indicative of a larger pattern, but worth noting.