OSError 105:无缓冲区空间 - Zeroconf
问题描述:
我使用运行基于Yocto的操作系统的NanoPi M1(Allwinner H3板)&。我与ZeroConf的-python的第一次相遇,OSError 105:无缓冲区空间 - Zeroconf
>>> from zeroconf import Zeroconf, ServiceBrowser
>>> zero = Zeroconf()
,我发现了错误:
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
,当我在Raspbian运行(在RPI)不会出现此错误。 我试图在homeassistant中搜索这些错误的修复程序,但没有一个提供了真正问题的良好概述,其余部分不在解决方案之内。
答
将的net/ipv4/igmp_max_memberships
值更新为大于零。在终端上 执行以下命令: $ systctl -w net.ipv4.igmp_max_memberships=20
(或任何其他大于零的值) & $ sysctl -w net.ipv4.igmp_max_msf=10
然后,重新启动的avahi守护 systemctl restart avahi-daemon
可以验证的上述现有的值键使用 'sysctl net.ipv4.igmp_max_memberships'。