Closed OffensiveGeneric closed 2 years ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
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.
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! :wave:
Welcome to the Jupyter community! :tada:
This seems like a straightforward bug associated with us not configuring traefik, but only c.JupyterHub.base_url, which isn't enough I presume.
This seems like a straightforward bug associated with us not configuring traefik, but only c.JupyterHub.base_url, which isn't enough I presume.
After hacking at it for a number of hours, I discovered that directly setting c.JupyterHub.base_url = '/jupyter'
in the jupyterhub_config.py
allows the base URL to persist between restarts of the hub & proxy services. The login becomes available on the desired URL path. However, it breaks the user environments and when a user logs in, they are unable to open any notebooks. I presume this has something to do with authentication/spawner aspects of the application. Either way, setting the config options in the config.yaml
does nothing to affect the downstream variables. Going to try and figure this out today.
@OffensiveGeneric can you try verify if it breaks if a user logins - or if it breaks if a user tries to access their server? For me to follow clearly I may need to have a more clear description on "it breaks".
If you are testing things, test against:
/jupyter/hub/home
--- traefik proxy should take you to the hub/jupyter/user/username
--- traefik proxy should take you to the user's server@consideRatio
I am able to login to my account, and the login page is accessable from the correct URL. However a few times when I would login, the application would hang on the spawing page, being seemingly unable to spawn my environment. For whatever reason I'm having trouble reproducing this right now. UPDATE: here's an image of the spawing page hang, I was able to reproduce it.
Either way, afterwords, I am able to access my server from /home, but trying to make a new python notebook while in my server gives me this error. In fact, I cannot generate or upload any files at all.
I have a user account, tyler, in the hub which has admin privileges.
- /jupyter/hub/home --- traefik proxy should take you to the hub
This works as expected, I think. Once you are logged in, brings me here.
- /jupyter/user/username --- traefik proxy should take you to the user's server
This also works as expected, however for my account it adds /tree
or in one instance /tree?#notebooks
to the end of this url.
Is there any progress on this? If I could get TLJH running on a separate base_url, I might be able to make some progress on getting WebMO running on the same server. An alternative might be configuring jupyter-server-proxy, but I haven't had time to see if that will fit my requirements (or if it's even capable of doing the task I need).
I admit I'm unable to do much on my own, as I often don't know what it is I don't know… I'm trying to pick up things as fast as I can, but I run into missing vocabulary issues.
@consideRatio @mskblackbelt
For those curious, this should be considered fixed by the merge of Add base_url capability to tljh-config #623. If your install is from before this merge (Nov. 5, 2020), the feature to change the base url is broken/not configured properly.
Update by Erik - 2021-10-26
This was also reported in #655 with relevant logs.
Bug description
I am running a TLJH server on Ubuntu 20.04.3 LTS (Focal Fossa). I would like the login to be available at a path on a subdomain I own, some.domain.org/jupyter/hub (and eventually be able to serve a page at /jupyter that lists some other hubs). After searching for a while, I know that I should be able to do this with
sudo tljh-config set base_url /jupyter
and thensudo tljh-config reload proxy
. Doing this makessudo tljh-config show
show correctly that the config.yaml file has been changed, but upon inspection, nothing in the traefik rules.toml has been updated (that is, the file still looks like)What's going on here? Any workarounds?
Expected behaviour
sudo tljh-config set base_url /jupyter
and thensudo tljh-config reload proxy
should make the hub available on the path some.domain.org/jupyter/hub.Actual behaviour
sudo tljh-config set base_url /jupyter
and thensudo tljh-config show
shows correctly that the config.yaml file has been changed, but upon inspection, nothing in the traefik rules.toml has been updated.Your personal set up
Full environment