3

I'm using dask.distributed on a remote machine accessible via SSH, and attempting to connect to the Dask dashboard. I remember it's worked before (in other virtual environments) when I was doing my first steps with Dask, but now any time I try to connect to http://localhost:8787/ or http://localhost:8787/status I get a "404 Not found" error.

Since the machine is only accessible via SSH I've set up an SSH tunnel to be able to access the dashboard using a browser from my desktop, and that gives me that 404 -- so somehow the server is working and accepting connections but not serving the pages. Also, connecting to it locally on the command line using lynx or telnet yields the same error. I'm also sure that nothing else is running on port 8787.

Are additional packages required for the dashboard to work? Here's my environment:

$ pip freeze
click==7.1.2
cloudpickle==1.4.1
dask==2.18.1
distributed==2.18.0
HeapDict==1.0.1
msgpack==1.0.0
numpy==1.18.5
psutil==5.7.0
PyYAML==5.3.1
sortedcontainers==2.2.2
tblib==1.6.0
toolz==0.10.0
tornado==6.0.4
zict==2.0.0
$ python
Python 3.7.5 (default, Nov 12 2019, 11:34:05)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask.distributed import Client
>>> client = Client()
>>> client
<Client: 'tcp://127.0.0.1:40076' processes=4 threads=16, memory=135.43 GB>
>>> client.scheduler_info()
{
  'type': 'Scheduler', 
  'id': 'Scheduler-1662a23e-a12b-4640-832e-75c5c45c83b0', 
  'address': 'tcp://127.0.0.1:40076', 
  'services': {
    'dashboard': 8787
  }, 
  'workers': {
    'tcp://127.0.0.1:34228': {
      'type': 'Worker', 
      'id': 1, 
      'host': '127.0.0.1', 
      'resources': {}, 
...

From another console:

$ telnet 127.0.0.1 8787
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 404 Not Found
Server: TornadoServer/6.0.4
Content-Type: text/html; charset=UTF-8
Date: Mon, 15 Jun 2020 17:34:37 GMT
Content-Length: 69

<html><title>404: Not Found</title><body>404: Not Found</body></html>Connection closed by foreign host.
$
David
  • 437
  • 1
  • 4
  • 15
  • 1
    Might be an issue with Bokeh 2.1, see https://github.com/dask/distributed/issues/3741. It just stopped working for me too when I upgraded from Bokeh 2.0 to 2.1. – weiji14 Jun 17 '20 at 00:01
  • Either downgrade to Bokeh 2.0, or wait for a new dask distributed release, see https://github.com/dask/distributed/issues/3905. – weiji14 Jun 17 '20 at 00:09

1 Answers1

2

Thank you @weiji14 for your comments. I noticed that bokeh wasn't even installed. Installing it (2.0) made the dashboard available again.

David
  • 437
  • 1
  • 4
  • 15