pysonofflan icon indicating copy to clipboard operation
pysonofflan copied to clipboard

pysonofflan discover: too any open files

Open rgiordani71 opened this issue 5 years ago • 1 comments

  • pySonoffLAN version: 0.3.0
  • Python version: Python 2.7.10
  • Operating System: MacOS

Description

Exception in thread Thread-486: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pysonofflan/discover.py", line 69, in probe_ip File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 151, in init OSError: [Errno 24] Too many open files

What I Did

pysonofflan discover

rgiordani71 avatar Oct 04 '19 06:10 rgiordani71

Try increasing the ulimit from it's default value of 256

e.g. ulimit -n 10000

beachhouse123 avatar Jul 22 '21 13:07 beachhouse123