ServiceRestartLoop on worker-01
Resolved 17:29 UTC after 15 min
This alert on worker-01: First time in 30 days
shop-worker.service on worker-01 is failing and restarting
/opt/shop/worker.py adds import order_templates, but that module isn't installed, so every start of shop-worker.service crashed. After 5 quick restarts systemd gave up, and the worker is now down.What changed, earliest first
| Server | What changed | Before → after | Started | Size of jump |
|---|---|---|---|---|
| worker-01 | service failed cause “shop-worker.service: Main process exited, code=exited, status=1/FAILURE” |
0/min → 11/min from none | 1 min after the alarm | big |
| worker-01 | service restart loop “shop-worker.service: Scheduled restart job, restart counter is at 1.” |
0/min → 6/min from none chart | 1 min after the alarm | clear |
| worker-01 | service stopped “Stopped shop-worker.service - Order confirmation worker.” |
0/min → 1/min from none chart | 1 min after the alarm | small |
Investigation
Evidence:
- 17:09:01: the old worker was healthy and logged "sent 131001 order confirmations".
- 17:14:13.506: shop-worker.service was stopped and restarted. Nothing in the logs shows who triggered it.
- 17:14:13.667: the new code failed at line 1 with "ModuleNotFoundError: No module named 'order_templates'" ("# new in this release"). This repeated 5 times, and at 17:14:15.870 systemd logged "Start request repeated too quickly".
Action: Deploy the missing order_templates module or roll worker.py back. Then run systemctl reset-failed shop-worker and restart the service. Order confirmations are not being sent until then.
Origin check: The host is right, but the pre-pass prime suspect (service failures) is a symptom. The cause was the incomplete release that took effect at the 17:14:13 restart.
Written by claude-opus-5-5 from the evidence above.
Alerts in this incident
- ServiceRestartLoop on worker-01 17:14 UTC
Runbook
systemd keeps restarting this service. journalctl -u <unit> -n 50 shows why: usually a bad config change, a missing file or a port already in use.
Whyfire's starter runbook
Incidents like this before
- None in the last 90 days
Silenced before
- Never silenced in the last 6 months
Also started nearby
- None
3 AI turns · about $0.058