You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSCode Jupyter连接远程Jupyter服务器异常问题求助

远程Jupyter服务器VSCode连接异常排查求助

问题1:连接时持续发送请求,内核中断后出现403权限拦截日志

连接远程Jupyter服务器时,VSCode会持续尝试发送大量请求,内核中断后服务器返回403 Forbidden日志:

[W 19:10:36.246 NotebookApp] 403 GET /api/kernels?1677957034769 (211.209.3.124) 0.900000ms referer=None
[W 19:10:43.866 NotebookApp] Forbidden
[W 19:10:43.866 NotebookApp] 403 GET /api/kernels?1677957042389 (211.209.3.124) 1.130000ms referer=None
[W 19:10:45.758 NotebookApp] Forbidden
[W 19:10:45.758 NotebookApp] 403 GET /api/sessions?1677957044282 (211.209.3.124) 0.900000ms referer=None
[W 19:10:47.176 NotebookApp] Forbidden
[W 19:10:47.177 NotebookApp] 403 GET /api/sessions?1677957045701 (211.209.3.124) 0.900000ms referer=None

问题2:退出内核后仍接收远程服务器消息

从VSCode的Jupyter Notebook退出内核后,本地仍能收到远程Jupyter服务器的日志消息:

registered and have sufficient resources
[I 21:20:52.727 NotebookApp] Kernel interrupted: 56e9a17c-cf4a-4d61-a44e-102cc896ded7
23/03/04 21:21:03 WARN YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
23/03/04 21:21:18 WARN YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
23/03/04 21:21:33 WARN YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources

问题3:关闭内核后Yarn持续运行,VSCode重复执行任务

关闭内核后,Yarn集群仍持续运行,甚至重复执行同一Spark任务;本地VSCode的Jupyter会不断尝试重新接入远程服务器,重复执行仅运行过一次的代码。

已执行的排查操作

  • 验证远程Jupyter服务器可用性:通过Chrome浏览器远程访问正常
  • 重装VSCode的Jupyter扩展
  • 清理VSCode本地缓存及服务器端缓存

恳请协助排查上述问题。

内容的提问来源于stack exchange,提问作者형한결

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 01:13:18