-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error adding new users from JupyterHub #7
Comments
Which JupyterHub version? |
I think I see the same behaviour in 0.6.1 but I might not be using the state dictionary correctly. I'm wedging in a uid during add_user with
restarting the hub allows me to login. |
I just tried with the current HEAD(s): jupyterhub/eaeec9f and jupyterhub/dockerspawner@14a336b but I get the same behaviour. I can work around it by modifying
This gets me in (after some redirect problems which I think are unrelated) but I don't really understand the traitlets system yet so I'm not sure that's a good idea. |
I'm using 0.6.0.dev, apparently. Good to know that putting that patch in I think though there must be something that changed in JupyterHub or the Google OAuth plugin, because this definitely used to work! I will be investigating in more depth now this morning. |
Also, I find it a bit strange that when users are created, two lines appear from restuser:
which suggests somehow two requests are being sent, maybe? @minrk do you know what would cause there to be two log entries for that? |
Ok, so I think the problem is the following:
Time to test out this hypothesis now... |
Yes, that seems to fix it! |
I'm not sure why it would create the user twice, that seems odd, but I'm glad you figured out a way to make it work. |
Adding new users seems to succeed:
but then when their server is started, it appears the
user_id
variable in the user state isn't set correctly, so it tries to fall back on the default user id which causes an error since it's in a docker container:Restarting the hub seems to refresh the database and allows the servers to be started, so it does seem the information is being saved into the database correctly -- so maybe there is some view of the database that isn't getting correctly refreshed?
The text was updated successfully, but these errors were encountered: