Jupyter 0.7.0 - errors adding single-letter users when I start up a clean install of jupyterhub

365 views
Skip to first unread message

Jonathan Morgan

unread,
Jan 3, 2017, 12:21:13 AM1/3/17
to Project Jupyter
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.

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

MinRK

unread,
Jan 3, 2017, 4:11:13 AM1/3/17
to Project Jupyter

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 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 jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/84d1d60c-99dc-4fc4-8cc8-0718788f2deb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages