Skip to content

Can't access dashboard #116

Closed
Closed

Description

@raybellwaves

Apologies for bringing this up again as it has been discussed in #71 and #80. The discussions in those haven't helped. Hopefully this is a quick fix and I can show my colleagues how cool the LFSCluster is :)

I tried the example from pangeo (http://pangeo-data.org/setup_guides/hpc.html#deploy-option-1-jupyter-dask-jobqueue).

Start a jupyter notebook on the HPC as:
jupyter notebook --no-browser --port 8888.
Then on my laptop I try:
ssh -N -L 8888:localhost:8888 -L 8787:localhost:8787 [email protected]
This gives:

channel 4: open failed: connect failed: Connection refused
channel 5: open failed: connect failed: Connection refused

In this case I can't access http://localhost:8888 let alone the dashboard. I'm not quite sure why this happens.
screen shot 2018-08-02 at 10 50 31 pm
I've had success in the past with tunneling notebooks as ssh -N -L 8888:localhost:8888 [email protected]. When I haven't even been able to connect to http://localhost:8888 restarting my laptop seems to work (i'm sure there is a less drastic fix).

Next I tried the example in the docs https://dask-jobqueue.readthedocs.io/en/latest/examples.html?highlight=tunnel#viewing-dask-dashboard

Start ipython on the HPC and inspect the client:
screen shot 2018-08-02 at 10 52 49 pm

Then on my laptop use this address for tunneling: ssh -fN [email protected] -L 8787:localhost:8787. Then when I try to connect to http://localhost:8787 I see:
screen shot 2018-08-02 at 11 01 12 pm

It seems I can't ping this address
screen shot 2018-08-02 at 11 14 05 pm

I sent this to my IT dept as well. Will update with any info at that end.

Activity

  1. guillaumeeb commented on Aug 3, 2018

    @guillaumeeb
    Member

    Hi @raybellwaves.

    First, we will try to make the tunneling work for jupyter. Could you show the logs of Jupyter? Especially if it tells something like :

    [I 07:24:22.377 LabApp] The Jupyter Notebook is running at:
    [I 07:24:22.377 LabApp] http://node054.sis.cnes.fr:8877/
    

    Then, use this url for tunneling, e.g. in my case :

    ssh -L 8877:node046.sis.cnes.fr:8877 [email protected]
    
  2. raybellwaves commented on Aug 4, 2018

    @raybellwaves
    MemberAuthor
    [I 21:57:04.885 LabApp] The Jupyter Notebook is running at:
    [I 21:57:04.885 LabApp] http://localhost:8888/?token=...
    

    My tunneling command is:

    ssh -L 8888:localhost:8888 [email protected]
    

    This tunneling works. Thanks
    screen shot 2018-08-03 at 10 15 31 pm

    Now clicking on the dashboard http://10.10.0.13:8787/status I get:
    screen shot 2018-08-03 at 10 17 09 pm

    My IT dept got back to me and noted that port 8787 is not open on the cluster.

    [rxb826@pegasus ~]$ netstat -nl | grep 8787
    tcp        0      0 10.10.0.13:8787             0.0.0.0:*                   LISTEN  
    [rxb826@pegasus ~]$ netstat -nl | grep 8888
    tcp        0      0 127.0.0.1:8888              0.0.0.0:*                   LISTEN      
    tcp        0      0 ::1:8888                    :::*                        LISTEN
    

    Is there a way I can change the dask dashboard port to try something else?

  3. jhamman commented on Aug 4, 2018

    @jhamman
    Member

    I'm not sure why but it looks like the dashboard is not being served from localhost (127.0.0.1) as is the case for your notebook server.

  4. jakirkham commented on Aug 4, 2018

    @jakirkham
    Member

    It's probably worth looking at issue ( #80 ) if you haven't already. Many of the same issues have occurred there.

    Also would point out this comment specifically, which explains how nbserverproxy can be used to obviate the need for a second ssh tunnel by piggybacking off the one used to connect to the Jupyter Notebook or JupyterLab server.

  5. raybellwaves commented on Aug 6, 2018

    @raybellwaves
    MemberAuthor

    http://pangeo-data.org/setup_guides/hpc.html#deploy-option-1-jupyter-dask-jobqueue did have the solution after all.

    I would open ipython and inspect the client

    In [1]: from dask_jobqueue import LSFCluster
    
    In [2]: from dask.distributed import Client
    
    In [3]: cluster = LSFCluster(cores=2, memory='4 GB', walltime='00:02')
    
    In [4]: client = Client(cluster)
    
    In [5]: client
    Out[5]: <Client: scheduler='tcp://10.10.0.14:42151' processes=0 cores=0>
    

    Next I would use that ip to start my notebook jupyter notebook --no-browser --ip=10.10.0.14 --port=8888

    Then on my laptop tunnel as ssh -N -L 8888:10.10.0.14:8888 [email protected] and open http://localhost:8888. Work though the notebook and inspect the client. The dashboard will most likely by port 8787 but sometimes it'll be a five digit port number e.g. 54611. Open another terminal and tunnel the dashboard as ssh -N -L 54611:10.10.0.14:54611 [email protected]. Lastly, open http://localhost:54611 on my laptop.

    I can make a change to the docs if agreed https://dask-jobqueue.readthedocs.io/en/latest/examples.html?highlight=dashboard#viewing-dask-dashboard

  6. guillaumeeb commented on Aug 6, 2018

    @guillaumeeb
    Member

    It is true that this part of the docs is a little misleading with the localhost everywhere, any improvement welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions