[bug] service_livekit start: hardcoded Redis port 6379 + claude CLI fallback dependency #185
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#185
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?
Symptoms
service_livekit start --reset --updateaborts with one of two errors depending on the host:Host A — Hetzner deploy as root, no
redis-cliinstalled (reported by Kristof):Host B — herodemo (TF Grid) as
driver, redis-cli installed but Hero's DB on port 6378:Both are bugs in
service_livekit.nu's start path.Root causes
1. Hardcoded port 6379 in
svx_ensure_redis6379is upstream Redis's default port, not Hero's.hero_db(the Hero Redis-compatible service) defaults to 6378 and is configurable. Probing 6379 will always miss Hero's DB on a normal deploy, regardless of platform.2.
redis-cliis a hard external dependencyWhichever Hero service needs to verify the DB is responding should not need a separate Redis client tool.
install_coredoes not (and should not) installredis-cli. Probing via TCP (or trusting that hero_db is in the dependency list and let livekit's own startup fail loudly if it isn't) avoids the external dep entirely.3. "Auto-start Redis" fallback path goes through
^claude(Claude Code CLI)When the redis probe fails, the code falls into
agent.nu's flow which eventually invokes^claude. This is wrong on multiple levels:claudeisn't documented as a runtime prerequisiteProposed fix (small, ~20 lines)
In
tools/modules/services/service_livekit.nu:Read the Redis port from env:
Default to 6378 (Hero's default). Document the env var.
Probe via plain TCP, not redis-cli:
No external CLI dependency. Clear error if hero_db is down — operator drives recovery.
Remove the agent.nu / claude fallback path entirely from this flow. service_livekit should NOT try to auto-start hero_db; that's hero_proc's job via the dependency list.
Acceptance criteria
service_livekit start --reset --updatesucceeds on:service_livekit.nuno longer referencesredis-cliorclaudeHERO_DB_PORTdocumented as the override knob in the service module's docstringservice_db start --resetReferences
hero_demo#46)service_livekit.nu:132lineagent.nu:104shows the unwanted^claudeinvocation in the fallback pathSigned-off-by: mik-tf