ncar-xdev / jupyter-forward

Launch Jupyter Lab over SSH with a single command!
https://jupyter-forward.readthedocs.io/
Apache License 2.0
31 stars 12 forks source link

Unhandled type 3 #86

Open malmans2 opened 3 years ago

malmans2 commented 3 years ago

Hi there! I've been using this great tool and it looks like it's working out of the box for most of my machines. For some reason I can't get it to work on Archer2.

For this specific machine I need to use an SSH key pair and I also have to type my password (https://docs.archer2.ac.uk/user-guide/connecting/). The Authentication step is successful, but then I get this:

************************ Running jupyter sanity checks *************************
conda activate jupyter && sh -c "command -v jupyter"
Oops, unhandled type 3 ('unimplemented')

Nothing happens after that, it just hangs.

Any idea?

rsignell-usgs commented 3 years ago

Does conda activate work on that machine or do you do source activate?

malmans2 commented 3 years ago

conda activate works

andersy005 commented 3 years ago

@malmans2, do you still experience this issue with the latest version (v2021.5.11)?

malmans2 commented 3 years ago

Hi @andersy005, yes I'm getting the same error...

andersy005 commented 3 years ago

Hmmm... Do you mind posting the full traceback when you get a moment?

malmans2 commented 3 years ago

This is all I get: $ jupyter-forward archer2 --conda-env jupyter --port 8181

******************************** Authentication ********************************
Authenticating user (malmans) from client (mattia-XPS-13-9380) to remote host 
(login.archer2.ac.uk)
Password: 
✅ The client is authenticated successfully
************************ Running jupyter sanity checks *************************
source activate jupyter && sh -c "command -v jupyter"
Oops, unhandled type 3 ('unimplemented')

After that, it hangs forever.

My .ssh/config:

Host *
  IgnoreUnknown UseKeychain
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa
  ForwardAgent yes

Host archer2
  User malmans
  HostName login.archer2.ac.uk
  IdentityFile ~/.ssh/id_rsa_archer