Skip to content

Improve error message on Linux when max IP memberships are reached #1510

@bdraco

Description

@bdraco

Currently we see

  File "/usr/local/lib/python3.13/site-packages/zeroconf/_utils/net.py", line 295, in add_multicast_member
    listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 105] No buffer space available

This means they ran out of memberships

Setting net.ipv4.igmp_max_memberships = 1024 in sysctl.conf usually resolves this issue

home-assistant/core#137731 home-assistant/core#138324 home-assistant/core#138298
home-assistant/operating-system#1222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions