Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change password with TLJH JupyterHub 4.0.2 #256

Open
AAC-Development opened this issue Oct 11, 2023 · 2 comments
Open

Unable to change password with TLJH JupyterHub 4.0.2 #256

AAC-Development opened this issue Oct 11, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@AAC-Development
Copy link

Hello, when trying to change a password, I get a 500 error.
journalctl -u jupyterhub

Oct 11 15:34:24 servername python3[123]: [E 2023-10-11 15:34:24.227 JupyterHub web:1871] Uncaught exception POST /hub/change-password (172.16._._)
Oct 11 15:34:24 servername python3[123]:     HTTPServerRequest(protocol='https', host='jupyter.example.com', method='POST', uri='/hub/change-password', version='HTTP/1.1', remote_ip='172.16._._')
Oct 11 15:34:24 servername python3[123]:     Traceback (most recent call last):
Oct 11 15:34:24 servername python3[123]:       File "/opt/tljh/hub/lib/python3.10/site-packages/tornado/web.py", line 1786, in _execute
Oct 11 15:34:24 servername python3[123]:         result = await result
Oct 11 15:34:24 servername python3[123]:       File "/opt/tljh/hub/lib/python3.10/site-packages/nativeauthenticator/handlers.py", line 348, in post
Oct 11 15:34:24 servername python3[123]:         ).is_valid_password(old_password)
Oct 11 15:34:24 servername python3[123]:     AttributeError: 'NoneType' object has no attribute 'is_valid_password'

It seems self.authenticator.get_user(user.name) in handlers.py is returning None. This has happened after I recently tried to enable NativeAuthenticator via sudo tljh-config set auth.type nativeauthenticator.NativeAuthenticator. The user I was trying to change the password for was an admin user that I have originally set up prior to telling it to use NativeAuthenticator.

Any assistance in resolving this issue would be greatly appreciated.

@AAC-Development AAC-Development added the bug Something isn't working label Oct 11, 2023
@welcome
Copy link

welcome bot commented Oct 11, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@AAC-Development AAC-Development changed the title Unable to change password with JupyterHub 4.0.2 Unable to change password with TLJH JupyterHub 4.0.2 Oct 11, 2023
@AAC-Development
Copy link
Author

Update:
tljh-config set auth.type native, however the issue still persists.
https://tljh.jupyter.org/en/latest/topic/authenticator-configuration.html

Additionally, I am unsure how to acquire the TLJH-equivalent configuration command for c.JupyterHub.template_paths = [f"{os.path.dirname(nativeauthenticator.__file__)}/templates/"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant