Repository navigation
fix: fail clearly when the Pod has no build instead of crash-looping - #799
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Oct 9, 2026
Merged
…restarting a missing build Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Merged
2 of 3 tasks
ng
added a commit
that referenced
this pull request
Oct 10, 2026
…, and missing-build guard (#800) Promote `dev` at `74110f700ecf371fb68ef4eff99cdc4b561c9c49` to `main`. - **No false pump stalls from priming** (#798): scheduled priming could produce pump motion before the status poll reported `isPriming`, arming the stall guard on an idle side. Priming intent is now tracked from command dispatch, bounded to 90 seconds both in flight and after the ACK, and real heating runs stay protected. - **HomeKit pump faults move to the thermostats** (#798): stalls now show as `StatusFault` on each Bed thermostat instead of separate pump `LeakSensor` accessories. Pairing and thermostat IDs are unchanged. **Automations that used the removed leak accessories need to be recreated, and stalls no longer raise HomeKit critical water-leak alerts.** sleepypod stall notices and the MQTT problem sensors are unchanged. - **A missing build fails clearly instead of crash-looping** (#799): `next build` refuses to run on an installed Pod (override only with `SP_ALLOW_POD_BUILD=1`). When `.next/standalone/server.js` is missing, the service logs recovery steps and stops (exit 78, no restart) instead of looping on a misleading pnpm error. `sp-update` installs the new ExecStart as a drop-in, so existing Pods pick it up. ## Test plan - [x] dev CI (lint, typecheck, unit tests, build) green on #798 and #799 through the dev merge queue - [x] CodeRabbit (via mirror) on both PRs; the four findings were fixed and confirmed resolved - [ ] After release: `sp-update main` on the Pod; `systemctl cat sleepypod` shows `execstart.conf` with `RestartPreventExitStatus=78`; service active; web UI loads 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A community user ran
next buildon their Pod. Next empties.nextbefore compiling, and the build can't finish in 2GB of RAM, so.next/standalone/server.jsdisappeared. The unit then fell back topnpm start. That fallback can never work because the service runs assleepypodwith home/nonexistent. The result was a crash loop (574 restarts) whose only error was a misleading pnpm permission failure.next.config.mjs: refusesnext buildwhen/etc/sleepypod/data-direxists (only installed Pods have it). This happens during config load, before Next touches.next. Override withSP_ALLOW_POD_BUILD=1.scripts/install: removes the deadpnpm startfallback. Whenserver.jsis missing, ExecStart now prints the recovery steps (sp-update/./scripts/deploy POD_IP) and exits 1.scripts/bin/sp-update: writes the same ExecStart as anexecstart.confdrop-in, so already-installed Pods pick it up on OTA updates. This follows the existingnats-ordering.confpattern, andsp-uninstallalready removessleepypod.service.d.docs/DEBUGGING.md, and a "Changing the code" note indocs/DEPLOYMENT.md.Test plan
next buildfails during config load with the refusal message; a placeholder.next/standalone/server.jssurvivesSP_ALLOW_POD_BUILD=1, the config still loadspnpm buildon macOS succeeds and produces.next/standalone/server.jsserver.jsis missing, and execs node when it's presentbash -npasses onscripts/installandscripts/bin/sp-update; eslint and tsc are cleansp-update, confirm/etc/systemd/system/sleepypod.service.d/execstart.confexists andsystemctl cat sleepypodshows the new ExecStart, and confirm the service starts normally.next/standalone/server.jsaside, confirmjournalctl -u sleepypodshows the recovery message, then restore the file🛏️ Beam this PR onto a sleepypod ✨
Pick the snippet that matches your pod. Already-installed pods can't use the curl bootstraps below — sleepypod's egress firewall DROPs github.com, and the script that knows how to unblock WAN is the very file curl is trying to fetch. Use
sp-updateinstead; it's on disk and opens WAN as its first step.🔄 Already on a sleepypod (most common — review a PR on a running pod):
🚀 Fresh pod / first install — bootstraps from GitHub, rebuilds every push:
curl -fsSL https://raw.githubusercontent.com/sleepypod/core/fix/missing-build-crash-loop/scripts/install \ | sudo bash -s -- --branch fix/missing-build-crash-loop🎯 Pin to this exact build (run 38014455292 ·
f66dd3d) — fresh-pod path, locked to one CI artifact for reproducible review:🧊 Artifact:
sleepypod-core· self-destructs in 30 days 💥