PyPI (Python) outage, 21 August 2024
PyPI Simple Index Timing Out
- Started
- Resolved
- 21 Aug 2024, 20:23 UTC (after 31 min)
- Impact
- Minor
- Affected
- pypi.org - Backends
Is this still happening?
No. PyPI (Python) marked this incident resolved on 21 Aug 2024, 20:23 UTC, 31 min after it began.
Right now: PyPI (Python) reports all systems operational. (as of 1 Dec, 21:56 UTC) Live PyPI (Python) status
At a glance
- PyPI (Python) rated this a minor incident.
- It was resolved after 31 min. That is shorter than a typical PyPI (Python) incident: the median of the 23 other resolved ones we recorded is 1 h 12 min.
- PyPI (Python) had 2 other incidents in the 30 days before it.
- 5 earlier incidents look like the same kind of problem (same affected part or wording); the most recent was on 2 Oct 2026.
Our summary from the PyPI (Python) incidents we have recorded since 27 Dec 2023 - how we count.
What caused it: PyPI (Python)'s root cause analysis
**What happened?** PyPI experienced an outage which resulted in serving 500-level responses for certain requests, including requests to a subset of the [Simple Repository API](https://peps.python.org/pep-0503/), from approximately 19:00:00 UTC to 20:15:00 UTC. As a result, some packages were uninstallable during this period. While such outages are not entirely uncommon and generally easy to recover from, this outage was more severe due to PyPI becoming un-deployable as a result of its own outage. **Impact** At its peak, PyPI served errors at approximately 25 responses per second and in total nearly 100K requests during this ~1hr 15m period resulted in an error. This represents approximately 0.04% of usual traffic to the affected services. **Background** PyPI is served by a Python web application named ‘Warehouse’, with several dependencies on Python packages that are hosted on PyPI. As part of the deployment pipeline, Warehouse and its dependencies are built into a series of container images that are ultimately deployed into a container orchestration service. At the time of the incident, PyPI contributors were working on adding new functionality, which included introducing a new service to the service layer used with PyPI’s web framework. While the actual details of this new functionality is unrelated, a misconfiguration of this new service resulted in views that depended on this service failing to successfully serve a response, which was missed by PyPI’s unit test suite and by manual testing of the feature branch. **Investigation** PyPI administrators were notified of a production error approximately 10 minutes after it was introduced, and immediately after a faulty request was served: * 2024-08-21T18:48:29 UTC - The feature branch is merged into the \`main\` branch of the Warehouse repository * 2024-08-21T18:55:42 UTC - The container image is built and deployed to production * 2024-08-21T18:58:37 UTC - PyPI admins are notified of an exception in production affecting a Simple Repository API view At this point, PyPI administrators began working on a fix. **Root Causes and Trigger** PyPI administrators immediately determined that the recent merge was at fault due to timing and clear signals from the error observed. As a result of PyPI’s container orchestration and deployment service not explicitly supporting rollbacks, issues like this are generally resolved by introducing a new pull request which reverts the problematic commit, which in turn i...
Last update from PyPI (Python)
**What happened?** PyPI experienced an outage which resulted in serving 500-level responses for certain requests, including requests to a subset of the [Simple Repository API](https://peps.python.org/pep-0503/), from approximately 19:00:00 UTC to 20:15:00 UTC. As a result, some packages were uninstallable during this period. While such outages are not entirely uncommon and generally easy to recover from, this outage was more severe due to PyPI becoming un-deployable as a result of its own outage. **Impact** At its peak, PyPI served errors at approximately 25 responses per second and in total nearly 100K requests during this ~1hr 15m period resulted in an error. This represents approximate...
Read the full incident on the official PyPI (Python) status page
Similar PyPI (Python) incidents
Earlier incidents with the same affected part or wording - useful to see how long this kind of problem usually takes.
-
, resolved after 5 h 17 min
-
, resolved after 37 min
-
, resolved after 17 min
-
, resolved after 12 h 42 min
-
, resolved after 6 h 2 min
Other recent PyPI (Python) incidents
-
Python Infrastructure OutagePostmortem
Something wrong on this page?
Thanks - your report is on its way to us. We read every one.