question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
mrocklincommented, Jul 19, 2017

My first guess would be some networking issue. You might try the following:

  1. Use Client(processes=False) which will avoid networking issues entirely
  2. Try setting up a dask-scheduler and dask-worker processes manually to see if that produces more fine-grained error messages
1reaction
mrocklincommented, Aug 15, 2017

@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:

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found