Closed thiagoacarvalho closed 2 weeks ago
I'm sorry you are running into this issue, and thank you for filing this issue. Please can you confirm that reverting the extension to the older version works? You've mentioned two versions hence the question.
Also is the token part of the Url, Or do you first enter the Jupyter Hub Url, then the user name and then the token? & What quick pick are you using to connect to Jupyter Hub Please can you share some screenshots of each step (feel free to scrub off the Url),
Aslo edited your message to remove the duplicate, I guess you didn't mean to duplicate it, then again perhaps you were frustrated with the issue, again I do apologize for that.
Hi, I can confirm I have difficulties when connecting to JupyterHub Server after update. Token is not part of the url (url: https://max-jhub.desy.de/user/, then username, then token). I tried generating new tokens, reinstalling everything and then I found out that installing the previous version (v2023.10.1003012305
) solves the issue. Jupyter: Show Output gave me the following lines, then it stops saying Connecting to Python 3 (ipykernel)...
in the interactive window.
18:32:37.211 [info] Starting Kernel () for '/Interactive-1.interactive' (disableUI=false)
18:32:37.303 [error] Exception while handling messages: TypeError: First argument to DataView constructor must be an ArrayBuffer
18:32:37.378 [error] Exception while handling messages: TypeError: First argument to DataView constructor must be an ArrayBuffer
18:32:37.378 [error] Exception while handling messages: TypeError: First argument to DataView constructor must be an ArrayBuffer
18:32:37.676 [info] Started session for kernel connectToLiveRemoteKernel:<some uuid>
18:32:37.682 [info] Kernel successfully started
18:32:37.721 [error] Exception while handling messages: TypeError: First argument to DataView constructor must be an ArrayBuffer (repeated 30x)
Moved my original comment here to https://github.com/microsoft/vscode-jupyter-hub/issues/67 as that issue was more specific. Most likely this issue is a duplicate of that one.
similar issue i see this output. i am using http://my-jupyterhub-domain.com but it seems to be fetching kernels from localhost?
12:53:59.933 [info] http://my-jupyterhub-domain.com/user/user/: Kernel started: 5e422845-47ec-4163-82b1-0579e638d4e9
12:54:00.324 [info] Started session for kernel startUsingRemoteKernelSpec:bb0b41e85d54c0b73ade4045261c0c9eeb168a535000d4b1c37ae3cdcadf8899..python3./python./.-m#ipykernel_launcher
12:54:00.944 [info] Kernel successfully started
12:54:00.952 [error] Error fetching kernels from http://localhost:8080/user/user/ (JupyterHub): FetchError: request to http://localhost:8080/user/user/api/kernels?1725771240946 failed, reason:
at ClientRequest.<anonymous> (/Users/~/.vscode/extensions/ms-toolsai.jupyter-hub-2024.5.1002432242/dist/extension.node.js:64208:18)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.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)
We are also encountering this issue. I have tried both entering in the URL with the token in the query params, as well as using the username + token prompts, and creating new tokens for good measure - no luck with anything except reverting to the old version. I did notice that in our JupyterHub server, the kernels do get created and I can see log messages in VSCode like this:
10:00:49.205 [info] Starting Kernel (my-kernel-name) for 'Untitled-1.ipynb' (disableUI=false)
10:00:50.229 [info] https://OUR.DOMAIN.URL/user/~/: Kernel started: c9ce5b90-7047-409c-b774-99f952aed3c7
10:00:58.251 [info] Started session for kernel startUsingRemoteKernelSpec:3ad1433f2b9495db89607e6b2adb8bca76cadd9432a5805eedb4d7b6b7366367..my-kernel-name./path/to/python./.-m#ipykernel_launcher
10:00:58.419 [info] Kernel successfully started
From the errors it seems like the maybe the user name isn't getting inserted correctly? It seems like I might expect the url in the error below to instead be something like https://OUR.DOMAIN.URL/user/USER.NAME/
09:59:17.094 [warn] Password for https://OUR.DOMAIN.URL/user/~/ was invalid.
09:59:17.523 [error] Error fetching kernels from https://OUR.DOMAIN.URL/user/~ (OUR.DOMAIN.URL): r [Error]: Forbidden
at Function.create (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-x64/dist/node_modules/@jupyterlab/services.js:11:1006)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.Rl [as listRunning] (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-x64/dist/node_modules/@jupyterlab/services.js:11:4507)
at n.getRunningKernels (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-x64/dist/extension.node.js:181:18228)
at async Promise.all (index 0)
at LD.listKernelsFromConnection (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-x64/dist/extension.node.js:282:19672)
at /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-x64/dist/extension.node.js:282:17925 {
response: p [Response] {
size: 0,
timeout: 0,
[Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[Symbol(Response internals)]: {
url: 'https://OUR.DOMAIN.URL/user/~/api/kernels?1725901157097',
status: 403,
statusText: 'Forbidden',
headers: [p [Headers]],
counter: 0
}
},
traceback: ''
}
Other version info:
Visual Studio Code (1.93.0, undefined, desktop)
Jupyter Extension Version: 2024.8.0.
Python Extension Version: 2024.14.0.
Pylance Extension Version: 2024.8.2.
Platform: darwin (x64).
I hope this helps, this is a very helpful extension!
@inverts @zeckem19 Please could you
Install from VSIX
debug
logging in Jupyter Hub (open user settings and change as bellow)
JupyterHub
output panel.Closing this issue as it’s been almost a month since the info was requested Please feel free to comment here and I’ll reopen this issue, or feel free to create a new one
Type: Bug
After the upgrade to version v2024.5.1002432242, people from my institution could no longer connect to the remote JupterHub via url with token generated in the Hub
Extension version: 2023.10.1003012305 VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.19045 Modes:
System Info
|Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz (8 x 1498)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.40GB (1.07GB free)| |Process Argv|--crash-reporter-id d3d9fd43-6fe2-4be3-bfdf-6b426ab2fde4| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31104043 refactort:31108082 pythonrstrctxt:31112756 flightc:31119335 wkspc-onlycs-c:31111717 wkspc-ranged-t:31125599 fje88620:31121564 aajjf12562cf:31125794 ```