Skip to content

docs: correct wedged-daemon recovery steps for vaadin-dev - #6684

Merged
peholmst merged 4 commits into
mainfrom
doc-bot/vaadin-flow/26782-75c2f760f0ac756d
Dec 2, 2026
Merged

peholmst merged 4 commits into
mainfrom
doc-bot/vaadin-flow/26782-75c2f760f0ac756d

Conversation

@vaadin-bot

@vaadin-bot vaadin-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Documentation for vaadin/flow#26782 by @totally-not-ai[bot].

Note

The source pull request is merged, so this documentation describes the final
shape of the change. Please review it and mark it ready for review.

Change categories: BEHAVIOR_CHANGE

File Change
articles/flow/configuration/live-reload/dev-loop-cli.adoc Corrected the shutdown/stop/restart command entry and the "daemon seems wedged" troubleshooting entry: a daemon that is alive but not answering no longer self-heals on shutdown — every command now waits a few seconds and exits 70, naming the pid to kill, instead of reaping the record and spawning a fresh daemon beside one still holding the lock.

Auto-generated by the Documentation Bot — review before merging.

Generated by Documentation Bot for #26782 · agent · 113.5 AIC · ⊞ 11.7K · ◷

  • expires on Dec 16, 2026, 1:42 PM UTC

A wedged dev-loop daemon no longer self-heals on `shutdown`: every
command, `shutdown` included, now waits a few seconds and exits `70`
naming the pid to kill, instead of silently reaping the record and
spawning a fresh daemon beside one still holding the lock. Update the
Dev Loop CLI reference and the agentic-development tutorial to say so.

Documents vaadin/flow#26782 (`0047af7471e61823df8289bb26beca99d16a2294`).
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6684.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from 098b0ca

@peholmst
peholmst marked this pull request as ready for review November 16, 2026 18:07

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes — left 1 comment.

Finding
💬 The wedged-daemon entry opens with two sentences of mechanism and hides the fix at the end.


The daemon seems wedged::
Run `shutdown`. Any later command starts a fresh daemon.
A killed daemon leaves a stale handshake, and every command but `status`/`ping` reaps it and spawns a fresh daemon without being asked. A daemon that's still running but not answering doesn't get reaped that way -- it still holds the daemon lock, so a fresh daemon can't come up beside it. Every command, `shutdown` included, waits a few seconds and then exits `70`, naming the pid to kill. Kill it yourself, then `start` spawns a fresh daemon.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 The wedged-daemon entry opens with two sentences of mechanism and hides the fix at the end.

The reader arrives at “The daemon seems wedged” with a hung loop and needs the action. The entry starts with a different case (a killed daemon) that does self-heal: “every command but status/ping reaps it and spawns a fresh daemon without being asked.” Read as the answer, that sends the reader off re-running commands and waiting.

Suggested order, action first:

Every command, shutdown included, waits a few seconds and then exits 70, naming the pid of the daemon. Kill that pid, then start spawns a fresh daemon. shutdown can't help: a daemon that's running but not answering still holds the daemon lock, so no fresh daemon can come up beside it. (A daemon that was killed is different — it leaves a stale record that the next command clears by itself.)

dev-loop-cli.adoc:345 · clarity

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reordered with the action first. The entry now opens with the hung-daemon case: every command, shutdown included, exits 70 and names the pid. Kill that pid, then start spawns a fresh daemon. Next comes why you have to kill it yourself (the hung daemon still holds the lock). The killed-daemon case, which recovers by itself, is now a separate paragraph after that.

Start the entry with what the reader sees and does: the exit code, the
pid and killing it. The killed-daemon case, which recovers by itself,
moves to a paragraph after it.
shutdown fails because the daemon doesn't answer. The lock is what stops
a fresh daemon from starting beside it.
…6782-75c2f760f0ac756d

# Conflicts:
#	articles/agentic-development/dev-loop-tutorial.adoc
@peholmst
peholmst merged commit 4198f2a into main Dec 2, 2026
10 of 11 checks passed
@peholmst
peholmst deleted the doc-bot/vaadin-flow/26782-75c2f760f0ac756d branch December 2, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants