dask / dask/dask-labextension

Access dashboard from scheduler with no public IP?

Open
#194 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
329
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Is it possible to connect to a scheduler without a public IP running in the same AWS VPC?

**What happened**:

I'm running a jupyter lab on an AWS EC2 instance and I'm trying to connect to a scheduler with a private IP that was created with `dask-cloudprovider` running in the same VPC as the lab.

The dashboard gets picked up by the extension as expected, all buttons become orange:

![image](https://user-images.githubusercontent.com/18698817/120210750-6db92100-c230-11eb-9fd5-6dd7e46c9ffd.png)

But if I open any of them, they remain blank for a while until they error out with a "took too long to respond" message:

![image](https://user-images.githubusercontent.com/18698817/120210914-9ccf9280-c230-11eb-9f25-ea041e5d690c.png)

![image](https://user-images.githubusercontent.com/18698817/120211126-de603d80-c230-11eb-957c-82088cc99573.png)

**What you expected to happen**:

The extension showing the requested plots and metrics.

**Anything else we need to know?**:

Accessing the dashboard from the lab terminal with curl works, showing that it's not a basic networking issue:

![image](https://user-images.githubusercontent.com/18698817/120211455-3d25b700-c231-11eb-9554-a00d14cce269.png)

Nothing apparent in the console:

![image](https://user-images.githubusercontent.com/18698817/120212016-cb01a200-c231-11eb-8b57-f16e24155894.png)

Extensions:

```
jovyan@201435007e31:~$ jupyter serverextension list
config dir: /usr/local/etc/jupyter
dask_labextension enabled
- Validating...
dask_labextension 5.0.1 OK
jupyter_server_proxy enabled
- Validating...
jupyter_server_proxy OK
jupyterlab enabled
- Validating...
jupyterlab 3.0.16 OK
```

**Environment**:

- Dask version: 2021.5.0
- Python version: 3.8.8
- Operating System: Ubuntu Bionic
- Install method (conda, pip, source): pip

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.