Catalogue / cratesio-2020-index-publish-data-loss

A crates.io background job reports success for a failed push during a GitHub outage, and newly published versions are missing from the index

crates.io team (Rust project), 2020. Crates.io web application (index publishing background job).

Organisation
crates.io team (Rust project)
Evidence
Incident report
System
crates.io web application (index publishing background job)
As of
2020-02
Source
crates.io incident report for 2020-02-20

Inside Rust Blog, published 2020-02-26

Architecture

When a crate is published, crates.io queues a background job that uploads a new commit to the index, a repository hosted on GitHub. A job scheduler removes a job from the queue once it reports success.

Section: Root cause of the outage

Records

Failure#f1

A push that failed during a GitHub outage was reported as successful, so the job was dropped from the queue and its work lost

cratesio-2020-index-publish-data-loss#f1 at corpus version 26a1b3a7e3dd
Trigger

GitHub, which hosts the index repository, had an outage and gave an unexpected response to the push.

Near: triggered by an unexpected response during

How it failed

In some corner cases the code that pushes new commits to the index returned a successful status although the push had failed. The job scheduler took the upload as done and removed the job from the queue, so the commits were lost and the published crates did not appear in the index.

Section: Root cause of the outage

Why defences did not hold

Monitoring covered jobs that fail to execute, and this job was wrongly marked as correct, so nobody was paged. The team calls it luck that two members with access to both the support mailbox and production were online. Logging recorded neither index pushes nor background job runs, and the publish API log line lacked the crate name.

Section: Postmortem

Impact

Versions of the crates kaze, wasmer-runtime-core and wasmer-win-exception-handler published at 21:17 UTC on 2020-02-20 were missing from the index. The fix reached production 1 hour and 31 minutes after the incident began; deploying it took far longer than expected because changes merged but not yet live lengthened the build and raised the risk. A later check of the database found no other crate affected.

Section: Timeline of events | Section: Postmortem | Near: finds out no other

Fix

A fix for the misreported success was written by one team member, reviewed by another and deployed directly to production. The broken entries were removed from the database by hand and the reporter asked to upload again. Planned: logging for index publishing, background jobs and the publish API call; a periodic check of index against database that allows for crates still queued and pages on a mismatch; a look at self-healing; and hotfixes branched off the deployed commit.

Section: Resolution | Section: Action items | Section: Postmortem

Review

Extracted by
Claude (feed 29)
Human review
Not started. Status recorded on 2026-12-02.