Skip to content

Incident detail

Python Infrastructure Outage

Resolved incidentCritical1 affected service

Timeline window

to

Outage alerts

Get alerted the next time PyPI breaks

Free email alerts for up to 5 providers. No card, live in about a minute. Paid plans add Slack, Teams, Discord, and webhook delivery across your whole stack, plus higher API quotas.

Timeline

Incident updates

Every update PyPI posted, oldest to newest, exactly as it appeared on their official status page.

  1. Investigating

    We are currently investigating this issue

  2. Investigating

    The root cause has been identified as an erroneous scaling operation that affected some application workloads. All services have been restored and are coming back online. We are monitoring to confirm full recovery.

  3. Resolved

    The incident has been resolved.

  4. Resolved

    The incident has been resolved.

    ## Incident Report: Cluster-wide service outage

    Duration: ~36 minutes (20:04–20:40 UTC)

    Impact: Some PSF-hosted services were unavailable, including python.org, us.pycon.org, PyPI stats, bugs.python.org, and related services.

    What was unaffected was our other cluster that manages PyPI.org among other services related to PyPI.

    Root Cause: During local development of kubernetes workloads locally there was an incorrect context switch to one of our production clusters.

    The scale-down commands ran against the production cluster instead of the local environment, iterating through all deployments and setting them to zero replicas. which created cascading failures.

    Recovery: Services were restored with the help of Ee Durbin by bringing up infrastructure in dependency order, original replica counts were recovered from Kubernetes event history.

    Action items:

    • Separate kubeconfig files for production vs local, rather than relying on context switching
    • Research adding admission control or policies to prevent bulk scale-to-zero operations
    • Document the infrastructure dependency chain and recovery runbook for future incidents

    Jacob Coffee, PSF Infrastructure Team

Keep exploring

More from PyPI

Neighboring incidents on PyPI's timeline and the rest of their record on OutageDeck.