Files
spark 4eac0e6f95
ci / rust (push) Successful in 3m51s
ci / typescript (push) Successful in 7m22s
fix(infra): serialize pm2 startOrReload between boot.sh and deploy.sh
Live incident 2026-10-19: node09 rebooted and photoreport-boot.service ran
twice concurrently against a freshly-spawned, still-empty PM2 daemon. Both
invocations saw "not running" and launched photoreport-api, creating a
duplicate that crash-looped forever on EADDRINUSE (1700+ restarts by the
time it was caught, silently -- the original instance kept serving so
/health never flagged it). Deleted the ghost process and re-saved live.

Wrap the pm2 startOrReload calls in both scripts with the same flock so a
boot racing a webhook-triggered deploy (or a double-invoked boot unit)
serializes instead of racing the "is it running" check.

Paperclip-Issue: BIT-31073
Paperclip-Run: 9c6946f6-df0c-4544-97ac-6b00a2de8bd1
2026-10-19 10:05:23 +01:00
..

infra

Provisioning for the LXC containers on Proxmox (next environment first), Cloudflare DNS, per-service Compose files. See docs/ARCHITECTURE.md -> Infrastructure.