Skip to content

Password set via login fails to take effect until restart #3842

@Vance-Turner

Description

@Vance-Turner

Jupyter notebook passwords set via the login interface seem to not take effect until the jupyter process is restarted. Such behavior seems contrary to what is stated here:

Next time you need to log in you’ll be able to use the new password instead of the login token, otherwise follow the procedure to set a password from the command line.

The issue can be reproduced by:

  1. jupyter notebook --NotebookApp.allow_password_change=True --NotebookApp.token=sillytoken
  2. Open up localhost:8888 (without the token in the URL)
  3. Change password via the token
  4. Log out
  5. Return to log in page and attempt to use password set. Notebook refuses password.
  6. Shutdown jupyter from terminal.
  7. Start jupyter again and attempt to log in. Password set earlier is accepted.

Is there some configuration I am missing to have passwords immediately take effect? Such behavior is desirable as we are trying to use JupyterLab within a docker container, but users' passwords do not take effect until the process is restarted which in the context of docker implies the container is destroyed. The behavior present in the docker stack seems to arise from Jupyter itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions