简体   繁体   中英

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. 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".

Any ideas how can I solve this and have access to my jupyter lab on port 8080?

I found I in that situation was missing setting c.NotebookApp.allow_remote_access = True , Otherwise you should check c.NotebookApp.ip . In some cluster you should set c.NotebookApp.ip = 'localhost' rather than * .

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. I suggest that you check if the aforementioned API is enabled, if not try by enabling it.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM