fix(clients): suggest --root when only the root daemon socket is up #161
No reviewers
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!161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/client-root-scope-hint-151"
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?
Closes #151.
What changed
tools/modules/clients/lib.nuexposesclient_check_socket [user, root, service]— when the user-scoped socket is missing, itsudo test -e's the root-scoped one and either tells the operator to add--rootor to runservice_<name> start.mycelium,proc,router,proxy,codescalers) calls the helper in its non-root branch before delegating toopenrpc_call. (codescalerswas not listed in the issue body but follows the exact same pattern.)tools/modules/openrpc.nu: extractedopenrpc_socket_existsso the helper andopenrpc_callshare one sudo-aware probe; trimmed the now-redundantIs the service running?from the bareopenrpc_callerror since the wrapper owns that messaging now.tools/modules/clients/mod.nure-exports the new helper.Live verification on kristof6
This machine had only a root-scoped mycelium daemon when the change was tested — exactly the bug repro from the issue.
Before (today, on
development):After:
All 8 modified/new modules parse-checked:
openrpc.nu,clients/lib.nu,clients/mod.nu,clients/mycelium.nu,clients/proc.nu,clients/router.nu,clients/proxy.nu,clients/codescalers.nu.Test plan
mycelium address(root-only daemon) → new actionable errormycelium address --root→ unchanged successmycelium addressandmycelium address --rootsucceed (no false-positive on the helper)mycelium addressproduces theservice_mycelium starthint--rootwhen only the root-scoped daemon socket exists #151View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.