microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.28k stars 289 forks source link

Add support for configurable location of kernel connection json files #15817

Closed gabegrand closed 2 months ago

gabegrand commented 3 months ago

Applies To

What happened?

There is a tilde getting inserted into my paths at kernel start that is causing kernel start to fail downstream. I've googled around a lot and was unable to find how these paths are constructed, but these paths (with the tilde in the middle) are clearly wrong. Can anyone point me to the relevant config or environment variables?

Visual Studio Code (1.90.2, ssh-remote, desktop)
Jupyter Extension Version: 2024.5.0.
Python Extension Version: 2024.8.1.
Pylance Extension Version: 2024.6.1.
Platform: linux (x64).
Workspace folder /raid/lingo/grandg/projects/hfppl, Home = /afs/csail.mit.edu/u/g/grandg
11:20:50.247 [info] Starting Kernel (Python Path: /raid/lingo/~/projects/hfppl/.venv/bin/python, Poetry, 3.10.12) for '/raid/lingo/~/projects/hfppl/test.ipynb' (disableUI=true)

VS Code Version

1.90.2

Jupyter Extension Version

2024.5.0

Jupyter logs

Visual Studio Code (1.90.2, ssh-remote, desktop)
Jupyter Extension Version: 2024.5.0.
Python Extension Version: 2024.8.1.
Pylance Extension Version: 2024.6.1.
Platform: linux (x64).
Workspace folder /raid/lingo/grandg/projects/hfppl, Home = /afs/csail.mit.edu/u/g/grandg
11:30:08.697 [debug] Start refreshing Kernel Picker (1719934208696)
11:30:09.038 [debug] Get Custom Env Variables, Class name = Bm, completed in 342ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
11:30:09.038 [debug] Jupyter Paths /kernels:
11:30:09.055 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/.local/share/jupyter/kernels
11:30:09.206 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.208 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.209 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.210 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.211 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.225 [debug] KernelProvider switched kernel to id = .jvsc74a57bd08c5abe47eccf190a72f06cca09728279bba8a1648d7cd951b643359ebf2b9e03./raid/lingo/~/projects/hfppl/.venv/python./raid/lingo/~/projects/hfppl/.venv/python.-m#ipykernel_launcher
11:30:09.225 [debug] start the kernel, options.disableUI=true for /raid/lingo/~/projects/hfppl/test.ipynb
11:30:09.228 [debug] Controller selection change completed
11:30:09.236 [debug] Get Custom Env Variables, Class name = Bm, completed in 0ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl", Arg 2: "RunPythonCode"
11:30:09.236 [info] Starting Kernel (Python Path: /raid/lingo/~/projects/hfppl/.venv/bin/python, Poetry, 3.10.12) for '/raid/lingo/~/projects/hfppl/test.ipynb' (disableUI=true)
11:30:09.249 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.276 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.278 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.281 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.283 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.336 [debug] Get Custom Env Variables, Class name = Bm, completed in 0ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl/test.ipynb", Arg 2: "RunPythonCode"
11:30:09.363 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209274 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.363 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209277 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.364 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209280 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.365 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209282 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.365 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209284 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.367 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.368 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.369 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.371 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.372 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.432 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.433 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.434 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.435 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.435 [debug] Error in detecting whether url is isJupyterHub: FetchError: request to http://localhost:8888/hub/api failed, reason:
11:30:09.467 [debug] Dispose Kernel process undefined.
11:30:09.467 [error] Failed to connect raw kernel session: Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-2179197SAMsN2vX7xrw.json'
11:30:09.468 [error] Failed to connect raw kernel session: Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-2179197SAMsN2vX7xrw.json'
11:30:09.468 [warn] Failed to shutdown kernel, .jvsc74a57bd08c5abe47eccf190a72f06cca09728279bba8a1648d7cd951b643359ebf2b9e03./raid/lingo/~/projects/hfppl/.venv/python./raid/lingo/~/projects/hfppl/.venv/python.-m#ipykernel_launcher [TypeError: Cannot read properties of undefined (reading 'dispose')
    at DT.shutdown (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:13629)
    at async _T.shutdown (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:22107)]
11:30:09.469 [warn] Error occurred while trying to start the kernel, options.disableUI=true [r [Error]:
    at new r (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:108:4480)
    at r.from (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:110:56)
    at z_.createJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:36938)
    at async z_.startJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:34001)
    at async r.wrapKernelMethodImpl (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:82121)

Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-2179197SAMsN2vX7xrw.json'] {
  category: 'unknown',
  isJupyterError: true,
  originalException: [Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-2179197SAMsN2vX7xrw.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-2179197SAMsN2vX7xrw.json'
  }
}
11:30:09.474 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.476 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.478 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.480 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.482 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/ failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
11:30:09.494 [debug] Disposed Kernel process undefined.
11:30:09.517 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209475 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.517 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209477 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.518 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209479 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.519 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209481 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.519 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1719934209483 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.520 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.520 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1719934209475 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.521 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.521 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1719934209477 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.522 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.522 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1719934209479 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.522 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.522 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1719934209481 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.523 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at /raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:191:15205
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
11:30:09.523 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1719934209483 failed, reason:
    at ClientRequest.<anonymous> (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/node_modules/node-fetch.js:1:306417)
    at ClientRequest.emit (node:events:518:28)
    at Socket.socketErrorListener (node:_http_client:495:9)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
11:30:09.527 [debug] Got env vars from Python Ext in 191ms for /raid/lingo/~/projects/hfppl/.venv/bin/python, with env var count 57.
11:30:09.527 [debug] Getting activated env variables, Class name = Pp, completed in 191ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl/test.ipynb", Arg 2: "/raid/lingo/~/projects/hfppl/.venv/bin/python", Arg 3: undefined
11:30:09.531 [info] Process Execution: /raid/lingo/~/projects/hfppl/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
11:30:09.533 [debug] Got env vars from Python Ext in 297ms for /raid/lingo/~/projects/hfppl/.venv/bin/python, with env var count 57.
11:30:09.533 [debug] Getting activated env variables, Class name = Pp, completed in 298ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl", Arg 2: "/raid/lingo/~/projects/hfppl/.venv/bin/python", Arg 3: undefined
11:30:09.536 [info] Process Execution: /raid/lingo/~/projects/hfppl/.venv/bin/python -m pip list
11:30:09.543 [debug] End refreshing Kernel Picker (1719934208696)
11:30:10.359 [debug] Interpreter for Pylance for Notebook URI "/raid/lingo/~/projects/hfppl/test.ipynb" is /raid/lingo/~/projects/hfppl/.venv/bin/python
11:30:14.112 [debug] Start refreshing Interpreter Kernel Picker
11:30:14.113 [debug] Start refreshing Kernel Picker (1719934214113)
11:30:14.199 [debug] Refreshed Environments
11:30:15.199 [debug] End refreshing Kernel Picker (1719934214113)
11:30:30.204 [debug] Handle Execution of Cells 0 for /raid/lingo/~/projects/hfppl/test.ipynb
11:30:30.207 [debug] start the kernel, options.disableUI=false for /raid/lingo/~/projects/hfppl/test.ipynb
11:30:30.208 [info] Starting Kernel (Python Path: /raid/lingo/~/projects/hfppl/.venv/bin/python, Poetry, 3.10.12) for '/raid/lingo/~/projects/hfppl/test.ipynb' (disableUI=false)
11:30:30.215 [debug] Get Custom Env Variables, Class name = Bm, completed in 1ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl/test.ipynb", Arg 2: "RunPythonCode"
11:30:30.216 [debug] Got env vars from Python Ext in 2ms for /raid/lingo/~/projects/hfppl/.venv/bin/python, with env var count 57.
11:30:30.216 [debug] Getting activated env variables, Class name = Pp, completed in 2ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl/test.ipynb", Arg 2: "/raid/lingo/~/projects/hfppl/.venv/bin/python", Arg 3: undefined
11:30:30.222 [info] Process Execution: /raid/lingo/~/projects/hfppl/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
11:30:30.235 [debug] Dispose Kernel process undefined.
11:30:30.236 [error] Failed to connect raw kernel session: Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
11:30:30.236 [error] Failed to connect raw kernel session: Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
11:30:30.236 [warn] Failed to shutdown kernel, .jvsc74a57bd08c5abe47eccf190a72f06cca09728279bba8a1648d7cd951b643359ebf2b9e03./raid/lingo/~/projects/hfppl/.venv/python./raid/lingo/~/projects/hfppl/.venv/python.-m#ipykernel_launcher [TypeError: Cannot read properties of undefined (reading 'dispose')
    at DT.shutdown (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:13629)
    at async _T.shutdown (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:22107)]
11:30:30.237 [warn] Error occurred while trying to start the kernel, options.disableUI=false [r [Error]:
    at new r (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:108:4480)
    at r.from (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:110:56)
    at z_.createJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:36938)
    at async z_.startJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:34001)
    at async r.wrapKernelMethodImpl (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:82121)

Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
  category: 'unknown',
  isJupyterError: true,
  originalException: [Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
  }
}
11:30:30.239 [warn] Kernel Error, context = start [r [Error]:
    at new r (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:108:4480)
    at r.from (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:110:56)
    at z_.createJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:36938)
    at async z_.startJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:34001)
    at async r.wrapKernelMethodImpl (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:82121)

Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
  category: 'unknown',
  isJupyterError: true,
  originalException: [Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
  }
}
11:30:30.240 [debug] Disposed Kernel process undefined.
11:30:30.243 [debug] Get Custom Env Variables, Class name = Bm, completed in 0ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl", Arg 2: "RunPythonCode"
11:30:30.244 [debug] Got env vars from Python Ext in 1ms for /raid/lingo/~/projects/hfppl/.venv/bin/python, with env var count 57.
11:30:30.244 [debug] Getting activated env variables, Class name = Pp, completed in 1ms, has a truthy return value, Arg 1: "/raid/lingo/~/projects/hfppl", Arg 2: "/raid/lingo/~/projects/hfppl/.venv/bin/python", Arg 3: undefined
11:30:30.249 [info] Process Execution: /raid/lingo/~/projects/hfppl/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
11:30:30.370 [debug] Checking if product is installed, Class name = ND, completed in 129ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true
11:30:30.371 [debug] Are Dependencies Installed, Class name = dd, completed in 129ms, has a truthy return value, Arg 1: ".jvsc74a57bd08c5abe47eccf190a72f06cca09728279bba8a1648d7cd951b643359ebf2b9e03./raid/lingo/~/projects/hfppl/.venv/python./raid/lingo/~/projects/hfppl/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true
11:30:30.378 [info] Dispose Kernel '/raid/lingo/~/projects/hfppl/test.ipynb' associated with '/raid/lingo/~/projects/hfppl/test.ipynb'
11:30:30.378 [debug] Kernel got disposed, hence there is no longer a kernel associated with /raid/lingo/~/projects/hfppl/test.ipynb
11:30:30.380 [error] Error in execution [r [Error]:
    at new r (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:108:4480)
    at r.from (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:110:56)
    at z_.createJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:36938)
    at async z_.startJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:34001)
    at async r.wrapKernelMethodImpl (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:82121)

Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
  category: 'unknown',
  isJupyterError: true,
  originalException: [Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
  }
}
11:30:30.382 [error] Error in execution (get message for cell) [r [Error]:
    at new r (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:108:4480)
    at r.from (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:110:56)
    at z_.createJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:36938)
    at async z_.startJupyterSession (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:295:34001)
    at async r.wrapKernelMethodImpl (/raid/lingo/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.5.0-linux-x64/dist/extension.node.js:314:82121)

Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
  category: 'unknown',
  isJupyterError: true,
  originalException: [Error: EACCES: permission denied, open '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/afs/csail.mit.edu/u/g/~/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
  }
}

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Remote

DonJayamanne commented 3 months ago

Based on the errors, you do not seem to have access to the following file /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'

Please can you verify such a directory exists and you have access to this directory /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime

There is a tilde getting inserted into my paths at kernel start that is causing kernel start to fail downstream.

I'm not seeing these tilde anywhere except in the logs, are you getting this in the error messages as well? Please can you share the error message displayed in your Jupyter notebooks or the like?

gabegrand commented 3 months ago

Hi @DonJayamanne, thanks so much for the reply!

That directory does exist and I do seem to have permissions to access it.

grandg@align-3:~$ ls -lh /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/
total 19K
-rw-rw-r-- 1 grandg grandg 307 Jun 24 17:11 kernel-v2-20380624zD5k0a6M1lI.json
-rw-rw-r-- 1 grandg grandg 307 Jun 24 17:45 kernel-v2-2038062AyeEydJit6ws.json
-rw-rw-r-- 1 grandg grandg 307 Jul  2 10:35 kernel-v2-2139956LErxGG6rjcUE.json
...

However, I will note that the AFS filesystem /afs/csail.mit.edu/ here at MIT has a peculiar custom ACL setup that could easily be the source of this issue:

“Notably, AFS ignores most unix per-file permissions:” The owner bits rwx are applied to anyone who is granted access via the ACL. For most users, this means they can be ignored, with the exception of chmod +x to make something executable. Most ownership is also ignored, with the exception that the owner of a volume (for example, the unix-style owner of /afs/csail/u/e/example) automatically has a access to every subdirectory of the volume.

For this reason, I try not to store anything on /afs/csail.mit.edu and instead use a local /raid drive. Unfortunately, /afs/csail.mit.edu/ is configured as the machine's $HOME directory, which mean I need to manually configure a whole set of Python/Jupyter-related env variables to point to /raid.

Ideally, the jupyter/runtime/ dir would live on /raid and not on AFS. I looked around extensively but wasn't able to determine which env variable to set to configure this -- do you know?

gabegrand commented 3 months ago

Just to follow up, the actual error message is below:

Failed to start the Kernel '.venv (Python 3.10.12)'. 
View Jupyter log for further details. EACCES: permission denied, open '/afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/kernel-v2-3124666VYujqxzx3G6q.json'
DonJayamanne commented 3 months ago

Thanks for the details, that definitely does help get a better idea of the issue. I have udpated the title, as it has nothing to do with tilde or the like, its jut the fact that you do not have access (as you highlighted earlier).

DonJayamanne commented 3 months ago

Please can you

ms-toolsai-jupyter-insiders.vsix.zip

gabegrand commented 2 months ago

Hi @DonJayamanne, thanks for this. I've updated my local environment to use your patch and will be testing it over the next couple days -- I'll let you know how it goes.

DonJayamanne commented 2 months ago

@gabegrand Any luck?

gabegrand commented 2 months ago

Hi Don, sorry for the slow reply. Just confirming that this PR does appear to have fixed the issue!

gabegrand commented 1 month ago

Hi @DonJayamanne, after updating my VSCode client to the latest version I'm now experiencing this issue again - do I need to re-apply this patch?

DonJayamanne commented 1 month ago

@gabegrand The fix will be in the next stable release, right not it is only available in the pre-release version.