部署 Google Cloud Datalab 失败并显示 "Not enough VMs ready"

Deploying Google Cloud Datalab fails with "Not enough VMs ready"

我有一个但现在我有一个不同的错误问题。

我换了一个新项目。

我现在在美东项目区,已启用计费。

这次的问题在此处的日志中有详细说明:

Oct 18 10:43:59 datalab-deploy-main-20151018-10-34-58 startupscript: 10:43 AM Not enough VMs ready (0/1 ready, 1 still deploying). Deployed Version: datalab:main.387933421330143384
Oct 18 10:43:59 datalab-deploy-main-20151018-10-34-58 startupscript: ERROR: Not enough VMs ready (0/1 ready, 1 still deploying). Deployed Version: datalab:main.387933421330143384
Oct 18 10:43:59 datalab-deploy-main-20151018-10-34-58 startupscript: 10:43 AM Rolling back the update.  This can sometimes take a while since a VM version is being rolled back.
Oct 18 10:44:00 datalab-deploy-main-20151018-10-34-58 startupscript: Could not start serving the given version.
Oct 18 10:44:00 datalab-deploy-main-20151018-10-34-58 startupscript: ERROR: (gcloud.preview.app.deploy) Command failed with error code [1]
Oct 18 10:44:00 datalab-deploy-main-20151018-10-34-58 startupscript: Step deploy datalab module failed.

几周后我再次尝试,仍然出现同样的错误。这是日志:

    Nov 10 10:01:10 datalab-deploy-main-20151110-09-59-21 startupscript: If this is your first deployment, this may take a while...#015If this is your first deployment, this may take a while.../#015If this is your first deployment, this may take a while...-#015If this is your first deployment, this may take a while...\#015If this is your first deployment, this may take a while...|#015If this is your first deployment, this may take a while...done.
    Nov 10 10:01:10 datalab-deploy-main-20151110-09-59-21 startupscript: 
    Nov 10 10:01:10 datalab-deploy-main-20151110-09-59-21 startupscript: Building and pushing image for module [datalab]
    Nov 10 10:01:49 datalab-deploy-main-20151110-09-59-21 startupscript: Updating module [datalab]...#015
Updating module [datalab].../#015
Updating module [datalab]...-#015
Updating module [datalab]...\#015
Updating module [datalab]...|#015
Updating module [datalab].../#015
Updating module [datalab]...-#015

如此反复,直到最后……

startupscript: ERROR: (gcloud.preview.app.deploy) Not enough VMs ready (0/1 ready, 1 still deploying). Version: datalab:main.388466283677388941
Nov 10 10:08:22 datalab-deploy-main-20151110-09-59-21 startupscript: Step deploy datalab module failed.

在一个全新的项目中再次尝试我现在​​遇到权限错误:

Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript: Verifying that Managed VMs are enabled and ready.
Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript: If this is your first deployment, this may take a while...#015If this is your first deployment, this may take a while...done.
Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript: WARNING: If this is your first deployment, please try again.
Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript: ERROR: (gcloud.preview.app.deploy) Server responded with code [403]:
Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript:   Forbidden Unexpected HTTP status 403.
Nov 10 21:48:41 datalab-deploy-main-20151110-21-42-57 startupscript:   You do not have permission to modify this app (app_id=u's~random-bananas-111111').
Nov 10 21:48:42 datalab-deploy-main-20151110-21-42-57 startupscript: Step deploy datalab module failed.

"not enough VMs ready" 可能是暂时性错误。你能再试一次,看看你能不能走得更远吗?

谢谢...

这可能是由权限问题引起的,最近可能已修复。你能再试一次吗?如果仍然失败并出现同样的错误,请尝试以下操作:

  1. 转到开发者控制台,权限,在"Service Accounts"下,找到帐户[project-id]@appspot.gserviceaccount.com。

  2. 将帐户 ID 复制到其他地方,因为我们稍后会用到它。然后从列表中删除该帐户,确保它从列表中消失,然后使用 "Can edit" 权限将其添加回来。

  3. 等待几分钟,然后再次尝试部署 Datalab。

这个问题可能是项目特定的,所以如果可能的话,您也可以在新项目中尝试 Datalab。

让我知道进展如何!

对于此问题:"You do not have permission to modify this app..",转到权限并重新创建 XXXXX-compute@... 帐户。这对我有用。

对于原始问题:"Not enough VMs ready",我不得不重新创建项目并重试。终于搞定了。

None 这里的建议有所帮助,但是在第 4 个新项目并尝试再次部署之后,坚持不懈被证明是答案并且奏效了:)

我建议转到 Operations > Logging and select "crash.log" and "any level" 以获取您尝试部署到的版本。您将获得大量无组织的日志转储,但其中很可能存在阻止构建容器的错误。

是的,错误消息完全没有帮助,但日志应该捕获导致容器失败的问题。

如果这不起作用,请使用 docker 在本地尝试 运行 容器并确保它能够构建。