Skip to content

Error in reflex run: Warning: Unable to bind to :XXXX due to: [Errno 97] Address family not supported by protocol. #5630

@avhz

Description

@avhz

Describe the bug
Running into an error when attempting run a new reflex project.

Warning: Unable to bind to :XXXX due to: [Errno 97] Address family not supported by protocol.

It seems to be attempting many ports but the app never starts.

Is this possibly related to #5617 ? I am inside a VSCode devcontainer.

To Reproduce

(.venv) vscode ➜ /workspaces/... $ mkdir rxapp
(.venv) vscode ➜ /workspaces/... $ cd rxapp/
(.venv) vscode ➜ /workspaces/.../rxapp $ reflex init 
───────────────────────────────────────────────────────────────────────────────────────────────────── Initializing rxapp ─────────────────────────────────────────────────────────────────────────────────────────────────────
Warning: `reflex.plugins.sitemap.SitemapPlugin` plugin is enabled by default, but not explicitly added to the config. If you want to use it, please add it to the `plugins` list in your config inside of `rxconfig.py`. To 
disable this plugin, set `disable_plugins` to `['reflex.plugins.sitemap.SitemapPlugin']`.
[13:57:25] Initializing the web directory.                                                                                                                                                                      console.py:213
Warning: `reflex.plugins.sitemap.SitemapPlugin` plugin is enabled by default, but not explicitly added to the config. If you want to use it, please add it to the `plugins` list in your config inside of `rxconfig.py`. To 
disable this plugin, set `disable_plugins` to `['reflex.plugins.sitemap.SitemapPlugin']`.

Get started with a template:
(0) A blank Reflex app.
(1) Try our free AI builder.
(2) Premade templates built by the Reflex team.
Which template would you like to use? (0): 
[13:57:30] Initializing the app directory.                                                                                                                                                                      console.py:213
Success: Initialized rxapp using the blank template.

Then:

(.venv) vscode ➜ /workspaces/.../rxapp $ reflex run
Warning: Unable to bind to :3000 due to: [Errno 97] Address family not supported by protocol.
Warning: Unable to bind to :3001 due to: [Errno 97] Address family not supported by protocol.
Warning: Unable to bind to :3002 due to: [Errno 97] Address family not supported by protocol.
...

It attempts ports in sequence from 3000 indefinitely it seems.

The app never starts.

Specifics (please complete the following information):

  • Python Version: 3.12.3
  • Reflex Version: 0.8.3
  • OS: Ubuntu 24.04.2 LTS
  • Browser (Optional): Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions