[英]Cannot access Jupyter lab on Google Cloud Platform. Cannot find template: "403.html"
I have a virtual machine on Google Cloud Platform.我在谷歌云平台上有一个虚拟机。 I left a code running on Jupyter lab, which I accessed through port 8080, and I was checking its proper functioning using Google cloud shell once in a while.
我在 Jupyter 实验室留下了一个运行的代码,我通过端口 8080 访问它,我偶尔使用谷歌云 shell 检查它是否正常运行。 This processess worked fine for almost two weeks, but suddenly when I tried to web preview on port 8080, this message appears: Cannot find template: "403.html" In "/opt/conda/share/jupyter/lab/static".
这个过程在将近两周的时间里运行良好,但是当我尝试在 8080 端口上进行 web 预览时,突然出现以下消息:Cannot find template: "403.html" In "/opt/conda/share/jupyter/lab/static"。
Any ideas how can I solve this and have access to my jupyter lab on port 8080?有什么想法可以解决这个问题并可以访问端口 8080 上的 jupyter 实验室吗?
I found I in that situation was missing setting c.NotebookApp.allow_remote_access = True
, Otherwise you should check c.NotebookApp.ip
.我发现我在那种情况下缺少设置
c.NotebookApp.allow_remote_access = True
,否则你应该检查c.NotebookApp.ip
。 In some cluster you should set c.NotebookApp.ip = 'localhost'
rather than *
.在某些集群中,您应该设置
c.NotebookApp.ip = 'localhost'
而不是*
。
I performed a test and I got the same error, but after I enabled the Notebooks API the message disappeared and I was able to open the JupyterLab.我进行了测试,我得到了同样的错误,但在我启用笔记本 API后,消息消失了,我能够打开 JupyterLab。 I suggest that you check if the aforementioned API is enabled, if not try by enabling it.
我建议您检查上述API是否启用,如果没有启用它尝试。
As an additional workaround, you can try accessing from another environment (like your local computer) by running the gcloud commands within it, please notice that it's required to have the Cloud SDK installed.作为一种额外的解决方法,您可以尝试通过在其中运行gcloud 命令从另一个环境(例如您的本地计算机)访问,请注意它需要安装Cloud SDK 。
In case both options don't work for you, I recommend you to contact the Google Cloud Platform support this according to your support plan , so they can check if there is a specific issue with your VM.如果这两个选项都不适合您,我建议您根据您的支持计划联系Google Cloud Platform 支持,以便他们检查您的 VM 是否存在特定问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.