nebari-dev / jhub-apps

Application creator and general launcher for JupyterHub
https://jhub-apps.nebari.dev/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Failing to reach console after successfully logging in #408

Open yoavnash opened 4 months ago

yoavnash commented 4 months ago

Context

Immediately after logging in, I'm being redirected to /services/japps/jhub-login which doesn't load.

After stating Jupyter, I am able to see the login page: image

I then enter my credentials (username: admin, password: admin), which seema to work. I then for a second see the console, and then immediately I'm being redirected to /services/japps/jhub-login which doesn't load at all on the browser.

Value and/or benefit

If this problem occurred to other people as well, it would be useful to address it here.

Anything else?

The content of the jupyterhub_config.py file I'm using:

from jupyterhub.spawner import SimpleLocalProcessSpawner

from jhub_apps import theme_template_paths
from jhub_apps.configuration import install_jhub_apps

c = get_config()  # noqa

from jupyterhub.auth import DummyAuthenticator  # noqa: E402

c.Authenticator.admin_users = {"admin"}
c.JupyterHub.authenticator_class = DummyAuthenticator
c.JupyterHub.log_level = 10

hub_url = "http://:8888"
c.JupyterHub.bind_url = hub_url
c.JAppsConfig.jupyterhub_config_path = "jupyterhub_config.py"
c.JAppsConfig.conda_envs = []
c.JAppsConfig.service_workers = 1
c.JupyterHub.default_url = "/hub/home"

c = install_jhub_apps(c, spawner_to_subclass=SimpleLocalProcessSpawner)

c.JupyterHub.template_paths = theme_template_paths