'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 ?
Solution 1:[1]
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.
Solution 2:[2]
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 *
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mariana Angeles |
Solution 2 | Yunnosch |