Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 105] No buffer space available #790

Open
DracoC77 opened this issue Jul 4, 2024 · 0 comments
Open

OSError: [Errno 105] No buffer space available #790

DracoC77 opened this issue Jul 4, 2024 · 0 comments

Comments

@DracoC77
Copy link

DracoC77 commented Jul 4, 2024

When running latest python-matter-server (6.2.2) in docker on my Rpi4, ran into the following errors

matter-server    | 2024-07-04 06:23:27.624 (MainThread) INFO [matter_server.server.device_controller] Loaded 2 nodes from stored configuration
matter-server    | 2024-07-04 06:23:27.652 (MainThread) ERROR [matter_server.server] Error doing task: Task exception was never retrieved
matter-server    | Traceback (most recent call last):
matter-server    |   File "/usr/local/lib/python3.11/site-packages/aiorun.py", line 219, in new_coro
matter-server    |     await coro
matter-server    |   File "/usr/local/lib/python3.11/site-packages/matter_server/server/server.py", line 174, in start
matter-server    |     await self._device_controller.start()
matter-server    |   File "/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py", line 186, in start
matter-server    |     self._aiozc = AsyncZeroconf(ip_version=IPVersion.All)
matter-server    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matter-server    |   File "/usr/local/lib/python3.11/site-packages/zeroconf/asyncio.py", line 166, in __init__
matter-server    |     self.zeroconf = zc or Zeroconf(
matter-server    |                           ^^^^^^^^^
matter-server    |   File "/usr/local/lib/python3.11/site-packages/zeroconf/_core.py", line 180, in __init__
matter-server    |     listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p)
matter-server    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matter-server    |   File "/usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py", line 373, in create_sockets
matter-server    |     if add_multicast_member(cast(socket.socket, listen_socket), i):
matter-server    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matter-server    |   File "/usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py", line 288, in add_multicast_member
matter-server    |     listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value)
matter-server    | OSError: [Errno 105] No buffer space available

Looking around other similar errors, found that the solution was running following on host machine:

sudo sysctl -w net.ipv4.igmp_max_memberships=50
sudo sysctl -w net.ipv4.igmp_max_msf=30

Still thought I'd toss it here in case others run into this same issue or this warrants code change or some sort of faq note!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant