Outage explained
The GitLab database incident of January 2017, explained
A tired engineer ran a delete command on the wrong server. Then the team found that most of their backups did not work. They livestreamed the recovery.
3 min read10 sectionsUpdated
On this page
What happened
GitLab.com was dealing with load from spam that was slowing database replication. While trying to restart replication late at night, an engineer meant to delete the data directory on the secondary database server so it could be re-synced, but ran the command on the primary instead. They stopped it within seconds, but most of the production data was already gone.
The team then went through their recovery options and found that several of them did not work as expected: regular database dumps had been failing silently, and other copies were incomplete. They restored from a staging snapshot taken about six hours earlier, and data created in those six hours was lost.
Lessons for every team
Test restores, not backups
A backup is only real when you have restored from it recently. Schedule restore drills and time them.
Alert when backups fail
Silent failures are the danger. A heartbeat from every backup job, with an alert when it does not arrive, catches them.
Make the dangerous host obvious
Different prompts or colours for production, and confirmation for destructive commands, prevent wrong-host mistakes.
Be open
GitLab’s transparency during and after the incident earned a lot of goodwill.
What monitoring can and cannot do here
Monitoring could not stop the command, but heartbeat monitoring on backup jobs would have flagged the failing dumps long before they were needed. Check your job schedules with the cron expression explainer.
Source: GitLab’s postmortem of the database outage of January 31. This summary is ours; read the original for the full detail.
What happened to GitLab in 2017?
An engineer accidentally deleted the production database directory, and several backup methods turned out not to work, so about six hours of data was lost.
Was repository code lost?
GitLab said Git repositories were not affected; database records such as issues and merge requests from that window were.
What is the main lesson?
Test your restores regularly and alert when backup jobs fail.
Check it now, free
- Is GitLab down? Live status: checked every few minutes, with outage history.
- MTTR and MTBF calculator: MTTR, MTBF, MTTD, MTTA and availability.
- Downtime cost calculator: What an outage costs per minute, hour and year.
Related reading
- The AWS S3 outage of February 2017, explained: How a mistyped command during debugging took Amazon S3 in us-east-1 offline for about four hours on 28 February 2017, why recovery was slow, and the lessons.
- Incident report template: A free, copy-ready incident report template for software and IT teams: summary, impact, timeline, root cause and actions, with tips for good reports.
- The Fastly outage of June 2021, explained: How one customer’s valid configuration change triggered a latent bug and took most of Fastly’s CDN down on 8 June 2021, with major sites.
- The AWS us-east-1 outage of December 2021, explained: Why AWS us-east-1 had a multi-hour outage on 7 December 2021: internal network congestion after an automated scaling activity, and the lessons.
- The AWS us-east-1 outage of October 2025, explained: Why AWS us-east-1 failed on 20 October 2025: a race condition left DynamoDB’s DNS record empty, the cascade that followed, and the lessons.
- The Cloudflare outage of July 2019, explained: How one regular expression in a WAF rule pushed CPU to 100% across Cloudflare’s network on 2 July 2019, causing 502 errors, and the lessons.
Know about your own outages first
Uptime checks every minute, alerts with on-call escalation, incident timelines and a status page, with a free tier on every product.