Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Resource temporarily unavailable #10

Open
filopedraz opened this issue Aug 30, 2023 · 2 comments
Open

Issue: Resource temporarily unavailable #10

filopedraz opened this issue Aug 30, 2023 · 2 comments

Comments

@filopedraz
Copy link
Contributor

filopedraz commented Aug 30, 2023

Getting error when starting the Flask webserver.

Here the logs:

❯ flask run --host=0.0.0.0 --port=5000
Aug 30 11:19:09.074 [INFO] Connecting to DHT
Aug 30 11:19:14.155 [INFO] Starting Flask app
Aug 30 11:19:14.159 [INFO] Starting updater
Aug 30 11:19:14.510 [ERROR] [hivemind.dht.dht._run:131] [Errno 35] Resource temporarily unavailable
Traceback (most recent call last):
  File "/Users/filippopedrazzini/Documents/Work.nosync/prem/health.petals.dev/venv/lib/python3.10/site-packages/hivemind/dht/dht.py", line 129, in _run
    method, args, kwargs = self._inner_pipe.recv()
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 421, in _recv_bytes
    return self._recv(size)
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 379, in _recv
    chunk = read(handle, remaining)
BlockingIOError: [Errno 35] Resource temporarily unavailable
Aug 30 11:19:17.510 [ERROR] [hivemind.dht.dht._run:131] [Errno 35] Resource temporarily unavailable
Traceback (most recent call last):
  File "/Users/filippopedrazzini/Documents/Work.nosync/prem/health.petals.dev/venv/lib/python3.10/site-packages/hivemind/dht/dht.py", line 129, in _run
    method, args, kwargs = self._inner_pipe.recv()
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 421, in _recv_bytes
    return self._recv(size)
  File "/opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/connection.py", line 379, in _recv
    chunk = read(handle, remaining)
BlockingIOError: [Errno 35] Resource temporarily unavailable

I followed the installation instructions provided in the README.md

I am using python=3.10 and I have a Mac M1

@borzunov
Copy link
Member

Hi @filopedraz,

This seems to be a macOS compatibility issue. Please run the health monitor in Docker or on a Linux machine until it's fixed.

@borzunov
Copy link
Member

borzunov commented Sep 19, 2023

For the record: I've met the same error on Linux as well, but it's very rare (happened once in a few months during a routine state update on http://health.petals.dev). This seems to be a hivemind.DHT bug that is worth deeper investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants