Helium
Helium copied to clipboard
Unable to connect to server with token / password
I'm trying to use Hermes within ST3 build 3156 on Windows 10, with my Jupyter Notebook setup being 4.4.0 installed via Anaconda.
I've followed the instructions here to generate a certificate, key, and a hashed password that is stored in both the jupyter-notebook-config.py
and jupyter-notebook-config.json
files.
When I run jupyter notebook from Bash, I'm able to fire up a browser and work to my heart's content. (Password is entered on first run, not thereafter until I clear cookies.)
I'd like to use Hermes, but I can't get it to connect to Jupyter. For Hermes' "Enter URL" request, I've attempted https://localhost:8888
, the same with the value of my c.NotebookApp.base_url
key from the jupyter-notebook-config.py
file appended, the same with the value of my c.NotebookApp.default_url
key, and the same with both (default first, then base; base first, then default).
Each of those attempts combined with a blank token has failed - but the c.NotebookApp.token
key has been "". I uncommented the token key so now it's '<generated>'
, but that doesn't seem to have made a difference.
Browsing elsewhere to troubleshoot, I've seen that I should be able to run jupyter notebook list
and have the output provide the token. Unfortunately, that's not what I see. I get this instead:
$ jupyter notebook list
Currently running servers:
https://localhost:8888/BerkeleyMIDS/ :: C:\Dropbox\Berkeley MIDS
I'm not sure how to proceed in trying to get Hermes linked up. Any assistance or guidance would be very helpful.
Sorry for delayed response.
Unfortunately Hermes doesn't work with password authentication now. You might have to disable password auth.
On the other hand, it should be able to work with token disabled (although it's not recommended). The output you provided suggests that your notebook server's token is disabled. You should be able to connect server by:
- setting token string as "" in the config file of Hermes.
- just leaving the token input panel empty and hitting enter key.
Thanks for responding. I've disabled authentication via password in my jupyter-config.py
file, and have attempted both just hitting enter w. an empty token input panel and using a ""
in the Hermes settings file. It still gives me the same error message. (Invalid URL or token.)
...is the URL it's looking for (say, in the example above) the https://localhost:8888/BerkeleyMIDS/
? Or is it the URL to the actual file itself (ending in .ipynb
)? I give it the former, but still no dice.
The address is not the one for actual file. It depends on config, but maybe https://localhost:8888/BerkeleyMIDS/
should be the URL in your case. Did you try it?
Yes – that URL combined with “” (blank token) fails with the “Invalid URL or Token” error message.
OK...honestly speaking I can't guess the reason now, sorry. Can you share the config file? It might help to investigate the cause.
Jupyter config file, or Hermes config file?
The Jupyter config file, please.
Here you go. Altered only to the extent that I removed the hashed password. (The key was already – and remains – commented out.)
Thanks. I'll look into it.