question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot access Lab directly (ignoring Spawner.default_url)

See original GitHub issue

I tried to test jupyterhub + dockerspawner with JupyterLab .

I can access Lab page if I type the URL (such that /user/%U/lab) but I cannot access directly from Login Screen.

And I can access Lab directly when I don’t use dockerspawner.

There are no logs to GET /lab or /user/%U/lab on the logs of jupyterhub and docker container. I’m wondering if dockerspawner ignores or overwrites Spawner.default_url setting.

I use jupyterhub 0.6.1 (installed by conda) dockerspawner 0.5.0

The Dockerfile when I tried to build image is here.

FROM jupyterhub/singleuser:latest

USER root
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y htop
RUN conda update --all -c defaults --yes
RUN conda config --set channel_priority false
RUN conda install -c conda-forge jupyterlab --yes
RUN jupyter serverextension enable --py jupyterlab --sys-prefix

And extract from my jupyterhub_config.py is here.

c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.DockerSpawner.hub_ip_connect = '172.17.0.1'
c.JupyterHub.hub_ip = '172.17.0.1'
c.DockerSpawner.container_image = "oooooooooo"
c.Spawner.default_url = '/lab'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
harapekoaomushicommented, Nov 9, 2016

@steverweber Great!! I can access /lab directly when the following parameters are set on Dockerfile equal to your recommended arguments. Thank you very much.

CMD ["sh", "/srv/singleuser/singleuser.sh", "--SingleUserNotebookApp.default_url=/lab", "--SingleUserNotebookApp.disable_user_config=True"]
1reaction
steverwebercommented, Nov 9, 2016

perhaps use

    --SingleUserNotebookApp.default_url=/lab \

like.
sudo -E -u $USER jupyterhub-singleuser \
    --debug \
    --port=8888 \
    --ip=0.0.0.0 \
    --user=$JPY_USER \
    --cookie-name=$JPY_COOKIE_NAME \
    --base-url=$JPY_BASE_URL \
    --hub-prefix=$JPY_HUB_PREFIX \
    --hub-api-url=$JPY_HUB_API_URL \
    --SingleUserNotebookApp.default_url=/lab \
    --SingleUserNotebookApp.disable_user_config=True \
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Spawners — JupyterHub 3.1.0 documentation
Start with /notebooks instead of /tree if default_url points to a notebook instead of a directory. You can set this to /lab to...
Read more >
Spawn failed: Could not create pod - Jupyter Community Forum
Since few days now I'm facing this issue (Spawn failed: Could not create ... cmd: jupyterhub-singleuser defaultUrl: "/lab" extraPodConfig: ...
Read more >
Access Medical Labs: Specialty Laboratory – COVID-19 | Home
At Access Medical Labs, we provide solutions to save time for Hormone Testing Florida, Anti-Aging Testing, Weight Loss Testing and more.
Read more >
Direct Access Lab Testing - Meeker Memorial Hospital & Clinics
Simple, affordable and convenient direct access lab services at Meeker Memorial. No appointments needed. Take care of your health today.
Read more >
Direct Access Lab - River's Edge Hospital and Clinic
Direct Access Laboratory Testing (DALT) is a convenient way for patients to receive commonly asked for tests without an order from their physician....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found