Ask quick dev questions about JupyterHub, the multi-user server for Jupyter notebooks. Use discourse.jupyter.org for user questions, support, and discussion.
python -m jupyterhub.dbutil alembic …
psql --command 'CREATE DATABASE jupyterhub-test'
)
Thanks @yuvipanda ! Do I need all of this?
hub: extraConfig: | from kubernetes import client def modify_pod_hook(spawner, pod): pod.spec.containers[0].security_context = client.V1SecurityContext( privileged=True, capabilities=client.V1Capabilities( add=['SYS_ADMIN'] ) ) return pod c.KubeSpawner.modify_pod_hook = modify_pod_hook singleuser: uid: 0 gid: 0 storage: extraVolumes: - name: fuse hostPath: - path: /dev/fuse extraVolumeMounts: - name: fuse mountPath: /dev/fuse
Hello, I am trying to mount Goofys on the SingleUser Notebook and since it uses Fuse I need access to /dev/fuse. I this still one of the recommended approach to using Fuse?
Hello, I tried to install jupyterhub on kubernates with the following command:helm upgrade --cleanup-on-fail --install jhub jupyterhub/jupyterhub --namespace jhub --create-namespace --version=1.2.0 --values config.yaml
But I've got the following error message:
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
With kubectl -n jhub get events --sort-by='{.lastTimestamp}' I've found the following messages:
5m57s Warning FailedCreatePodSandBox pod/hook-image-puller-hq5c4 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71" network for pod "hook-image-puller-hq5c4": networkPlugin cni failed to set up pod "hook-image-puller-hq5c4_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71" network for pod "hook-image-puller-hq5c4": networkPlugin cni failed to teardown pod "hook-image-puller-hq5c4_jhub" network: Delete "http://127.0.0.1:6784/ip/04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71": dial tcp 127.0.0.1:6784: connect: connection refused] 5m57s Warning FailedCreatePodSandBox pod/hook-image-puller-86mm4 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6" network for pod "hook-image-puller-86mm4": networkPlugin cni failed to set up pod "hook-image-puller-86mm4_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6" network for pod "hook-image-puller-86mm4": networkPlugin cni failed to teardown pod "hook-image-puller-86mm4_jhub" network: Delete "http://127.0.0.1:6784/ip/124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6": dial tcp 127.0.0.1:6784: connect: connection refused] 5m56s Warning FailedCreatePodSandBox pod/hook-image-awaiter-m2pgc Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750" network for pod "hook-image-awaiter-m2pgc": networkPlugin cni failed to set up pod "hook-image-awaiter-m2pgc_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750" network for pod "hook-image-awaiter-m2pgc": networkPlugin cni failed to teardown pod "hook-image-awaiter-m2pgc_jhub" network: Delete "http://127.0.0.1:6784/ip/08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750": dial tcp 127.0.0.1:6784: connect: connection refused] 3m52s Warning FailedKillPod pod/hook-image-awaiter-gdgd7 error killing pod: failed to "KillPodSandbox" for "3f74aa20-9fbb-4050-8970-0fe204575859" with KillPodSandboxError: "rpc error: code = Unknown desc = networkPlugin cni failed to teardown pod "hook-image-awaiter-gdgd7_jhub" network: Delete "http://127.0.0.1:6784/ip/cbe73be6bfd0b53fafddd0a20d7e42263edbac5c82dab0b5a6d13fa1b2867891": dial tcp 127.0.0.1:6784: connect: connection refused"
Is there someting missing in my config?
:point_up: Edit: Hello, I tried to install jupyterhub on kubernetes with the following command:helm upgrade --cleanup-on-fail --install jhub jupyterhub/jupyterhub --namespace jhub --create-namespace --version=1.2.0 --values config.yaml
But I've got the following error message:
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
With kubectl -n jhub get events --sort-by='{.lastTimestamp}' I've found the following messages:
5m57s Warning FailedCreatePodSandBox pod/hook-image-puller-hq5c4 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71" network for pod "hook-image-puller-hq5c4": networkPlugin cni failed to set up pod "hook-image-puller-hq5c4_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71" network for pod "hook-image-puller-hq5c4": networkPlugin cni failed to teardown pod "hook-image-puller-hq5c4_jhub" network: Delete "http://127.0.0.1:6784/ip/04d4aacd7e577cd3b65aa5c19607da7a27bbc6b77a645d8b574ccd051241db71": dial tcp 127.0.0.1:6784: connect: connection refused] 5m57s Warning FailedCreatePodSandBox pod/hook-image-puller-86mm4 Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6" network for pod "hook-image-puller-86mm4": networkPlugin cni failed to set up pod "hook-image-puller-86mm4_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6" network for pod "hook-image-puller-86mm4": networkPlugin cni failed to teardown pod "hook-image-puller-86mm4_jhub" network: Delete "http://127.0.0.1:6784/ip/124446411d73d3ca2bd914ab4a43d61dd1e5656bf2bb608fe26fce8ae026d0b6": dial tcp 127.0.0.1:6784: connect: connection refused] 5m56s Warning FailedCreatePodSandBox pod/hook-image-awaiter-m2pgc Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750" network for pod "hook-image-awaiter-m2pgc": networkPlugin cni failed to set up pod "hook-image-awaiter-m2pgc_jhub" network: unable to allocate IP address: Post "http://127.0.0.1:6784/ip/08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750": dial tcp 127.0.0.1:6784: connect: connection refused, failed to clean up sandbox container "08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750" network for pod "hook-image-awaiter-m2pgc": networkPlugin cni failed to teardown pod "hook-image-awaiter-m2pgc_jhub" network: Delete "http://127.0.0.1:6784/ip/08e8b9698c9464a367602df79abd5995aed67f704300bc3082fed2d4849dd750": dial tcp 127.0.0.1:6784: connect: connection refused] 3m52s Warning FailedKillPod pod/hook-image-awaiter-gdgd7 error killing pod: failed to "KillPodSandbox" for "3f74aa20-9fbb-4050-8970-0fe204575859" with KillPodSandboxError: "rpc error: code = Unknown desc = networkPlugin cni failed to teardown pod "hook-image-awaiter-gdgd7_jhub" network: Delete "http://127.0.0.1:6784/ip/cbe73be6bfd0b53fafddd0a20d7e42263edbac5c82dab0b5a6d13fa1b2867891": dial tcp 127.0.0.1:6784: connect: connection refused"
Is there someting missing in my config?
Not obvious that such information should be provided for security reasons. Also not sure how to expose it in a sensible way. Hmmm...
I actually decided to use Kubernetes Python sdk to create a way to automatically create documentation for deployed Jupyterhubs. I have most of the fields that I need except for the Container Image that the singleuser notebook is using. I can get that from the singleuser pod when is running (jupyter-<user>) but there may be moments where no such pod is running. Is there any other place in Kubernetes where that info is kept?
Hi there,
I am using jupyterhub/ltiauthenticator to authenticate Jupyter sessions inside docker containers from a MOOC platform, which seems to work without any issues.
Currently, I would like to use LTI to communicate back a "score" from Jupyter (e.g. a number resulting from the execution of a cell) that would enter the platform grading system.
Does anyone have hints in the direction of achieving this sort of functionality (perhaps as a jupyter service in the config file) or a script that can be used to do so?
Your help is highly appreciated! Thanks :)
Hello,
We've installed Jupyter under Ubuntu 20.04 LTS and are encountering an odd error when attempting to add a new code snippet
Uncaught (in promise) TypeError: this.codeSnippetList is not iterable
at hn.duplicateNameExists (CodeSnippetService.js:113:36)
at Qn.updateSnippet (CodeSnippetEditor.js:264:53)
at Qn.saveChange (CodeSnippetEditor.js:244:18)
at Object.qe (react-dom.production.min.js:52:317)
at Je (react-dom.production.min.js:52:471)
at en (react-dom.production.min.js:53:35)
at Yr (react-dom.production.min.js:100:68)
at Xr (react-dom.production.min.js:101:380)
at react-dom.production.min.js:113:65
at Ae (react-dom.production.min.js:292:189)
We've done as much debugging as we're able at the moment and would like to know if anyone has encountered (and solved) what this error might indicate.