Robert,
I've changed URLs to hostnames in Browser, CA and Jupyter configs, and verified name resolution. Also, i added the rewrite/forward rule in CA apache for the jupyter folder
- That fixed the CORS error
Yet, the rootless netns error persists. Along with that, the spawned notebook container usually crashes immediately into a semi-determined state. This in turn causes the podman-ca-jupyter container to refuse to use it.
I managed to open a new notebook in CA by the following procedure:
- stop and start the spawned notebook container (so its in the 'started' state)
- stop and start the ca_jupyter_hub container (so it does not remember the fault it ran into with the spawned notebook container last time round)
With this the startup log looks something like this:
[I 2023-07-25 10:58:47.662 JupyterHub dockerspawner:545] Found existing container 'ca_jupyter-xOjpBbm9ueW1vdXM_5F_2E7cee7c7773001cbda93bdd5373423248' (id: ac56b30)
[I 2023-07-25 10:58:47.662 JupyterHub dockerspawner:557] Starting container 'ca_jupyter-xOjpBbm9ueW1vdXM_5F_2E7cee7c7773001cbda93bdd5373423248' (id: ac56b30)
[W 2023-07-25 10:58:47.678 JupyterHub user:457] xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248's server specified its own API token that's not in the database
[I 2023-07-25 10:58:47.707 JupyterHub base:763] User xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248 took 0.119 seconds to start
[I 2023-07-25 10:58:47.707 JupyterHub proxy:242] Adding user xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248 to proxy /bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248/ => http://10.89.0.11:8888
10:58:47.708 - info: [ConfigProxy] Adding route /bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248 -> http://10.89.0.11:8888
10:58:47.708 - info: [ConfigProxy] 201 POST /api/routes/bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248
The spawned container starts like this:
[I 2023-07-25 10:44:32.366 SingleUserNotebookApp singleuser:406] Starting jupyterhub-singleuser server version 0.9.4
[I 2023-07-25 10:44:32.370 SingleUserNotebookApp notebookapp:2303] Serving contents
[I 2023-07-25 10:44:32.370 SingleUserNotebookApp notebookapp:2303] Jupyter Notebook 6.4.10 is running at:
[I 2023-07-25 10:44:32.370 SingleUserNotebookApp notebookapp:2303] http://ac56b30d4e50:8888/bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248/
[I 2023-07-25 10:44:32.370 SingleUserNotebookApp notebookapp:2304] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2023-07-25 10:58:47.706 SingleUserNotebookApp log:158] 302 GET /bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248/ -> /bi/v1/jupyter/user/xOjpBbm9ueW1vdXM_.7cee7c7773001cbda93bdd5373423248/caNotebookInfo? (@10.89.0.12) 1.02ms
and then serves request as should, including change of kernel from python to R and opening a different notebook in CA
The environment in the notebook includes e.g.
JUPYTERHUB_API_URL=http://ca_jupyter_hub:8080/bi/v1/jupyter/hub/api
NB_WSHOST=ws://ams4apw01ls.test.xyz:8000
So normal operation still not possible. Any other suggestios to follow ?
------------------------------
Thomas Strehl
------------------------------
Original Message:
Sent: Thu July 20, 2023 10:53 AM
From: Robert Hofstetter
Subject: CA and Jupyter Notebook Server 11.2.4: "Internal Server Error"
Thomas,
It's been a while since I've looked at the Jupyter Notebook installation but the most common issue that I encountered when I did was that the container cannot resolve host names. It seems containers don't inherit hosts files so make sure you can resolve host names like the Cognos servers without needing to update hosts files to do that.
------------------------------
Robert Hofstetter
------------------------------