[nu-demo] service_livekit has no redis preflight — install fails on fresh VM #133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
service_livekit starterrors with:on a fresh VM. Livekit never comes up because its preflight checks redis via
redis-cliping.Root cause
service_livekit.nu's preflight assumesredis-cliexists and that a localredis-serveris running. Neither is installed by default; theinstallers/installers.nubase set does not includeredis-server/redis-tools(see also companion issue #128 on missing apt deps).Demo workaround (applied 2026-04-23)
Proper fix
service_livekit.nu's install step should:pkg_ensure redis-server redis-toolsso the binaries exist.--daemonize yes— so it restarts on reboot and is observable by the orchestrator.Filed 2026-04-23 nu-shell demo bring-up. Signed-off-by: mik-tf
Fixed in hero_skills commit
4927b3dondevelopment.Two coupled changes implementing both halves of the issue's proper fix:
1. Binary install —
installers/installers.nuinstall_base:apt's
redis-serverpostinst auto-starts the systemd unit on systemd hosts, so most installs reachservice_livekit startwith redis already running. On non-systemd hosts the binary is still present for the daemonize fallback below.2. Proactive start —
services/service_livekit.nusvx_ensure_redis:Replaces the soft warn-only
svx_check_rediswith a 3-step ensure:sudo systemctl start redis-server→ done on systemd hosts.sudo redis-server --daemonize yesfor non-systemd hosts (TF Grid VMs).The bare-daemonize path is explicitly the fallback (with a note that restart-on-reboot won't be automatic), not the canonical path. The issue body called this out specifically ("not a bare
--daemonize yes"); the canonical answer would be to register redis as a hero_proc action so it's restartable + observable like every other hero service. Filed as future work in a later iteration of this meta plan if the daemonize path proves insufficient in practice — for nowredis-serverfrom apt brings its own systemd unit on every Ubuntu we've encountered, so the daemonize fallback is rarely exercised.Verification:
nu -c 'source <file>'parses cleanly for both modified modules.Meta-tracker: home#193.
Signed-off-by: mik-tf