Admin UI service discovery fails on the renamed router binary and the fixed 9988 bind #126
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_router#126
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?
The shared admin UI (
hero_components) lists services by calling the router's ownlistmethod at/api/services/rpc. The router binary was renamed fromhero_routertohero_router_server, and only the newhero_router_serverserves that endpoint. Any environment still running the oldhero_routerbinary answers that call withSocket 'web_services.sock' not found for 'api', so the admin UI cannot enumerate services and every service pane (biz, planner, kimi) fails to load, even though the per-service domain calls at/<service>/rpc/api/{domain}/rpcwork fine when hit directly.A second problem shows up when trying to run the new binary for local verification:
hero_router_serveralso binds TCP127.0.0.1:9988(its UI host default) regardless of the--bind ADDR:PORTvalue, so a second instance cannot start alongside an existing router and fails withAddress already in use. Could you confirmhero_router_serveris the canonical binary going forward and is published and installed everywhere, and make the TCP bind honor--bindso a second instance can run on another port for testing? This currently blocks the in-browser verification of the Dioxus admin panes tracked in lhumina_code/home_lhumina#309 . Happy to test once it lands.Signed-by: mik-tf mik-tf@noreply.invalid
we don't want things like --bind ADDR:PORT
there should not be 2 routers running
its now like any _serversame code path
in general no separate paths for testing please, messes up everything sockets, tcp ports
Thanks, that settles it. Confirmed hero_router_server is the canonical binary (same _server convention and code path as every other service), and we will not add a bind flag or run a second router on another port. The admin UI discovery failure only happened where the old hero_router binary was still running, so the fix is purely on the install side: start hero_router_server and never the old hero_router. I will update the installer accordingly and drop the stale hero_router asset so it stops being pulled in. Closing as resolved.
Signed-by: mik-tf mik-tf@noreply.invalid