Clicking on "Connect to Jupyter" leads to wrong URL

#1

hi all,

i successfully launched a jupyter notebook on slurm from OOD.
however, when i click on the “Connect to Jupyter” button in
/pun/sys/dashboard/batch_connect/sessions
this leads me to
http:///node/worker001/44559/login
instead of
http://:44559/node/worker001/44559/login
where the notebook is actually running.

which options do i need to change for this url to lead to the correct host + port?

thanks in advance.

0 Likes

#2

any suggestions on how to resolve this?

0 Likes

#3

Sorry for the delay on responding.

The link you click is created by this file:

If you notice, the URL is absolute - the assumption is that OnDemand or the /node or /rnode proxies do not have a suburi. So in OSC OnDemand’s case, we would have https://ondemand.osc.edu and then this /URL would be appended to that base domain.

Now we run OnDemand on port 80 and have not done testing to see what problems we might run into running OnDemand on a different port.

Also, I’m confused by the link example, where the host is missing. Are you omitting the host in the URL you are sharing? i.e. http://myhost/node/worker001/44559/login or http://myhost:44559/com/node/worker001/44559/login

0 Likes

#4

yes, i forgot the host in the urls i shared. i meant that at:
http:///pun/sys/dashboard/batch_connect/sessions
i clicked on “Connect to Jupyter”
and was led to
http:///node/worker001/27910/login
instead of
http:///node/worker001/27910/login

where myjupytersessionhost=slurmworker

0 Likes

#5

shouldn’t ood automatically lead me to the url in which the host is the, in my case, slurm worker, on which the jupyter session was scheduled to run?

0 Likes

#6

Have you solved the problem you were having configuring this?

0 Likes