microsoft / vscode-jupyter

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

Failed to start the Kernel - Forbidden Error #16131

Closed Johnnsy1024 closed 1 month ago

Johnnsy1024 commented 1 month ago

Environment data

Expected behaviour

Run jupyter cell successfully

Actual behaviour

Image

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. XXX

Logs

Error occurred while trying to start the kernel, options.disableUI=true Error: Forbidden > at new n (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:98:4480) > originalException = Error: Forbidden

DonJayamanne commented 1 month ago

Please could you enable logging as follows:

Johnnsy1024 commented 1 month ago

OK, I follow your suggestions and get the detailed log as follows:

Show Logs ``` 17:39:45.238 [error] Error in execution (get message for cell) [iy [Error]: at new n (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:98:4480) at new iy (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:282:27198) at tu.createNewSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:5302) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async tu.connectToOrCreateSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:4277) at async tu.create (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:1980) at async i_.createJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:35993) at async i_.startJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:34001) at async n.wrapKernelMethodImpl (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:304:82604) Error: Forbidden at r.create (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:1006) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.jh [as startSession] (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:53619) at async pi.startNew (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:59886) at async tu.createNewSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:5045) at async tu.connectToOrCreateSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:4277) at async tu.create (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:1980) at async i_.createJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:35993) at async i_.startJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:34001) at async n.wrapKernelMethodImpl (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:304:82604)] { category: 'unknown', isJupyterError: true, originalException: [r [Error]: Forbidden at r.create (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:1006) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.jh [as startSession] (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:53619) at async pi.startNew (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/node_modules/@jupyterlab/services.js:11:59886) at async tu.createNewSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:5045) at async tu.connectToOrCreateSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:4277) at async tu.create (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:1980) at async i_.createJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:35993) at async i_.startJupyterSession (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:285:34001) at async n.wrapKernelMethodImpl (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.2024100401-linux-x64/dist/extension.node.js:304:82604)] { response: p [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: [Object], [Symbol(Response internals)]: [Object] }, traceback: '' } } 17:39:45.304 [trace] Cell 0 completed in 0s (start: undefined, end: undefined) ```

And what should I do next? Thanks

DonJayamanne commented 1 month ago

Please can you share the full logs, I need all of the logs, as I'd like to get the version infomraiton, Python version, startup information, etc all from the logs.

vs-code-engineering[bot] commented 1 month ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!