2017-10-13 246 views
0

我使用運行基於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中搜索這些錯誤的修復程序,但沒有一個提供了真正問題的良好概述,其餘部分不在解決方案之內。

回答

0

將的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'。