Just wondering if anyone has had trouble with launching Jupyter server on Login nodes via the new JupyterHub (https://jupyterhub.hpc.ucar.edu/). ?
All my attempts result in this error
Screen-Shot-2021-04-13-at-2.47.59-PM.png
Note: Everything works fine when I used the Batch Job options
haven't seen that one before; Both casper and cheyenne?
haven't seen that one before; Both casper and cheyenne?
Both
I was also having an issue with: https://jupyterhub.hpc.ucar.edu/
Screen-Shot-2021-04-13-at-2.01.02-PM.png
BUt these might be unrelated.
BUt these might be unrelated.
@Cecile Hannay, you are right. Your issue may have to do with corrupted browser cache & cookies. Try accessing that URL from a private window or a different browser to confirm that things work when you use a fresh session.
If everything works in a clean session, I'd then try flushing locally cached browser data (clear your browser cookies and cache) .
@Anderson Banihirwe Maybe restart your laptop to see if the problem will be solved.
@Anderson Banihirwe Can you deactivate your profile startup scripts temporarily?
Anderson Banihirwe Can you deactivate your profile startup scripts temporarily?
That works..... What's the culprit in my profile startup scripts?
usually something that prints to stdout. I thought I caught all of them, but apparently not. Mind if I look through them?
Mind if I look through them?
Not at all...
can you put it back for a quick moment?
Put it back breaks it again :frown:
@Anderson Banihirwe Hi Anderson - I'm having trouble getting onto jupyterhub from any of the options (casper/cheyenne, login/batch). Any ideas what to try?
Me too @Nan Rosenbloom
@Nan Rosenbloom can you try again at your convenience?
@Rosie Fisher Would you also please try again at your convenience?
Just tried and it still failed. Message is
"Spawn failed: The Jupyter batch job has disappeared while pending in the queue or died immediately after starting."
@Jared Baker I got failures on my 2 casper attempts; success on the cheyenne node login. Last night the cheyenne node would hang for 15-20 minutes before failing. Progress!
For what it's worth, I just spawned two servers one on Casper Login and one on Casper Batch.
The Cheyenne login node was the one I felt was the lowest hanging fruit on that. I'll work on Casper ones next.
@Nan Rosenbloom Can you try stopping your server and log out and back in then try a Casper session again?
Mine is working now, on cheyenne at least.
Oh, I spoke too soon. It is hanging...
@Rosie Fisher I sent you a PM. Can you respond there?
anyone else having issue logging onto casper using jupyter-forward? My browser is prompting for a password/token. I eventually landed on the right password, but curious why I got this prompt after weeks of not being asked?
Now I'm getting this error trying to execute jupyter-forward from the command line.
:cross_mark: Couldn't find jupyter executable with: 'conda activate core.py:97
lens-py && sh -c "command -v jupyter"'
@Will Wieder,
which version of jupyter-forward are you using?
jupyter-forward --version
Jupyter Forward CLI Version: 2021.3.3
Using the python/ipython interpreter, do the following code snippets work for you?
In [2]: from jupyter_forward import RemoteRunner In [3]: runner = RemoteRunner('abanihi@casper.ucar.edu') ************************************************************************************************ Authentication ************************************************************************************************* Authenticating user (abanihi) from client (cisl-sublimity) to remote host (casper.ucar.edu) Token_Response: ✅ The client is authenticated successfully In [4]: runner.run_command('which python') which python /glade/work/abanihi/opt/miniconda/bin/python Out[4]: <Result cmd='which python' exited=0> In [5]: runner.run_command('which conda') which conda /glade/work/abanihi/opt/miniconda/bin/conda Out[5]: <Result cmd='which conda' exited=0> In [6]: runner.run_command('which jupyter') which jupyter /glade/work/abanihi/opt/miniconda/bin/jupyter Out[6]: <Result cmd='which jupyter' exited=0>
sorry, where do I run these code snippets?
From your local computer.... To launch the interpreter, run python
it seems to get stuck here
from jupyter_forward import RemoteRunner
runner = RemoteRunner('wwieder@ucar.edu')
****** Authentication ******
[12:24:10] Authenticating user (wwieder) from client (cgdm-begbie) to core.py:66
remote host (ucar.edu)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 11, in __init__
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/jupyter_forward/core.py", line 71, in __post_init__
self.session.open()
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/fabric/connection.py", line 636, in open
self.client.connect(**kwargs)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/client.py", line 349, in connect
retry_on_signal(lambda: sock.connect(addr))
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/util.py", line 283, in retry_on_signal
return function()
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/client.py", line 349, in <lambda>
retry_on_signal(lambda: sock.connect(addr))
TimeoutError: [Errno 60] Operation timed out
Okay.... I don't know what's going on so far :grinning:
Jupyter Forward CLI Version: 2021.3.3
Do you mind upgrading jupyter-forward to the latest version v2021.4.13, and tyring again ?
sorry, didn't include casper on my loging runner = RemoteRunner('wwieder@casper.ucar.edu')
********** Authentication **********
[12:26:46] Authenticating user (wwieder) from client (cgdm-begbie) to remote host (casper.ucar.edu) core.py:66
Token_Response:
[12:26:53] :check: The client is authenticated successfully
but then I cannot run any of the runner.run_command() lines.
update line this?
conda update jupyter-forward
PackageNotInstalledError: Package is not installed in prefix.
prefix: /Users/wwieder/miniconda3
package name: jupyter-forward
ah, it's pip
pip install jupyter-forward -U
update is done, but now this error
from jupyter_forward import RemoteRunner
runner = RemoteRunner('wwieder@casper.ucar.edu')
********** Authentication **********
Authenticating user (wwieder) from client (cgdm-begbie) to remote host (casper.ucar.edu)
Exception: Error reading SSH protocol banner
Traceback (most recent call last):
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2211, in _check_banner
buf = self.packetizer.readline(timeout)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/packet.py", line 380, in readline
buf += self._read_timeout(timeout)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/packet.py", line 622, in _read_timeout
raise socket.timeout()
socket.timeout
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2039, in run
self._check_banner()
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2215, in _check_banner
raise SSHException(
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
Traceback (most recent call last):
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2211, in _check_banner
buf = self.packetizer.readline(timeout)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/packet.py", line 380, in readline
buf += self._read_timeout(timeout)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/packet.py", line 622, in _read_timeout
raise socket.timeout()
socket.timeout
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 11, in __init__
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/jupyter_forward/core.py", line 69, in __post_init__
self.session.open()
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/fabric/connection.py", line 636, in open
self.client.connect(**kwargs)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/client.py", line 406, in connect
t.start_client(timeout=timeout)
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 660, in start_client
raise e
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2039, in run
self._check_banner()
File "/Users/wwieder/miniconda3/lib/python3.8/site-packages/paramiko/transport.py", line 2215, in _check_banner
raise SSHException(
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
but I'm able to launch a notebook now?! No idea why, but it seems to be working (for now).
but then I cannot run any of the
runner.run_command()lines.
I think this is available in v2021.4.13 or later
but I'm able to launch a notebook now?! No idea why, but it seems to be working (for now).
Okay... Glad it's working even though we have no idea what went wrong before the sucessful attempt.
Last updated: May 16 2025 at 17:14 UTC