Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to set user password #650

Closed
tar-xzvff opened this issue Jan 14, 2021 · 2 comments
Closed

Unable to set user password #650

tar-xzvff opened this issue Jan 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@tar-xzvff
Copy link

Bug description

I read this document and added a user.
https://tljh.jupyter.org/en/latest/install/custom-server.html#step-2-adding-more-users

But, the screen for setting a password is not displayed when the added user logs in for the first time.
How can I set a password?

Expected behaviour

can set a password when you log in for the first time

Actual behaviour

can't set a password

How to reproduce

Follow the "Installing on your own server" instructions to set up.
https://tljh.jupyter.org/en/latest/install/custom-server.html

Your personal set up

  • OS: Ubuntu18.04
  • Version(s):
# /opt/tljh/hub/bin/jupyterhub --version
1.2.2
  • Configuration
# jupyterhub_config.py
"""
JupyterHub config for the littlest jupyterhub.
"""

from glob import glob
import os

from systemdspawner import SystemdSpawner
from tljh import configurer
from tljh.config import INSTALL_PREFIX, USER_ENV_PREFIX, CONFIG_DIR
from tljh.utils import get_plugin_manager
from tljh.user_creating_spawner import UserCreatingSpawner
from jupyterhub_traefik_proxy import TraefikTomlProxy

c.JupyterHub.spawner_class = UserCreatingSpawner

# leave users running when the Hub restarts
c.JupyterHub.cleanup_servers = False

# Use a high port so users can try this on machines with a JupyterHub already present
c.JupyterHub.hub_port = 15001

c.TraefikTomlProxy.should_start = False

dynamic_conf_file_path = os.path.join(INSTALL_PREFIX, 'state', 'rules', 'rules.toml')
c.TraefikTomlProxy.toml_dynamic_config_file = dynamic_conf_file_path
c.JupyterHub.proxy_class = TraefikTomlProxy

c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')]
c.SystemdSpawner.default_shell = '/bin/bash'
# Drop the '-singleuser' suffix present in the default template
c.SystemdSpawner.unit_name_template = 'jupyter-{USERNAME}'

tljh_config = configurer.load_config()
configurer.apply_config(tljh_config, c)

# Let TLJH hooks modify `c` if they want

# Call our custom configuration plugin
pm = get_plugin_manager()
pm.hook.tljh_custom_jupyterhub_config(c=c)

# Load arbitrary .py config files if they exist.
# This is our escape hatch
extra_configs = sorted(glob(os.path.join(CONFIG_DIR, 'jupyterhub_config.d', '*.py')))
for ec in extra_configs:
    load_subconfig(ec)
@tar-xzvff tar-xzvff added the bug Something isn't working label Jan 14, 2021
@welcome
Copy link

welcome bot commented Jan 14, 2021

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@consideRatio
Copy link
Member

consideRatio commented Oct 26, 2021

I've created an issue about this in FirstUseAuthenticator where the fix for this needs to be made: jupyterhub/firstuseauthenticator#42

Also for reference, see #264 regarding work towards switching to another authenticator that can offer a better user experience with this regard, as well as #571 that is related.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants