Skip to content

No available ports(Could not find an available port in the range 4466-4565. Please free up a port and try again.) #4695

@CubikOne

Description

@CubikOne

Describe the bug

Headlamp fails to start on macOS 15.5 with the error "No available ports Could not find an available port in the range 4466-4565", even though all ports in this range are actually free and available. The application incorrectly detects all ports as occupied when they are not in use by any process.
Expected outcome: Application should successfully find and bind to an available port in the range 4466-4565 and start normally.

To Reproduce

Steps to reproduce the bug:
1)Install Headlamp 0.40.1 on macOS 15.5 via Homebrew: brew install --cask --no-quarantine headlamp
2)Launch the application (either via GUI or terminal)
3)Check that no ports are actually occupied: lsof -i :4466-4565 (returns empty)
4)Run application directly from terminal: /Applications/Headlamp.app/Contents/MacOS/Headlamp
5)See error: Application reports all ports 4466-4565 as occupied and fails to start

Environment (please provide info about your environment):

Installation type: Mac-Homebrew
Headlamp Version: 0.40.1
macOS Version: 15.5 (24F74)
Architecture: Apple Silicon (arm64)
Other: All quarantine attributes removed from application

Are you able to fix this issue?

No.

Additional Context

Port 4466 is occupied by another process, trying next port...
Port 4467 is occupied by another process, trying next port...
...
Port 4565 is occupied by another process, trying next port...
Failed to find an available port: Could not find an available port after 100 attempts starting from 4466
This appears to be a regression or compatibility issue with macOS 15.5, as the port availability checking logic fails despite ports being actually free

Image

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.kind/regressionCategorizes issue or PR as related to a regression from a prior release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions