简体   繁体   English

Jupyter 内部 API 未激活 - Vertex-AI jupyterlab 错误 524

[英]Jupyter internal API is not active - Vertex-AI jupyterlab error 524

I cannot access Jupyterlab by web interface (error 524).我无法通过 web 接口访问 Jupyterlab(错误 524)。 It still works by ssh. I've followed the support documentations, but nothing works.它在 ssh 之前仍然有效。我遵循了支持文档,但没有任何效果。

My best guess is that the main issue is with the opened ports of docker.我最好的猜测是主要问题是 docker 的开放端口。
The key problem is probably below:关键问题可能在下面:

curl http://127.0.0.1:8080/api/kernelspecs
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused

And the following command simply restarts the service without error (but still inaccessible through web interface)而下面的命令只是简单的重启了服务,没有报错(但是仍然无法通过web接口访问)

sudo service jupyter restart

Thanks!谢谢!

EDIT: to clarify, all help from this article which specifically is supposed to fix error 524, doesn't work at all.编辑:澄清一下, 这篇文章中专门用于修复错误 524 的所有帮助根本不起作用。
The diagnostic tool give this result, and the --repair doesn't work:诊断工具给出了这个结果,而--repair不起作用:

诊断工具

And "Verify that the Jupyter internal API is active" is completely useless as it doesn't explain how to fix the error!!并且“验证 Jupyter 内部 API 是否处于活动状态”完全没有用,因为它没有解释如何修复错误!!

So I know there is a problem with the Jupyter internal API but no idea how to fix that.所以我知道Jupyter 内部 API有问题,但不知道如何解决。

EDIT 2: On the web console, here is a screenshot:编辑 2:在 web 控制台上,这里是屏幕截图: 控制台 gcp

I have gone through the same error, after upgrading the VM problem got solved all the Jupyter API are healthy try upgrading the VM.我遇到了同样的错误,升级 VM 问题解决后,所有 Jupyter API 都正常尝试升级 VM。 Before that take a snapshot of disk(upgrading might erase your VM).在此之前拍摄磁盘快照(升级可能会擦除您的 VM)。 How to upgrade the VM如何升级虚拟机

As I mentioned in the comment a work around to resolve the issue can be by create a new instance keeping the old data.For this you can follow below steps:正如我在评论中提到的,可以通过创建一个保留旧数据的新实例来解决该问题。为此,您可以按照以下步骤操作:

Step 1: Create a new storage bucket and a new notebook. Step 1:创建一个新的存储桶和一个新的笔记本。

Step 2: Copy the data to the newly created bucket by running the following command in the old notebook terminal. Step 2:在旧笔记本终端中运行以下命令,将数据复制到新创建的桶中。

 "gsutil cp -R /home/jupyter/* gs://NEW_STORAGE_BUCKET_PATH"

Step 3: From the new managed notebook's terminal, run the below command to copy the data to this new notebook. Step 3:从新托管笔记本的终端,运行以下命令将数据复制到这个新笔记本。

"gsutil cp gs://NEW_STORAGE_BUCKET_PATH* /home/jupyter/"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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