Skip to content

2026-11-11: webshop demo shop's checkout refused by Stripe after the nightly seed reset

Kind: reference (incident report)

Severity: warning (alert severity critical; shop-demo is the staging shop, with no customers) · Status: resolved · Resolved by: operator agent (eloro #2808, #2809), with eloro/webshop-platform#696 and Skatzi/platform#1351; deployed by #2814, confirmed after the next reset by #2813 · Duration: 6 h 4 min (first failed check 03:07:58 until both shop pods ran v1.137.10 at 09:12:27; alerts 03:17:01 until 08:58) · Taskbase task: eloro #2808, eloro #2809

Summary

After the demo shop's nightly seed-reset at 03:00 on 11-11, every synthetic checkout on webshop got 503 from POST /api/v1/checkout. Stripe refused the Checkout session because its idempotency key checkout:<order-id>:<attempt> repeated a key from the day before, now with other parameters. The reset starts the order ids again. eloro #2783 fixed the key on main (released in v1.137.8), but shop-demo still runs v1.112.0. The fix raises the demo's image to v1.137.10 behind the shop's backup gate, and it was not merged when this run ended.

Impact

  • Services: shop-demo on webshop: Stripe Checkout for every new order, both the synthetic check and any visitor. The storefront pages and Stripe event processing stayed within their SLOs.
  • Users: none outside the platform. The demo shop is staging; the staging gate's checkout journey would fail on the same error.
  • Data: none. Orders are created and then fail at Stripe, and the next nightly reset removes them.
  • Duration: from the first failed check at 03:07:58 (alert 03:17:01) until both shop pods ran v1.137.10 at 09:12:27. The checks after the next reset, on 11-12, succeeded.

Timeline

All times UTC, 2026-11-11.

Time Event Source
02:00 Daily backup shop-demo-db-daily-20261111020000 completed kubectl get backups.postgresql.cnpg.io -n shop-demo
03:00:00 CronJob seed-reset runs shop seed --reset (Job seed-reset-29906100, done 03:00:05) Job status
03:07:58 First failed check: web-primary logs Try using a key other than 'checkout:11:1'; the worker logs POST /api/v1/checkout: status 503 pod logs
03:12:58, 03:17:58, 03:22:58 Same error for orders 12, 13 and on pod logs
03:17:01 Detected: ShopErrorBudgetBurnFast fires (eloro #2808) Alertmanager on webshop
03:18 operator agent confirms that the alert fires and is not silenced, and finds the SLI and the cause Alertmanager and Prometheus through the Service proxy
03:23:01 ShopSyntheticCheckoutFailing fires as well (eloro #2809, opened 03:24) Alertmanager
03:23 eloro/webshop-platform#696 (image v1.137.10) opened, then this pull request (gate target_version, report) pull requests
04:13 eloro/webshop-platform#698 (runbook only) merges; its merge closes eloro #2809 while the alert still fires. Flux rolls shop to revision 183 and restarts the worker (worker-6754b9d84f-722w9), still on v1.112.0 Gitea, flux get helmreleases
04:18:38–04:33:38 The new worker's checks fail the same way (orders 26–28 in the web-primary logs that remain, checkout:<id>:1) pod logs
04:33:31 ShopSyntheticCheckoutFailing fires again for the new worker (fingerprint aa3faaab9faf07e6); eloro #2809 reopens 04:34 Alertmanager, Taskbase

Root cause

The demo shop's seed-reset CronJob (0 3 * * *, eloro/webshop-platform deploy/demo/helmrelease.yaml) resets the database, so order ids start again each night. Up to v1.137.7 the shop built Stripe's idempotency key from the order id and attempt alone (checkout:%d:%d, internal/orders/payment.go). Stripe keeps a key for at least 24 hours, and the same key with other parameters is refused: Keys for idempotent requests can only be used with the same parameters they were first used with. The shop turns that into 503 (no payment possible). eloro #2783 (eloro/webshop-platform commit 7579d20) adds the order's creation time to the key, checkout:<order-id>:<created>:<attempt>, and first shipped in v1.137.8.

The fix did not reach the demo. Its image.tag is pinned in Git. The release workflow's demo job, which raises it in a chore(demo) pull request, arrived with eloro #2439 at about 16:02 on 11-10, after the last release (v1.137.10 at 10:37). Renovate's earlier bump (eloro/webshop-platform#568, v1.115.0) was abandoned while the demo had no backup gate.

What the agent did

Read-only, against webshop with --context webshop (ops runbook, rules of engagement, rule 8), following the alert's runbook docs/runbooks/shoperrorbudgetburnfast.md in eloro/webshop-platform:

  1. Alertmanager api/v2/alerts?filter=alertname="ShopErrorBudgetBurnFast" through the Service proxy returned state: active with cluster=webshop, no silence and no inhibition.
  2. Prometheus, each SLI of the rule: synthetic checkout over 5 minutes 1 (all checks failed, worker worker-66c65c6d69-klstl), and the v1.112.0 fallback over 1 hour 0.175 (above 0.144), because shop_synthetic_checkout_checks_total does not exist on v1.112.0. Page latency over 5 minutes and 1 hour was 0. There were no Stripe event series.
  3. kubectl logs of the worker and of web-primary: the 503s, and the Stripe idempotency error for orders 11, 12 and 13.
  4. kubectl get pods,jobs -n shop-demo: Job seed-reset-29906100 ran 03:00:00–03:00:05. The worker image is webshop-platform:v1.112.0, running for 10 hours, with no restarts.
  5. Checked eloro #2783, done 11-10, and its commit 7579d20, first in tag v1.137.8. The Harbor manifest of v1.137.10 returned 200.
  6. Backup gate, read-only: Kustomization shop-demo-preupgrade Ready, with target_version: v1.112.0. ConfigMap preupgrade-demo lastSuccess: 2026-11-10T09:01:53Z. drill-demo lastSuccess: 2026-11-08T04:01:57Z. Cluster shop-demo-db ContinuousArchiving=True.
  7. Migrations 000042–000052 in the range v1.112.0..v1.137.10: expand-only. None has a DROP, a rewrite or a data change, and the chart has no webshop.skatzi.com/backup-gate annotation. The demo's gate still asks for a backup before any migration-bearing image, so the bump is paired.
  8. eloro/webshop-platform#696: image.tag v1.112.0 → v1.137.10, and the demo README's gate section and a live check.
  9. This pull request: cluster/webshop/shop-demo/kustomization.yaml target_version → "v1.137.10", so the Job cnpg-drill/preupgrade-shop-demo-db backs up v1.112.0 and restores it before the new image.

The agent made no write to the cluster, and set or expired no silence.

For eloro #2809 (ShopSyntheticCheckoutFailing, the same cause), following docs/runbooks/shopsyntheticcheckoutfailing.md, read-only:

  1. At 03:51 Alertmanager api/v2/alerts?filter=alertname="ShopSyntheticCheckoutFailing" through the Service proxy returned state: active, cluster=webshop, pod worker-66c65c6d69-klstl, with no silence.
  2. Prometheus (external_labels.cluster: webshop): shop_synthetic_checkout_success{namespace="shop-demo"} was 0.
  3. The worker logged POST /api/v1/checkout: status 503 on every check from 03:07:58 to 03:47:58. web-primary logged the Stripe idempotency error for orders 11 to 19. https://demo.eloro.dk/ and the synthetic product page /p/tandboerstning returned 200.
  4. A read-only SELECT on orders.customer_order: ten synthetic orders (ids 11–20) in pending_payment, one per failed check, and no non-synthetic order since the reset. They hold no stock once their 38-minute reservation lapses, and the next reset removes them.
  5. Opened no second fix. eloro/webshop-platform#698 adds this failure mode to the alert's runbook.

When eloro #2809 reopened, the second run checked the following at 04:35, read-only, with --context webshop:

  1. Alertmanager api/v2/alerts?filter=alertname="ShopSyntheticCheckoutFailing" through the Service proxy returned state: active, cluster=webshop, pod worker-6754b9d84f-722w9, with no silence.
  2. kubectl get deploy -n shop-demo: web-primary and worker still run webshop-platform:v1.112.0. flux get kustomizations -A --status-selector ready=false returned nothing. HelmRelease shop-demo/shop is Ready at 0.1.0+cc88ff085b2b. Kustomization shop-demo-preupgrade is Ready at main@sha1:dd2d376, so its target is still v1.112.0.
  3. Logs: the worker logged POST /api/v1/checkout: status 503 on each check from 04:18:38 on. web-primary logged Keys for idempotent requests can only be used with the same parameters they were first used with for checkout:26:1, checkout:27:1 and checkout:28:1. This is the same cause.
  4. eloro/webshop-platform#696 has its content approved and is mergeable. It waits for this pull request and for eloro/webshop-platform#699 (Go 1.26.11, eloro #2810), whose security job now passes.

The run made no write to the cluster and opened no new fix. The alert resolves only once #696 is deployed.

Resolution and verification

Resolved: v1.137.10 deployed at 09:12:27 on 11-11, and the checks after the 03:00 reset on 11-12 succeeded (see the updates below). The plan as written in the first run: merge this pull request first. Then check that the Job cnpg-drill/preupgrade-shop-demo-db completed, and that kubectl --context webshop -n cnpg-drill get configmap preupgrade-demo shows targetVersion: v1.137.10 with a lastSuccess after the merge. Merge eloro/webshop-platform#696 after that. Done is shown by:

  • kubectl --context webshop -n shop-demo get deploy worker -o jsonpath='{..image}' ends in :v1.137.10;
  • shop_synthetic_checkout_success returns to 1 on the next check;
  • both alerts resolve, and the check after the next 03:00 reset succeeds.

Update, 09:13. The gate passed: lastSuccess 07:43:43, targetVersion: v1.137.10. #696 merged at 08:08:18, but its upgrade stalled on the chart's seed hook until 08:57 (webshop demo shop's upgrade to v1.137.10 stalled, #2814). By 09:12:27 web-primary and worker ran v1.137.10. At 09:13 shop_synthetic_checkout_success was 1 and neither alert fired. The check after the next 03:00 reset is still to come, so the status is mitigated.

Update, 2026-11-12 03:31 (#2813). Checked read-only on webshop (--context webshop, Prometheus external_labels.cluster: webshop), through the Service proxy. The demo now runs webshop-platform:v1.138.0 (HelmRelease shop-demo/shop revision 211, Ready, deployed 02:24:47 by a later demo release bump), which still carries the key fix of v1.137.8.

  1. CronJob seed-reset ran Job seed-reset-29907540 03:00:00–03:00:04, succeeded: 1.
  2. shop_synthetic_checkout_success{namespace="shop-demo"} from 02:30 to 03:31 was 1 on every sample of worker worker-7f988777f5-chqhd, except its first minutes 02:26–02:30, before its first check (checks_total 0). shop_synthetic_checkout_checks_total rose by one every 5 minutes, 5 at 02:55 to 12 at 03:30, and shop_synthetic_checkout_failures_total and shop_synthetic_checkout_consecutive_failures stayed 0. Each other 0 since 11-11 09:13 is the same first minutes of a new worker pod after a rollout.
  3. After the reset the order ids started again: synthetic orders 10000–10005 were created at 03:04:58, 03:09:58 and on to 03:29:58. The reset starts the ids again, so these repeat the ids of the checks after the reset the day before (Job seed-reset-2814, 11-11 08:57), within Stripe's 24 hours. Every check that went through Stripe passed. The logs of web-primary (both pods) and worker since 02:55 have no idempotency error, no 5xx and no error.
  4. Alertmanager api/v2/alerts returned only Watchdog (active) and the suppressed InfoInhibitor and CPUThrottlingHigh, all cluster=webshop, and no silence is active. Prometheus ALERTS from 11-11 03:00 to 11-12 03:35 shows ShopErrorBudgetBurnFast and ShopErrorBudgetBurnSlow firing last at 08:10 on 11-11, ShopSyntheticCheckoutFailing at 08:58, and neither pending nor firing since.

The checkout survives the nightly reset, so the incident is resolved.

Follow-ups

  • eloro/webshop-platform#696: the image bump (eloro #2808).
  • eloro #2768: removes the burn alerts' v1.112.0 fallback once shop-demo runs v1.137.1 or later, which #696 makes possible.

References

Open questions

  • Whether the collisions would have stopped on their own during the day. Each order id is reused at about the same time of day as the day before, close to Stripe's 24-hour minimum, so this was not relied on.
  • Whether the staging gate's soak, which runs on the merge of #696, stays red while the 6-hour ShopErrorBudgetBurnSlow window still holds this morning's failed checks. If it does, dispatch staging-gate again once the alerts have cleared.