-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble installing and using jhub-apps in TLJH #409
Comments
Hey @tsi-rnguyen thanks for reporting this. I have a few questions:
What do you see on jupyterhub's home page? |
My config file is pretty basic, all I've configured was https, oauth, and attempted to install jhub-apps. This is the base TLJH jupyterhub_config.py
I have extended that config with the below:
In addition here is my config.yaml
Below is the packages installed inn /opt/tljh/hub/
and lastly all I see on my jupyterhub home: |
@aktech, any insights from the above logs / configs ? |
ping ? If there is nothing to be learned from the above data, any ideas how to debug this ? |
I am currently facing the same issue with TLJH. It seems that the |
Thanks for the config, taking a quick look at it, it seems you're missing (it's not documented): from jhub_apps import theme_template_paths
c.JupyterHub.template_paths = theme_template_paths
c.JupyterHub.default_url = "/hub/home"
c.JAppsConfig.jupyterhub_config_path = "path/to/your/jupyterhub_config.py" # or something like str(Path(__file__).resolve()) Let me know if doesn't works. I'll to reproduce the config and will get back to you guys. I just came back from PTO today :) |
Thanks for the response.
Here is my from tljh.user_creating_spawner import UserCreatingSpawner
from jhub_apps.configuration import install_jhub_apps
from jhub_apps import theme_template_paths
from pathlib import Path
c.JupyterHub.bind_url = "http://<hosted url>"
c.SystemdSpawner.unit_name_template = 'jupyter-{USERNAME}{JHUBSERVERNAME}'
c.JupyterHub.template_paths = theme_template_paths
c.JupyterHub.default_url = "/hub/home"
c.JAppsConfig.apps_auth_type = "oauth" # oauth or none (if you don't want authentication on apps)
c.JAppsConfig.python_exec = "python3"
c.JAppsConfig.jupyterhub_config_path = "jupyterhub_config.py"
c.JAppsConfig.conda_envs = []
c = install_jhub_apps(c, UserCreatingSpawner)
c.JAppsConfig.jupyterhub_config_path = str(Path(__file__).resolve()) UPDATE: Apparently in the jhub-apps/jhub_apps/service/routes.py Lines 88 to 95 in f298b2e
Per JHub docs, there should be a |
@aktech Would appreciate if you have any update / advice regarding this issue. |
I just deployed a fresh TLJH and created a file named from tljh.user_creating_spawner import UserCreatingSpawner
from jhub_apps.configuration import install_jhub_apps
from jhub_apps import theme_template_paths
from pathlib import Path
c.JupyterHub.bind_url = "http://192.168.50.37"
c.SystemdSpawner.unit_name_template = 'jupyter-{USERNAME}{JHUBSERVERNAME}'
c.JAppsConfig.apps_auth_type = "oauth" # or none (if you don't want authentication on apps)
c.JAppsConfig.python_exec = "python3"
# Pass in the path to jupyterhub config
c.JAppsConfig.jupyterhub_config_path = str(Path(__file__).resolve())
# Either a static list of conda environments to show in the
# create panel apps form or a callable to fetch conda enviornments
# dynamically, e.g. from conda-store API
c.JAppsConfig.conda_envs = []
c = install_jhub_apps(c, UserCreatingSpawner)
c.JupyterHub.template_paths = theme_template_paths
c.JupyterHub.default_url = "/hub/home" I was able to access the jhub-apps and deploy a panel app: The logo didn't loaded by default, which we need to fix.
I'll take a look and get that fixed.
@BardiaKh What do you see in the UI and the network tab, can you share a screenhot? |
I've installed TLJH locally using docker as described here: https://tljh.jupyter.org/en/latest/contributing/dev-setup.html
I can start JupyterLab without issues, and I can see the new Hub Control panel, but when i try to create a streamlit app Any idea what is going wrong? Thanks a lot. |
I assume you do have
This might be a bug which should have been fixed in the latest release, what version of |
Thanks for the tipps. I reinstalled everything and i can create streamlit dashboards now if I install everything in
Thanks a lot! |
@aktech Could you help please? |
Context
I have installed the latest TLJH on a Ubuntu instance and have been trying to install jhub-apps into it following the instructions provided in the readme. And it appears to spawn the API docs on port 10202 but not the actual jhub-apps on port 8000. I don't see any particular errors in the journalctl that would indicate a start issue. Is there something I am missing?
I have jhub-apps installed for both /opt/tljh/hub and /opt/tljh/user.
Value and/or benefit
tljh integration usage
Anything else?
No response
The text was updated successfully, but these errors were encountered: