-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel Status: Unknown in Jupyterhub 3.2.1 while connecting remote kernel vai Jupyter Enterprise Gateway 3.2.1 on K8s 1.25 AWS EKS #1360
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
i am getting KERNEL_NAME is empty in newly created remote kernel pod while launching ipython kernel in jupyterhub vai JEG. is this error because of this empty KERNEL_NAME ? in JEG pod i can see
|
looks like empty string passing to json.decoder() function as per error, am i missing passing any extraEnv in jupyterhub yaml ?
|
Description
kernel Status: Unknown in Jupyterhub 3.2.1 while connecting remote kernel vai Jupyter Enterprise Gateway 3.2.1
Reproduce
Expected behavior
It should execute jupyter notebook to respected kernel and execute commands in notebook cell
Context
extraEnv: @ ./jupyterhub/values.yml
extraEnv: { @ ./enterprise-gateway/values.yml
}
forum link
for the same - https://discourse.jupyter.org/t/failed-to-connect-jupyter-enterprise-gateway-from-jupyterhub/23319
List of all available remote kernel vai JEG
Python kernel status unknown
@ JEG remote python kernel pods logs from gateway-enterprises namespace.
/usr/local/bin/bootstrap-kernel.sh env: SHELL=/bin/bash KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_SERVICE_PORT=443 ENTERPRISE_GATEWAY_PORT_8877_TCP=tcp://172.20.93.178:8877 KERNEL_NAME=python_kubernetes ENTERPRISE_GATEWAY_SERVICE_PORT_HTTP=8888 EG_IMPERSONATION_ENABLED=False HOSTNAME=jovyan-95aae2ac-27c3-4912-a326-cedfbc52d302 LANGUAGE=en_US.UTF-8 KERNEL_SPARK_CONTEXT_INIT_MODE=none KERNEL_ID=95aae2ac-27c3-4912-a326-cedfbc52d302 NB_UID=1000 ENTERPRISE_GATEWAY_SERVICE_HOST=172.20.93.178 KERNEL_UID=1000 KERNEL_IMAGE=elyra/kernel-py:3.2.1 KERNEL_LAUNCH_TIMEOUT=1198 PWD=/home/jovyan ENTERPRISE_GATEWAY_PORT_8877_TCP_PROTO=tcp RESPONSE_ADDRESS=10.1.21.239:8877 ENTERPRISE_GATEWAY_SERVICE_PORT_HTTP_RESPONSE=8877 KERNEL_SERVICE_ACCOUNT_NAME=enterprise-gateway-sa ENTERPRISE_GATEWAY_PORT_8888_TCP_PORT=8888 ENTERPRISE_GATEWAY_PORT_8888_TCP_ADDR=172.20.93.178 HOME=/home/jovyan LANG=en_US.UTF-8 KUBERNETES_PORT_443_TCP=tcp://172.20.0.1:443 ENTERPRISE_GATEWAY_PORT_8877_TCP_PORT=8877 NB_GID=100 ENTERPRISE_GATEWAY_PORT_8888_TCP=tcp://172.20.93.178:8888 EG_MIN_PORT_RANGE_SIZE=1000 XDG_CACHE_HOME=/home/jovyan/.cache/ JPY_PARENT_PID=7 ENTERPRISE_GATEWAY_PORT_8877_TCP_ADDR=172.20.93.178 KERNEL_POD_NAME=jovyan-95aae2ac-27c3-4912-a326-cedfbc52d302 SHLVL=0 CONDA_DIR=/opt/conda KERNEL_GATEWAY=1 ENTERPRISE_GATEWAY_SERVICE_PORT=8888 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_PORT_443_TCP_ADDR=172.20.0.1 PORT_RANGE=0..0 KERNEL_USERNAME=jovyan LC_CTYPE=C.UTF-8 ENTERPRISE_GATEWAY_PORT=tcp://172.20.93.178:8888 KERNEL_LANGUAGE=python NB_USER=jovyan KUBERNETES_SERVICE_HOST=172.20.0.1 ENTERPRISE_GATEWAY_PORT_8888_TCP_PROTO=tcp LC_ALL=en_US.UTF-8 KUBERNETES_PORT=tcp://172.20.0.1:443 KUBERNETES_PORT_443_TCP_PORT=443 PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin KERNEL_EXECUTOR_IMAGE=elyra/kernel-py:3.2.1 KERNEL_GID=100 PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpiPIxwaSykdaPMrJ7VB2QWFGOqNJfXWrsEFkJbSTDHibHK67xo9fGeH50dlyHChgbQpR9Ry+Qjj70itw67G8pHVnYXKK9OEvMcxyChu4bATYz2Hh4 ky1y0x+nx9+ec9DqV5M45WD5cJJExACfieI0SMvNCJiJ8fTDmfzsQKEKWwIDAQAB DEBIAN_FRONTEND=noninteractive EG_MAX_PORT_RANGE_RETRIES=5 KERNEL_NAMESPACE=enterprise-gateway _=/usr/bin/env 2024-01-16T07:27:59.172889718Z + python /usr/local/bin/kernel-launchers/python/scripts/launch_ipykernel.py --kernel-id 95aae2ac-27c3-4912-a326-cedfbc52d302 --port-range 0..0 --response-address 10.1.21.239:8877 --public-key MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpiPIxwaSykdaPMrJ7VB2QWFGOqNJfXWrsEFkJbSTDHibHK67xo9fGeH50dlyHChgbQpR9Ry+Qjj70itw67G8pHVnYXKK9OEvMcxyChu4bATYz2Hh4ky1y0x+nx9+ec9DqV5M45WD5cJJExACfieI0SMvNCJiJ8fTDmfzsQKEKWwIDAQAB --spark-context-initialization-mode none 2024-01-16T07:27:59.457362107Z [D 2024-01-16 07:27:59,457.457 launch_ipykernel] Using connection file '/tmp/kernel-95aae2ac-27c3-4912-a326-cedfbc52d302_p8654iyt.json'. [I 2024-01-16 07:27:59,457.457 launch_ipykernel] Signal socket bound to host: 0.0.0.0, port: 49879 2024-01-16T07:27:59.458635522Z [D 2024-01-16 07:27:59,458.458 launch_ipykernel] JSON Payload 'b'{"shell_port": 48549, "iopub_port": 46659, "stdin_port": 41937, "control_port": 48795, "hb_port": 34137, "ip": "0.0.0.0", "key": "dd63bcf1-d717-45c8-a6d8-a863cc49b70d", "transport": "tcp", "signature_scheme": "hmac-sha256",
"kernel_name": "", "pid": 9, "pgid": 7, "comm_port": 49879, "kernel_id": "95aae2ac-27c3-4912-a326-cedfbc52d302"}' 2024-01-16T07:27:59.471050920Z [D 2024-01-16 07:27:59,470.470 launch_ipykernel] Encrypted Payload
@ Jupyter Jovyan pod logs from jupyterhub namespaces
[I 2024-01-16 09:21:37.501 ServerApp] 200 GET /user/jovyan/api/terminals?1705396900391 ([email protected]) 1.18ms 2024-01-16T09:21:37.503435541Z [I 2024-01-16 09:21:37.503 ServerApp] 200 GET /user/jovyan/api/sessions?1705396900393 ([email protected]) 0.99ms 2024-01-16T09:21:37.517833196Z [I 2024-01-16 09:21:37.517 ServerApp] 200 GET /user/jovyan/api/kernels?1705396900394 ([email protected]) 15.01ms 2024-01-16T09:21:39.236754736Z [I 2024-01-16 09:21:39.236 ServerApp] 200 GET /user/jovyan/api/contents?content=1&1705396902121 ([email protected]) 4.88ms 2024-01-16T09:21:47.908831994Z [I 2024-01-16 09:21:47.908 ServerApp] 200 GET /user/jovyan/api/terminals?1705396910794 ([email protected]) 0.91ms 2024-01-16T09:21:47.910021815Z [I 2024-01-16 09:21:47.909 ServerApp] 200 GET /user/jovyan/api/sessions?1705396910795 ([email protected]) 0.86ms 2024-01-16T09:21:47.931271425Z [I 2024-01-16 09:21:47.931 ServerApp] 200 GET /user/jovyan/api/kernels?1705396910796 ([email protected]) 21.00ms 2024-01-16T09:21:49.908197695Z [I 2024-01-16 09:21:49.908 ServerApp] 200 GET /user/jovyan/api/contents?content=1&1705396912802 ([email protected]) 4.60ms 2024-01-16T09:22:08.893515385Z [I 2024-01-16 09:22:08.893 ServerApp] 200 GET /user/jovyan/api/me?1705396931794 ([email protected]) 0.92ms 2024-01-16T09:22:08.914157365Z [I 2024-01-16 09:22:08.914 ServerApp] 200 GET /user/jovyan/api/kernelspecs?1705396931796 ([email protected]) 20.28ms 2024-01-16T09:23:12.475285982Z [I 2024-01-16 09:23:12.475 ServerApp] 101 GET /user/jovyan/api/events/subscribe?token=[secret] ([email protected]) 0.92ms
@ JEG logs from enterprise-gateway namespaces
[D 2024-01-16 09:52:30.293 EnterpriseGatewayApp] Opening websocket /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels 2024-01-16T09:52:30.293618430Z [D 2024-01-16 09:52:30.293 EnterpriseGatewayApp] Getting buffer for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.293653830Z [D 2024-01-16 09:52:30.293 EnterpriseGatewayApp] Clearing buffer for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.294071185Z [D 2024-01-16 09:52:30.293 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:37401 2024-01-16T09:52:30.294372849Z [D 2024-01-16 09:52:30.294 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45771 2024-01-16T09:52:30.294604143Z [D 2024-01-16 09:52:30.294 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45683 2024-01-16T09:52:30.294807040Z [D 2024-01-16 09:52:30.294 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:55985 2024-01-16T09:52:30.295022219Z [D 2024-01-16 09:52:30.294 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45771 2024-01-16T09:52:30.295227226Z [D 2024-01-16 09:52:30.295 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45683 2024-01-16T09:52:30.306247559Z [D 2024-01-16 09:52:30.306 EnterpriseGatewayApp] Nudge: attempt 1 on kernel 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.317213473Z [D 2024-01-16 09:52:30.317 EnterpriseGatewayApp] Nudge: shell info reply received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.317245619Z [D 2024-01-16 09:52:30.317 EnterpriseGatewayApp] Nudge: resolving shell future: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.317409505Z [D 2024-01-16 09:52:30.317 EnterpriseGatewayApp] Nudge: control info reply received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.317546189Z [D 2024-01-16 09:52:30.317 EnterpriseGatewayApp] Nudge: IOPub received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.317632103Z [D 2024-01-16 09:52:30.317 EnterpriseGatewayApp] Nudge: resolving iopub future: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.318313 [D 2024-01-16 09:52:30.318 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (busy) 2024-01-16T09:52:30.318947681Z [D 2024-01-16 09:52:30.318 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (busy) 2024-01-16T09:52:30.324847036Z [D 2024-01-16 09:52:30.324 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (idle) 2024-01-16T09:52:30.330626121Z [D 2024-01-16 09:52:30.330 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (idle) **
2024-01-16T09:52:30.571523499Z [E 240116 09:52:30 web:1789] Uncaught exception GET /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels (10.1.51.152)
2024-01-16T09:52:30.571554861Z HTTPServerRequest(protocol='http', host='enterprise-gateway.enterprise-gateway.svc.cluster.local:8888', method='GET', uri='/api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels', version='HTTP/1.1', remote_ip='10.1.51.152')
2024-01-16T09:52:30.571560130Z Traceback (most recent call last):
2024-01-16T09:52:30.571563161Z File "/opt/conda/lib/python3.9/site-packages/tornado/websocket.py", line 647, in _run_callback
result = callback(*args, **kwargs)
2024-01-16T09:52:30.571568814Z File "/opt/conda/lib/python3.9/site-packages/jupyter_server/services/kernels/handlers.py", line 460, in on_message
2024-01-16T09:52:30.571572117Z msg = json.loads(msg)
2024-01-16T09:52:30.571574855Z File "/opt/conda/lib/python3.9/json/init.py", line 346, in loads
2024-01-16T09:52:30.571577748Z return _default_decoder.decode(s)
2024-01-16T09:52:30.571580142Z File "/opt/conda/lib/python3.9/json/decoder.py", line 337, in decode
2024-01-16T09:52:30.571582805Z obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2024-01-16T09:52:30.571585281Z File "/opt/conda/lib/python3.9/json/decoder.py", line 355, in raw_decode
2024-01-16T09:52:30.571587687Z raise JSONDecodeError("Expecting value", s, err.value) from None
2024-01-16T09:52:30.571596687Z json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
** 2024-01-16T09:52:30.571676704Z [D 2024-01-16 09:52:30.571 EnterpriseGatewayApp] Websocket closed 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795:c00d7be5-5fc242679e133c40cab24c39 2024-01-16T09:52:30.571791424Z [I 2024-01-16 09:52:30.571 EnterpriseGatewayApp] Starting buffering for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795:c00d7be5-5fc242679e133c40cab24c39 2024-01-16T09:52:30.571868813Z [D 2024-01-16 09:52:30.571 EnterpriseGatewayApp] Clearing buffer for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.940577349Z [D 2024-01-16 09:52:30.940 EnterpriseGatewayApp] Initializing websocket connection /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels 2024-01-16T09:52:30.946350673Z [W 2024-01-16 09:52:30.946 EnterpriseGatewayApp] No session ID specified 2024-01-16T09:52:30.952057725Z [I 240116 09:52:30 web:2239] 101 GET /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels (10.1.51.152) 11.71ms 2024-01-16T09:52:30.952185076Z [D 2024-01-16 09:52:30.952 EnterpriseGatewayApp] Opening websocket /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels 2024 -01-16T09:52:30.952311797Z [D 2024-01-16 09:52:30.952 EnterpriseGatewayApp] Getting buffer for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.952392150Z [D 2024-01-16 09:52:30.952 EnterpriseGatewayApp] Clearing buffer for 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.952791054Z [D 2024-01-16 09:52:30.952 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:37401 2024-01-16T09:52:30.953085292Z [D 2024-01-16 09:52:30.952 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45771 2024-01-16T09:52:30.953349048Z [D 2024-01-16 09:52:30.953 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45683 [D 2024-01-16 09:52:30.953 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:55985 2024-01-16T09:52:30.953859071Z [D 2024-01-16 09:52:30.953 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45771 2024-01-16T09:52:30.954128010Z [D 2024-01-16 09:52:30.954 EnterpriseGatewayApp] Connecting to: tcp://10.1.54.81:45683 2024-01-16T09:52:30.959844693Z [D 2024-01-16 09:52:30.959 EnterpriseGatewayApp] Nudge: attempt 1 on kernel 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.970785911Z [D 2024-01-16 09:52:30.970 EnterpriseGatewayApp] Nudge: shell info reply received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.970849940Z [D 2024-01-16 09:52:30.970 EnterpriseGatewayApp] Nudge: resolving shell future: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.970998832Z [D 2024-01-16 09:52:30.970 EnterpriseGatewayApp] Nudge: control info reply received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.976411879Z [D 2024-01-16 09:52:30.976 EnterpriseGatewayApp] Nudge: IOPub received: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.976490467Z [D 2024-01-16 09:52:30.976 EnterpriseGatewayApp] Nudge: resolving iopub future: 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795 2024-01-16T09:52:30.977053425Z [D 2024-01-16 09:52:30.976 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (busy) 2024-01-16T09:52:30.977632857Z [D 2024-01-16 09:52:30.977 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (busy) 2024-01-16T09:52:30.978464061Z [D 2024-01-16 09:52:30.978 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (idle) 2024-01-16T09:52:30.984265095Z [D 2024-01-16 09:52:30.984 EnterpriseGatewayApp] activity on 6c332ecc-0b9f-43ad-88b4-79f2cfa8c795: status (idle) [D 2024-01-16 09:52:31.007 EnterpriseGatewayApp] Initializing websocket connection /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels 2024-01-16T09:52:31.013301319Z [W 2024-01-16 09:52:31.012 EnterpriseGatewayApp] No session ID specified 2024-01-16T09:52:31.024109715Z [I 240116 09:52:31 web:2239] 101 GET /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels (10.1.51.152) 16.90ms 2024-01-16T09:52:31.024225776Z [D 2024-01-16 09:52:31.024 EnterpriseGatewayApp] Opening websocket /api/kernels/6c332ecc-0b9f-43ad-88b4-79f2cfa8c795/channels
The text was updated successfully, but these errors were encountered: