pm2 startOrReload on pr-api hung after the 2026-11-18 reboot. systemd killed photoreport-boot at 300s and left PM2 empty, so api.next returned 502 and fpa.photoreport.pt returned 500, and the process could not report it.
Bound the PM2 call in boot.sh and deploy.sh (kill the daemon and try once). The boot unit retries on failure.
Test plan
bash -n on both scripts
After merge, the next API deploy's checkout contains pm2_reload / pm2_start
https://api.next.photoreport.pt/health stays 200 through the deploy
## Summary
- `pm2 startOrReload` on pr-api hung after the 2026-11-18 reboot. systemd killed `photoreport-boot` at 300s and left PM2 empty, so `api.next` returned 502 and `fpa.photoreport.pt` returned 500, and the process could not report it.
- Bound the PM2 call in `boot.sh` and `deploy.sh` (kill the daemon and try once). The boot unit retries on failure.
## Test plan
- [ ] `bash -n` on both scripts
- [ ] After merge, the next API deploy's checkout contains `pm2_reload` / `pm2_start`
- [ ] `https://api.next.photoreport.pt/health` stays 200 through the deploy
pm2 startOrReload hung on pr-api after the 2026-11-18 reboot. systemd killed
photoreport-boot and the process list stayed empty, so nothing could report
the outage. Bound the call, reset the daemon once, and retry the unit.
spark
merged commit 53fa7e110c into main2026-11-19 00:22:41 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
pm2 startOrReloadon pr-api hung after the 2026-11-18 reboot. systemd killedphotoreport-bootat 300s and left PM2 empty, soapi.nextreturned 502 andfpa.photoreport.ptreturned 500, and the process could not report it.boot.shanddeploy.sh(kill the daemon and try once). The boot unit retries on failure.Test plan
bash -non both scriptspm2_reload/pm2_starthttps://api.next.photoreport.pt/healthstays 200 through the deploy