Skip to content
Advertisement

OSError 105 : No buffer Space – Zeroconf

I’m using a NanoPi M1 (Allwinner H3 board) & running a Yocto-based OS. On my first encounter with ZeroConf-python,

>>> from zeroconf import Zeroconf, ServiceBrowser
>>> zero = Zeroconf()

I’m getting the error:

File "/usr/lib/python3.5/site-packages/zeroconf.py", line 1523, in __init__
    socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(i))
OSError: [Errno 105] No buffer space available

This error doesn’t arise when I run it in Raspbian(on RPI). I’ve tried to search for fixes to such errors in homeassistant, but none provide a good overview to the real problem, rest-aside the solution.

Advertisement

Answer

Update the net/ipv4/igmp_max_memberships value of sysctl to greater than zero. Execute the following commands on the terminal: $ sysctl -w net.ipv4.igmp_max_memberships=20 (or any other value greater than zero) & $ sysctl -w net.ipv4.igmp_max_msf=10

Then, restart the avahi-daemon systemctl restart avahi-daemon

You can verify the existing values of the above keys using ‘sysctl net.ipv4.igmp_max_memberships’.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement