Skip to content
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

Failed to fetch kernels from JupyterHub Server. Reason : unable to verify the first certificate #16446

Open
vasanthkashyap opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@vasanthkashyap
Copy link

Environment data

VS Code version: 1.95.3, f1a4fb101478ce6ec82fe9627c43efbf9e98c813 , x64
Jupyter Extension version (available under the Extensions sidebar): v2024.11.2024102401 (pre-release)
Python Extension version (available under the Extensions sidebar): v2025.0.0
OS (Windows | Mac | Linux distro) and version: Ubuntu 24.04.1 LTS
Python and/or Anaconda version: 3.6.8
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Remote
Allow Unauthorized Remote Connection in Jupyter is enabled. Http: Proxy Strict SSL enabled. Http: Proxy Support : off. Http: System Certificates enabled.

Expected behaviour

Connect to remote jupyter server and select kernel from list

Actual behaviour

Cannot select kernel and cannot run cell with remote jupyter server.

Steps to reproduce:

Image

Open a jupyter notebook
Select another kernel
Select Existing JupyterHub Server...
Provide JupyterHub Server URL, enter Username and Password
Select a running server. In my case it is "yt_kh"

I should be able to see a list of kernels available in "yt_kh", but I dont.
I am able to use "yt_kh" using JupyterHub on my web browser. I can select the kernel and run my notebooks with no issues.

Logs

17:06:31.037 [error] Error fetching kernels from https://jupyter.sns.it/user/~/yt_kh/ (JupyterHub (yt_kh)): FetchError: request to https://jupyter.sns.it/user/~/yt_kh/api/kernels?1739549190867 failed, reason: unable to verify the first certificate
at ClientRequest. (/home//.vscode-server/extensions/ms-toolsai.jupyter-hub-2024.10.1002831100/dist/extension.node.js:64208:18)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
17:06:31.043 [error] Jupyter Lab Helper:getKernelSpecs failure: Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at i.dispose (/home/
/.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:35855)
at Kr.dispose (/home//.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:75419)
at /home/
/.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/extension.node.js:181:17985
at processTicksAndRejections (node:internal/process/task_queues:95:5)
17:06:31.218 [error] Error fetching kernels from https://jupyter.sns.it/user/~/yt_kh/ (JupyterHub (yt_kh)): FetchError: request to https://jupyter.sns.it/user/~/yt_kh/api/kernels?1739549191045 failed, reason: unable to verify the first certificate
at ClientRequest. (/home//.vscode-server/extensions/ms-toolsai.jupyter-hub-2024.10.1002831100/dist/extension.node.js:64208:18)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
17:06:31.259 [error] Jupyter Lab Helper:getKernelSpecs failure: Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at i.dispose (/home/
/.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:35855)
at Kr.dispose (/home//.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:75419)
at /home/
/.vscode-server/extensions/ms-toolsai.jupyter-2024.11.2024102401-linux-x64/dist/extension.node.js:181:17985
at processTicksAndRejections (node:internal/process/task_queues:95:5)
17:06:31.260 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache FetchError: request to https://jupyter.sns.it/user/~/yt_kh/api/kernels?1739549191045 failed, reason: unable to verify the first certificate
at ClientRequest. (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-hub-2024.10.1002831100/dist/extension.node.js:64208:18)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

@vasanthkashyap vasanthkashyap added the bug Issue identified by VS Code Team member as probable bug label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants