Repository navigation
Description
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.

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:

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:

It seems I can't ping this address

I sent this to my IT dept as well. Will update with any info at that end.
Activity
guillaumeeb commentedon Aug 3, 2018
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 :
Then, use this url for tunneling, e.g. in my case :
raybellwaves commentedon Aug 4, 2018
My tunneling command is:
This tunneling works. Thanks

Now clicking on the dashboard http://10.10.0.13:8787/status I get:

My IT dept got back to me and noted that port 8787 is not open on the cluster.
Is there a way I can change the dask dashboard port to try something else?
jhamman commentedon Aug 4, 2018
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.
jakirkham commentedon Aug 4, 2018
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
nbserverproxycan be used to obviate the need for a secondsshtunnel by piggybacking off the one used to connect to the Jupyter Notebook or JupyterLab server.raybellwaves commentedon Aug 6, 2018
http://pangeo-data.org/setup_guides/hpc.html#deploy-option-1-jupyter-dask-jobqueue did have the solution after all.
I would open
ipythonand inspect theclientNext I would use that ip to start my notebook
jupyter notebook --no-browser --ip=10.10.0.14 --port=8888Then 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 theclient. 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 asssh -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
guillaumeeb commentedon Aug 6, 2018
It is true that this part of the docs is a little misleading with the localhost everywhere, any improvement welcome!
update docs for viewing Dashboard (dask#116)
DOC: update docs for viewing Dashboard (#116) (#118)