On Tue, Jan 3, 2017 at 6:21 AM, Jonathan Morgan <
[email protected]> wrote:

Hello,
>
> I am having an odd problem with jupyterhub on two ubuntu machines where I
> just installed jupyterhub - one is Ubuntu 16.04, one is ubuntu 16.10.
> Jupyterhub version is 0.7.0.  Python version is the default 3.5 for each of
> the OSes.
>
> I get the following errors:
>
> [E 2017-01-03 00:12:07.828 JupyterHub app:916] Error adding user 'o'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User o does not exist.'
>
> [E 2017-01-03 00:12:07.829 JupyterHub app:916] Error adding user 'g'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User g does not exist.'
>
> [E 2017-01-03 00:12:07.829 JupyterHub app:916] Error adding user 't'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User t does not exist.'
>
> [E 2017-01-03 00:12:07.829 JupyterHub app:916] Error adding user 'n'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User n does not exist.'
>
> [E 2017-01-03 00:12:07.829 JupyterHub app:916] Error adding user 'm'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User m does not exist.'
>
> [E 2017-01-03 00:12:07.830 JupyterHub app:916] Error adding user 'j'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User j does not exist.'
>
> [E 2017-01-03 00:12:07.830 JupyterHub app:916] Error adding user 'a'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User a does not exist.'
>
> [E 2017-01-03 00:12:07.830 JupyterHub app:916] Error adding user 'h'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User h does not exist.'
>
> [E 2017-01-03 00:12:07.830 JupyterHub app:916] Error adding user 'r'
> already in db
>     Traceback (most recent call last):
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py",
> line 911, in init_users
>         yield gen.maybe_future(self.authenticator.add_user(user))
>       File "/usr/local/lib/python3.5/dist-packages/jupyterhub/auth.py",
> line 392, in add_user
>         raise KeyError("User %s does not exist." % user.name)
>     KeyError: 'User r does not exist.'
>
> Does this sound familiar to anyone?  Any idea if there is something I
> might have configured wrong to make this happen?  If I can provide more
> information that might be useful, please let me know.
>
Indeed it does. Do you perhaps have a line in your jupyterhub_config.py
that looks like:

c.Authenticator.whitelist = set('jonathanmorgan')

If so, you are missing some brackets, because that is the set {'j', 'o',
'n', ...}. You want:

c.Authenticator.whitelist = set(['jonathanmorgan'])# or set literal:
c.Authenticator.whitelist = {'jonathanmorgan'}

JupyterHub 0.7.1 (currently in the process of releasing) adds a more
informative warning <https://github.com/jupyterhub/jupyterhub/pull/896> if
it thinks this has happened.

-Min


> I tried deleting the jupyterhub.sqlite database file, and it has no
> effect.  I always get this same set of errors with the same set of users.
> It is very strange.  I've been using jupyterhub for a few years now, have
> never seen anything like this.
>
> Any help will be greatly appreciated.
>
> Thanks,
>
> Jonathan Morgan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/84d1d60c-99dc-4fc4-8cc8-0718788f2deb%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/84d1d60c-99dc-4fc4-8cc8-0718788f2deb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
​

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAHNn8BULd8LmMsxN-5%3DOhAdA_7jiVer8EUX%2BJOSbq1kHisoW4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to