It’s probably because you started it once as one user and then again as the other, with the same jupyterhub.sqlite. You are absolutely right that, by default, if you specify no admin users, the user running the server is added as an admin. The source of the confusion is probably that this will only happen once, because if it’s happened before, there will be at least one admin user, and it won’t happen again for the same Hub instance.
Deleting jupyterhub.sqlite or the root user from the database would result in ubuntu being made admin. You are also right, however, that the best way to address this is to make ubuntu an admin explicitly, rather than relying on the implicit at-least-one-admin behavior, with this config in jupyterhub_config.py:
c.Authenticator.admin_users = {'ubuntu'}
This should ensure that ubuntu is made admin on startup, regardless of what user you use to launch the process.
I’m thinking that perhaps better behavior is to remove the implicit-admin logic entirely, since it can be confusing like this, and instead require administrators to be added explicitly, warning on startup if no administrators are found (especially since the Hub actually works just fine with no admins).
Hope that helps,
-MinRK
--Thanks,Clare
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+u...@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/f92194d2-da1b-49c0-9e2e-17ab6d3c4c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/iqWuPKUWw64/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@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/CAHNn8BWF%3DPNawcAnify7afJqUSvQKHCpJbNh%3DaiM9ZnU3ktRJw%40mail.gmail.com.