You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a user as admin: sudo tljh-config add-item users.admin "9" (users are numbers with LTI)
Reload the hub with tljh-config reload hub
JupyterHub fails to reload with the following stack trace:
Jun 23 17:11:14 jhub3 python3[442251]: [E 2020-06-23 17:11:14.041 JupyterHub app:2718]
Jun 23 17:11:14 jhub3 python3[442251]: Traceback (most recent call last):
Jun 23 17:11:14 jhub3 python3[442251]: File "/opt/tljh/hub/lib/python3.8/site-packages/jupyterhub/app.py", line 2715, in launch_instance_async
Jun 23 17:11:14 jhub3 python3[442251]: await self.initialize(argv)
Jun 23 17:11:14 jhub3 python3[442251]: File "/opt/tljh/hub/lib/python3.8/site-packages/jupyterhub/app.py", line 2286, in initialize
Jun 23 17:11:14 jhub3 python3[442251]: await self.init_users()
Jun 23 17:11:14 jhub3 python3[442251]: File "/opt/tljh/hub/lib/python3.8/site-packages/jupyterhub/app.py", line 1614, in init_users
Jun 23 17:11:14 jhub3 python3[442251]: admin_users = [
Jun 23 17:11:14 jhub3 python3[442251]: File "/opt/tljh/hub/lib/python3.8/site-packages/jupyterhub/app.py", line 1615, in <listcomp>
Jun 23 17:11:14 jhub3 python3[442251]: self.authenticator.normalize_username(name)
Jun 23 17:11:14 jhub3 python3[442251]: File "/opt/tljh/hub/lib/python3.8/site-packages/jupyterhub/auth.py", line 325, in normalize_username
Jun 23 17:11:14 jhub3 python3[442251]: username = username.lower()
Jun 23 17:11:14 jhub3 python3[442251]: AttributeError: 'int' object has no attribute 'lower'
Your personal set up
OS: Ubuntu
Version: 20.04
Configuration: TLJH with LTIAuthenticator
Workaround
A workaround is to specify the list of admin users explicitely as strings in the JupyterHub config with:
c.Authenticator.admin_users= { '9' }
The text was updated successfully, but these errors were encountered:
I've seen the equivalent issue for the helm CLI resolved as a --set-string alongside the more commonly used --set.
I'm not sure how to go about handling this situation as it's a bit too convoluted in my mind if we would track what value that the user tries to set or add an item to... Well... Unless we have a schema for it at least, hmmm...
I've opened #725 to track the need for adding a JSONSchema for the tljh configuration file.
Bug description
Expected behaviour
It should be possible to add admin users identified as numbers via
tljh-config
.Actual behaviour
Doing so yields an error (see traceback below)
How to reproduce
sudo tljh-config add-item users.admin "9"
(users are numbers with LTI)tljh-config reload hub
Your personal set up
Workaround
A workaround is to specify the list of admin users explicitely as strings in the JupyterHub config with:
The text was updated successfully, but these errors were encountered: