Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: kill stale PM2 daemon in update.sh to avoid ProcessContainerFork.js crash
Adam Eivyd1b301a75547
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 36a4c48f91..e430fa5e3e 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -3,6 +3,7 @@## Fixed- `update.sh` no longer hangs after "PortOS restarted" — the browser-open script now exits explicitly instead of waiting for Node's undici connection pool to drain.+- `update.sh` now kills the PM2 daemon (not just stops apps) before restarting, fixing crashes where a stale daemon cached a `ProcessContainerFork.js` path from a different project's Yarn PnP zip cache.- Writers-room storyboard renders queued through Codex now wait their turn instead of erroring with "A Codex generation is already in progress" when you fire a second render before the first finishes. Codex jobs run on their own queue lane, so they don't block (and aren't blocked by) local image or video renders.## Addeddiff --git a/update.sh b/update.shindex d77d4dcbc8..659baf6aad 100755--- a/update.sh+++ b/update.sh@@ -76,9 +76,13 @@ run git submodule update --init --recursivestep "submodules" "done" "Submodules updated"log ""-# Stop PM2 apps to release file locks before updating+# Kill PM2 daemon entirely — pm2 stop/restart only signal app processes but+# leave the daemon alive. If the daemon was originally launched from a different+# project (e.g. a Yarn PnP zip cache), it caches a stale ProcessContainerFork.js+# path and all subsequent fork() calls crash with MODULE_NOT_FOUND. Killing the+# daemon forces a fresh launch from our local node_modules on restart.step "pm2-stop" "running" "Stopping PortOS apps..."-run npm run pm2:stop || true+run node ./node_modules/pm2/bin/pm2 kill || truestep "pm2-stop" "done" "Apps stopped"log ""