Unable to start a Client after update to latest dask
See original GitHub issue@mrocklin suggested to file an issue here.
In a restarted notebook I run:
import distributed
client = distributed.Client()
And get hundreds of these errors:
tornado.application - ERROR - Exception in Future <tornado.concurrent.Future object at 0x7fc162990be0> after timeout
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 910, in error_callback
future.result()
File "/opt/conda/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/opt/conda/lib/python3.6/site-packages/distributed/nanny.py", line 300, in start
yield self._wait_until_running()
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/opt/conda/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1069, in run
yielded = self.gen.send(value)
File "/opt/conda/lib/python3.6/site-packages/distributed/nanny.py", line 386, in _wait_until_running
raise ValueError("Worker not started")
ValueError: Worker not started
tornado.application - ERROR - Exception in Future <tornado.concurrent.Future object at 0x7fc1629b82b0> after timeout
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 910, in error_callback
future.result()
File "/opt/conda/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/opt/conda/lib/python3.6/site-packages/distributed/nanny.py", line 300, in start
yield self._wait_until_running()
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/opt/conda/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1069, in run
yielded = self.gen.send(value)
File "/opt/conda/lib/python3.6/site-packages/distributed/nanny.py", line 386, in _wait_until_running
raise ValueError("Worker not started")
ValueError: Worker not started
I can reproduce this with:
docker run -it --rm quantumtinkerer/jupyter-research:latest bash
# create a new env or just use the current one where `distributed` is already installed
conda create --yes -n dask python=3.6 dask distributed
source activate dask
python
import distributed
c = distributed.Client()
The Docker image is based on jupyter/docker-stacks/base-notebook.
The weird thing is that it only happens on our server where we have a Jupyterhub. When I try it on a different machine there doesn’t seem to be an issue.
Any idea on how I can debug this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
Client — Dask.distributed 2022.12.1 documentation
The Client registers itself as the default Dask scheduler, and so runs all dask collections like dask. array, dask. bag, dask. dataframe and...
Read more >Unable to start a local dask client outside of interactive IPython
If I'm trying to run: from dask.distributed import Client client = Client(). from an IPython I get a pop up of my macOS:....
Read more >Repeated cluster timeout errors — Coiled documentation
The repeated error messages were caused when a periodic callback encountered an intermittent network connectivity issue and resulted in a frequently repeating ...
Read more >Distributed XGBoost with Dask — xgboost 1.7.2 documentation
Client (cluster) # X and y must be Dask dataframes or arrays num_obs = 1e5 ... XGBoost's dask interface supports the new asyncio...
Read more >Unable to start SSHCluster - Distributed - Dask Forum
RuntimeError: Cluster failed to start : Multiple exceptions: [Errno 10061] ... from distributed import Client import dask def inc(x): return x + 1...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My first guess would be some networking issue. You might try the following:
Client(processes=False)
which will avoid networking issues entirely@basnijholt thank you for access to your system. I tried updating to master with
!pip install git+https://github.com/dask/distributed.git --upgrade
and things seem to work now: