Show which processes hold the Breeze UI ports when start-airflow fails - #72564
Open
Andrushika wants to merge 1 commit into
Open
Show which processes hold the Breeze UI ports when start-airflow fails#72564Andrushika wants to merge 1 commit into
Andrushika wants to merge 1 commit into
Conversation
Andrushika
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl,
potiuk and
vatsrahul1001
as code owners
September 5, 2026 15:57
SameerMesiah97
left a comment
Contributor
There was a problem hiding this comment.
Could we also add testcoverage for the best-effort failure handling in _find_local_port_listeners, particularly when inspecting a process raises psutil.Error?
Andrushika
force-pushed
the
breeze-port-conflict-show-pid
branch
from
September 5, 2026 17:25
f5614a3 to
420b499
Compare
Contributor
Author
|
Added a test: |
Andrushika
force-pushed
the
breeze-port-conflict-show-pid
branch
from
September 5, 2026 17:38
420b499 to
173cb4c
Compare
…fails Since apache#71241 `breeze start-airflow --dev-mode` refuses to start when the Vite ports are taken, but the message did not say by what. The usual culprit is a stale dev server left behind by a previous breeze run, and the user had to hunt for it with lsof before they could kill it. Printing the PID and command line, plus a ready-to-paste kill hint, removes that step. psutil is bumped to >=6.0.0 for Process.net_connections().
Andrushika
force-pushed
the
breeze-port-conflict-show-pid
branch
from
September 5, 2026 17:43
173cb4c to
4335517
Compare
Andrushika
marked this pull request as draft
September 5, 2026 19:06
Andrushika
marked this pull request as ready for review
September 5, 2026 19:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up of #71241:
breeze start-airflow --dev-modefails early when port 5173 or 5174 is taken. But the message only says the port is in use. Users then need to runlsofthemselves to see which processes hold the ports before they can stop them, which is a bit annoying. Most of the time it is just a stale Vite dev server left over from a previous breeze run.What
Look up the listening process with psutil and print its PID and command line, plus a
kill <pid>hint. If the listener cannot be found (for example no permission), the old message is kept. psutil is bumped to>=6.0.0becauseProcess.net_connections()was added there.Before:
Now:
related: #71241
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Fable 5.1) following the guidelines