我使用的是NanoPi M1 (Allwinner H3板)&运行一个基于Yocto的操作系统。在我第一次见到ZeroConf-python时,
>>> 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上)运行它时,不会出现这个错误。我试图在家庭助理中寻找解决此类错误的方法,但是没有一个能很好地概括出真正的问题,抛开解决方案吧。
发布于 2017-10-23 13:35:36
将net/ipv4/igmp_max_memberships值sysctl更新为大于零。在终端上执行以下命令:$ sysctl -w net.ipv4.igmp_max_memberships=20 (或任何大于零的其他值)& $ sysctl -w net.ipv4.igmp_max_msf=10
然后,重新启动avahi-daemon systemctl restart avahi-daemon。
您可以使用'sysctl net.ipv4.igmp_max_会员制‘验证上述键的现有值。
发布于 2020-08-16 09:37:56
对Neelotpal回答的补充:
这个帖子包含了一个很好的解决方案,所有选项都可以检查这个问题:
# Bigger buffers (to make 40Gb more practical). These are maximums, but the default is unaffected.
net.core.wmem_max=268435456
net.core.rmem_max=268435456
net.core.netdev_max_backlog=10000
# Avoids problems with multicast traffic arriving on non-default interfaces
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
# Force IGMP v2 (required by CBF switch)
net.ipv4.conf.all.force_igmp_version=2
net.ipv4.conf.default.force_igmp_version=2
# Increase the ARP cache table
net.ipv4.neigh.default.gc_thresh3=4096
net.ipv4.neigh.default.gc_thresh2=2048
net.ipv4.neigh.default.gc_thresh1=1024
# Increase number of multicast groups permitted
net.ipv4.igmp_max_memberships=1024,我不建议只是盲目地复制这些值,,而是系统地测试是哪一个限制了您的资源:
sysctl <property>获取当前设置的值sysctl -w或通过直接更改/etc/sysctl.conf并通过sysctl -p实现的配置在我的例子中,增加net.ipv4.igmp_max_memberships做了一个诀窍:
sysctl net.ipv4.igmp_max_memberships ( 20 )检查了当前的值netstat -gn有多少会员,意识到我的许多码头集装箱占了大部分。当然,阅读这些属性以了解它们的实际操作也是很好的,例如在sysctl-explorer.net上。
https://stackoverflow.com/questions/46727211
复制相似问题