Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Jupyter Token Authenticaion : Invalid Credential

I am following ImageCaption generation project guided by Oreilly in the following link

https://www.oreilly.com/learning/caption-this-with-tensorflow

But while I am following the github docker option A where the github correpondent to the above insturction, I installed docker and ran jupyter but keep shown with token authentication page.

https://github.com/mlberkeley/oreilly-captions?utm_source=newsite&utm_medium=content&utm_campaign=lgen&utm_content=caption-this-with-tensorflow-top-cta

But whenever I copy and paste the token I've given from the terminal windows, it keep returning "invalid credentials"

What would be the possible cause of it?

enter image description here

like image 521
Beverlie Avatar asked Jun 18 '18 06:06

Beverlie


People also ask

How do I find my jupyter notebook token?

Just right click on the jupyter notebook logo in the currently running server, you probably have a server running already, then click on copy link, then paste the link in a text editor, maybe MS word, you will see the token in the link, copy and paste where token is required.


3 Answers

Also had this problem, solved it by changing

http://127.0.0.1:8888/?token=your-token

to

http://localhost:8888/?token=your-token

like image 158
Sebastian Chesa Avatar answered Sep 17 '22 18:09

Sebastian Chesa


I also had same problem, if you are using Windows: start jupyter and go to Anaconda Prompt and use this command:

jupyter notebook list

command output:

Currently running servers:

http://localhost:8888/?token=9a24db0b60370b1cb3fed2fb06b3acd316c59f50388e3711 :: C:\Users\user_name

http://localhost:8888/?token=10a787bf262f214bd14ef31f869f3090f126ba252443a048 :: C:\Users\user_name

I copy pasted the second token 10a787bf262f214bd14ef31f869f3090f126ba252443a048 from the second URL and then it worked!!

like image 21
user9905807 Avatar answered Sep 18 '22 18:09

user9905807


I think you need to:

  1. shutdown all the opening notebooks, as the port 8888 might be used by another one.
  2. map container port 8888 to your localhost port 8888
docker run -p 8888:8888 <your image>
like image 31
Omid Avatar answered Sep 20 '22 18:09

Omid