Closed jpugliesi closed 3 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:
@jpugliesi can you verify that the environment variable is set on the created user pod by inspecting the pod itself?
I'm not confident you configure the setting of the environment variable correctly, or perhaps what you provided was just that? This worked for me in z2jh 0.11.1
singleuser:
defaultUrl: /lab
extraEnv:
# ref: https://github.com/jupyterhub/jupyterhub/blob/master/docs/source/reference/config-user-env.md#switching-to-jupyter-server
JUPYTERHUB_SINGLEUSER_APP: jupyter_server.serverapp.ServerApp
our
jupyter_server_config.py
is:c = get_config() c.Spawner.default_url = '/lab'
I didn't configure this or similar. I suggest to try removing that. Note that Spawner
is a JupyterHub thing, and jupyter_server
which isn't won't be aware of this anyhow I think.
This seems stale now, and is probably not related to z2jh itself. I'll close this.
Note that if this was caused by jupyterhub/jupyterhub#3328, then it will be fixed with the next z2jh release that will contain that version of JupyterHub having that fix.
You can fix this problem by setting the following
singleuser:
cmd: jupyter-labhub
SEE https://discourse.jupyter.org/t/jupyterhub-singleuser-and-jupyter-server/10942/14
Bug description
Hello - we are using z2jh 0.11.1, attempting to use jupyterlab 3.0.5 with the new
ServerApp
for the single-user serversWe currently get 404s from the singleuser server when set up:
We've set the following env variable in the singleuser server:
and configure the z2jh config to use jupyterlab:
our
jupyter_server_config.py
is:Expected behaviour
I expect the following configuration to work
Actual behaviour
Spawning a singleuser server produces a 404
How to reproduce
Your personal set up
Kubernetes 1.16.5
pip freeze in singleuser server env: