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.

404 for cluster dashboard

See original GitHub issue

I setup dask-gateway on a microk8s single-node cluster for testing. My config is minimal, only setting the gateway.backend.image to my own custom image. I separately run jupyterhub, with no authentication.

From a notebook, I can create a cluster and run computations, but: I cannot see the dashboards.

With the cluster object, I get a the following URL: http://10.64.140.43/clusters/starmap.06630af66e734c3c9463348e2dc36344/status

With the client object, I get: http://10.64.140.43:8787/status

Going to either the cluster url gives a 404. Going to the client url times out.

The IP address (also the one I give to the GatewayCluster c’tor) is given by the metallb load balancer, and shows up as the external-ip for traefik-dask-gateway:

NAMESPACE            NAME                                                    TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                      AGE
starmap              service/traefik-dask-gateway                            LoadBalancer   10.152.183.38    10.64.140.43   80:31625/TCP                 79m

Did I miss a bit of config, either for microk8s or dask-gateway?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
TomAugspurgercommented, Apr 30, 2020

Well that was one of the more frustrating debugging sessions 😃

diff --git a/distributed/scheduler.py b/distributed/scheduler.py
index 33bd6373..2887abec 100644
--- a/distributed/scheduler.py
+++ b/distributed/scheduler.py
@@ -1133,7 +1133,7 @@ class Scheduler(ServerNode):
         )
         self.start_http_server(routes, dashboard_address, default_port=8787)
 
-        if dashboard:
+        if dashboard or dashboard_address:
             try:
                 import distributed.dashboard.scheduler
             except ImportError:

Not sure why I didn’t think to compare the args of dask-scheduler and dask-gateway-scheduler earlier. Going to make sure that’s an appropriate fix for distributed, and will look into whether dask-gateway needs to change at all.

0reactions
TomAugspurgercommented, May 1, 2020

My apologies for the churn here Tom. Thank you for resolving my mess here.

No worries, It’s just a one line fix 😃

We’ll release distributed 2.15.2 later today with the fix, which will kick off builds on conda-forge, pangeo-notebook conda metapackages, and eventually the pangeo docker images.

So the bad versions will be

  • distributed 2.15.0 and 2.15.1
  • pangeo-dask 2020.04.25, 2020.04.28
  • pangeo-notebook 2020.04.28, 2020.04.28, 2020.04.29
  • pangeo/base-notebook 2020.04.27, 2020.04.28, 1391655
Read more comments on GitHub >

github_iconTop Results From Across the Web

After adding services to cluster, dashboard shows error ...
After adding services to cluster (IGW, ISCSI, and NFS) dashboard gets error 500 when accessing previously working portion of the dashboard with Error...
Read more >
Kubernetes Dashboard not reachable (error 404)
The Dashboard was installed using Kubespray, so I'm pretty sure it's installed correctly (at least its pods run without errors). Cluster's setup ...
Read more >
"404 Not found" when trying to connect to dask dashboard
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 ...
Read more >
Getting 404 when accessing the Kubernetes Dashboard ...
I am getting a HTTP error 404 when I try to access the Kubernetes Dashboard via the LoadBalancer. I does work when I...
Read more >
How To Solve Kibana Dashboard "404" display error for ...
I am trying to set up authentication with Okta for elastic stack on google cloud. The link from OKTA has the first step...
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