简体   繁体   English

无法访问 Google Cloud Platform 上的 Jupyter 实验室。 找不到模板:“403.html”

[英]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.

相关问题 在 Google Cloud 实例中运行 Selenium chrome 驱动程序时出现“找不到 Chrome 二进制错误”(在 jupyter Lab 上) - "cannot find Chrome binary error" when running Selenium chrome driver in a Google Cloud instance (on jupyter Lab) 在谷歌云平台中运行 jupyter 实验室时出现错误 524 - Getting Error 524 while running jupyter lab in google cloud platform Kubernetes无法访问Google云端平台的grafana和Prometheus - Kubernetes cannot access grafana and prometheus fron Google cloud platform MIG 中的谷歌云平台实例无法访问工件注册表 - google cloud platform instance in MIG cannot access artifact registry Google Cloud Platform任务的工作程序找不到日志库 - The worker for a Google Cloud Platform task cannot find the logging library 如何配置虚拟机以在 Google Cloud Platform 上通过 Web 访问 jupyter notebook? - How to configure a VM for web access to jupyter notebook on Google Cloud Platform? 在 Google Cloud Platform (GCP) 中从 Jupyter 笔记本访问另一个磁盘 - Access another disk from Jupyter notebook in Google Cloud Platform (GCP) 从专用服务器迁移到 Google Cloud Platform。 那可能吗? - Migrate from Dedicated Server to Google Cloud Platform. Is that possible? 如何将 Google Cloud AI Platform Jupyter Lab 升级到 Python 3.7+ - How to upgrade Google Cloud AI Platform Jupyter Lab to Python 3.7+ docker无法在Google云平台上启动容器 - docker cannot start container on google cloud platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM