The dashboard server does not record its own pid, so 'iw server stop' and 'iw server status' answer about a dead process #573
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#573
Loading…
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 dashboard daemon does not write its own pid to
~/.local/share/iw/server/server.pidwhen it is started directly (java -jar out/dashboard/assembly.dest/out.jar ...). The file keeps whatever pid wrote it last, so bothiw server stopandiw server statusact on a process that no longer exists.Evidence: the file said
1926605while the live server was678181. Across one session on 2026-09-13/14 the live server was successively2912439,3914383and2476667, and the pid file named1926605throughout.Workaround used each time — read the live pid from the listening socket instead of the file:
Impact: a restart driven through
iw server stopeither does nothing, or signals whatever process has since been given that pid.Found while closing the
dashboard-control-planeeffort's slice 11.