Skip to content

Reflex fails to start up on systems without IPv6 support #5617

@Botyto

Description

@Botyto

Describe the bug
Reflex fails to start up on systems without IPv6 support.

Specifics (please complete the following information):

  • Reflex Version: 0.8.3

Additional context
The problem occurs during the port checks inside reflex/utils/process.py in the is_process_on_port() function.
It check that if either IPv4 or the IPv6 ports are taken, then the port is considered taken and the app fails to start both the frontend and the backend server.
The on systems without IPv6 that check always results in an OSError: [Errno 97] Address family not supported by protocol which makes the app think that all ports are taken.
We already have _is_ipv4_supported() and _is_ipv6_supported() inreflex/utils/net.py - those should be (adjusted, if needed, and) used before checking if the ports are occupied.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions