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

dask labextension not working in ocean #148

Closed
rabernat opened this issue Mar 7, 2019 · 9 comments · Fixed by #246
Closed

dask labextension not working in ocean #148

rabernat opened this issue Mar 7, 2019 · 9 comments · Fixed by #246

Comments

@rabernat
Copy link
Member

rabernat commented Mar 7, 2019

I am seeing this in my notebook pod logs:

404 GET /user/0000-0001-5999-4917/dask/clusters?1551920957641 (0000-0001-5999-4917@10.128.0.18) 2.41ms

after I click on the button to create a new cluster.

@ian-r-rose
Copy link
Member

@rabernat Is it possible that the server extension is not installed or enabled? The newer version of the extension requires it. We also haven't hammered out all the kinks in usage with dask-kubernetes yet, so I'm quite curious to see how this works.

In a terminal:

jupyter serverextension list

@jhamman
Copy link
Member

jhamman commented Mar 7, 2019

Just ran that on the ocean deployment:

$ jupyter serverextension list
config dir: /srv/conda/etc/jupyter
    jupyterlab  enabled
    - Validating...
      jupyterlab 0.35.4 OK
    nteract_on_jupyter  enabled
    - Validating...
Error loading server extension nteract_on_jupyter
      X is nteract_on_jupyter importable?
    nbserverproxy  enabled
    - Validating...
      nbserverproxy  OK

@ian-r-rose
Copy link
Member

Is the nasa deployment working? I see that it includes the python package, while the ocean deployment does not: https://github.com/pangeo-data/pangeo-cloud-federation/blob/staging/deployments/nasa/image/binder/environment.yml#L39

@rabernat
Copy link
Member Author

So in the latest configuration, the dask labextension works, but it launches LocalCluster, rather than kubeCluster, by default.

I think all that is needed is an extra piece of dask config. So the questions are:

  • What is this config?
  • Where is the best way to inject it into the environment. (The notebook image is just a straight copy of pangeo-notebook:2019-04-19 from pangeo-stacks.)

@jhamman
Copy link
Member

jhamman commented Apr 26, 2019

@rabernat - you may want to look at the NASA deployment.

@ian-r-rose
Copy link
Member

@jhamman Oh awesome, I wasn't aware that we had any deployments with KubeCluster up and running yet. Would you be willing to submit a PR to the dask-labextension README with an example config that is known to work? I'd like to start collecting these from community deployments, since I don't really have the bandwidth to try it out in all the variety of deployments that exist.

@rabernat
Copy link
Member Author

@raphaeldussin - how did you determine this was resolved? It still doesn't work for me on staging.

When I try to launch a cluster with the labextension, I get this error in my notebook log:

[W 2019-04-27 01:39:04.298 SingleUserLabApp handlers:563] object KubeCluster can't be used in 'await' expression

@rabernat rabernat reopened this Apr 27, 2019
@jhamman
Copy link
Member

jhamman commented Apr 27, 2019

I think this is still a work in progress - dask/dask-kubernetes#138 - but I am still able to get workers to connect in my cluster.

@rabernat
Copy link
Member Author

rabernat commented May 4, 2019

finally fixed by #258

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

Successfully merging a pull request may close this issue.

3 participants