infinite authentication loop
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
I am trying to run Jupyter Lab in a Docker container on a Windows machine.
But Jupyter does not accept the token or does not allow me to register a password.
Dockerfile:
```
FROM jupyter/minimal-notebook
[...]
```
docker-compose.yml
```
version: '2.3'
services:
python:
build:
context: .
dockerfile: Dockerfile
image: python_image
volumes:
- ./notebooks:/home/jovyan/notebooks
ports:
- "8888:8888"
```
after `docker-compose up -d` the container starts and the logfile shows:
```
[I 17:57:51.274 NotebookApp] The Jupyter Notebook is running at:
[I 17:57:51.274 NotebookApp] http://27cea0d39249:8888/?token=8b99fa26fb7e7278796c83327095b92477b3c606025f58e7
[I 17:57:51.275 NotebookApp] or http://127.0.0.1:8888/?token=8b99fa26fb7e7278796c83327095b92477b3c606025f58e7
[I 17:57:51.275 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
```
When I use `http://127.0.0.1:8888/?token=8b99fa26fb7e7278796c83327095b92477b3c606025f58e7` in the browser of the host computer, I get redirected to `http://127.0.0.1:8888/login?next=%2Ftree%3Ftoken%3D8b99fa26fb7e7278796c83327095b92477b3c606025f58e7`, and the page "Token authentication is required".
(1) entering the token (even though it was present in the URL) has no effect (fails with `Invalid credentials`)
(2) entering token and a new password to "Setup a Password" does not work (nothing seems to happen)
Any thoughts what may be wrong?
Contributor guide
Research direction
Start with the provided Dockerfile and docker-compose.yml, then reproduce the redirect and authentication failures using the container log and token URL. Check whether token entry or password setup succeeds in the reported Windows host setup. Done means the Jupyter interface accepts the displayed token or permits password setup without returning Invalid credentials.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, jupyter-notebook
- Domain
- authentication, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100