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

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...

Read the full postmortem from PyPI (Python)

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...

22 Aug 2024, 20:47 UTC

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.

  1. , resolved after 5 h 17 min

    PyPI Search Index Degraded

  2. , resolved after 37 min

    PyPI Simple and JSON API Outage

  3. , resolved after 17 min

    PyPI Backends Partial Availability

  4. , resolved after 12 h 42 min

    Issues with search, logins and logged-in pages

  5. , resolved after 6 h 2 min

    Issues with search, logins and logged-in pages

Other recent PyPI (Python) incidents

  1. Multiple services unavailable

  2. Python Infrastructure OutagePostmortem

  3. API Traffic experiencing intermittent failures

  4. PyPI Uploads failing

  5. Slow updates to PyPI pages/API responses

  6. PyPI Partial Outage

  7. PyPI Elevated Error Rates

  8. Download file corruption

All recorded PyPI (Python) incidents

Something wrong on this page?

A person reads every report. We fix our own mistakes - wording, mapping, a moved status page; the status itself always comes from PyPI (Python)'s official page. How we handle corrections.

Thanks - your report is on its way to us. We read every one.