NORTH jupyter does not launch
On the staging deployment, we can run most NORTH tools successfully, but not the jupyter/datascience-notebook based jupyter tool. The container launches, but then quickly stops. These are the container (not the hub) logs:
WARNING: using start-singleuser.sh instead of start-notebook.sh to start a server associated with JupyterHub. Entered start.sh with args: jupyterhub-singleuser --ip=0.0.0.0 Executing the command: jupyterhub-singleuser --ip=0.0.0.0 [I 2023-05-03 11:59:11.822 ServerApp] Package jupyterhub took 0.0000s to import
[I 2023-05-03 11:59:11.827 ServerApp] Package jupyter_server_fileid took 0.0027s to import
[I 2023-05-03 11:59:11.828 ServerApp] Package jupyter_server_mathjax took 0.0013s to import
[I 2023-05-03 11:59:11.835 ServerApp] Package jupyter_server_terminals took 0.0057s to import
[I 2023-05-03 11:59:11.896 ServerApp] Package jupyter_server_ydoc took 0.0610s to import
[I 2023-05-03 11:59:11.990 ServerApp] Package jupyterlab took 0.0935s to import
[I 2023-05-03 11:59:12.784 ServerApp] Package jupyterlab_git took 0.0451s to import
[I 2023-05-03 11:59:12.784 ServerApp] Package nbclassic took 0.0000s to import [W 2023-05-03 11:59:12.787 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. [I 2023-05-03 11:59:12.788 ServerApp] Package nbdime took 0.0000s to import [I 2023-05-03 11:59:12.788 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-05-03 11:59:12.788 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-05-03 11:59:12.794 ServerApp] jupyter_server_fileid | extension was successfully linked.
[I 2023-05-03 11:59:12.798 ServerApp] jupyter_server_mathjax | extension was successfully linked.
[I 2023-05-03 11:59:12.803 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-05-03 11:59:12.807 ServerApp] jupyter_server_ydoc | extension was successfully linked.
[I 2023-05-03 11:59:12.808 JupyterHubSingleUser] Starting jupyterhub single-user server extension version 4.0.0
[E 2023-05-03 11:59:12.808 JupyterHubSingleUser] Failed to load JupyterHubSingleUser server extension
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/jupyterhub/singleuser/extension.py", line 274, in wrapped
r = f(self, *args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/jupyterhub/singleuser/extension.py", line 472, in load_config_file
raise KeyError("Missing required environment $JUPYTERHUB_SERVICE_URL")
KeyError: 'Missing required environment $JUPYTERHUB_SERVICE_URL'
Possible causes:
- The hub log looks normal. I assume this is caused by the jupyter/datascience-notebook. The image has been updated on dockerhub recently and we always pull the latest version.
- For some reason the hub stopped passing the $JUPYTERHUB_SERVICE_URL env var when launching the container.