# 在 Digital Ocean Web UI 中更新 Discourse 时控制台卡住

**URL:** <https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908>\
**Category:** Support\
**Created:** [2019年九月7日 19:24 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908 "2019-09-07T19:24:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月7日 19:24 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/1 "2019-09-07T19:24:35Z")

</div>

大家好，

我试图更新我的 Discourse 站点，但在管理后台看到了这条消息。

## 您正在运行旧版本的 Discourse 镜像。

在运行最新镜像之前，Web 界面中的升级功能将被禁用。  
为此，请使用 SSH 登录您的服务器并运行：

…

然而，当我访问 DO 服务器的控制台时，它直接卡住了。  
以前从未出现过这种情况。请问有什么办法可以修复吗？

---

<div class="post-metadata">

**Author:** ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)\
**Post date:** [2019年九月7日 19:37 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/2 "2019-09-07T19:37:24Z")

</div>

你说的“冻结”是指 SSH 吗？为什么不直接重启服务器呢？

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年九月7日 20:12 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/3 "2019-09-07T20:12:48Z")

</div>

您指的是通过 Digital Ocean 访问控制台的 Web 界面。

请勿使用它。请在您的计算机上使用真正的原生 SSH 工具，或在笔记本电脑、台式机或平板电脑的操作系统中使用终端窗口。

---

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月7日 20:24 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/4 "2019-09-07T20:24:31Z")

</div>

抱歉，我不是开发者。通常我只按照 Discourse 给出的说明在控制台中输入，但现在控制台不允许我操作了。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年九月7日 20:27 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/5 "2019-09-07T20:27:07Z")

</div>

我建议您与 @pfaffman 一起处理此事，因为您已付费请他搭建该网站。或许他也能为您推荐相关工具，并撰写一份自助操作指南。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年九月7日 20:41 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/6 "2019-09-07T20:41:42Z")

</div>

我认为系统并未卡死，只是密码输入时不显示（这样旁人无法从你肩后偷看）。

我到了办公室会检查一下具体情况，但如果你能回复一封你收到的安装邮件，就能为我节省几分钟时间。

嘿，@christian_01。从你的用户名我无法判断哪个是你的网站，所以如果你需要我的帮助，请给我发电子邮件。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年九月7日 22:17 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/7 "2019-09-07T22:17:23Z")

</div>

> [@codinghorror](#):
>
> 您指的是通过 Digital Ocean 访问控制台的 Web 界面。
> 
> 不要使用那个。请在您的计算机上使用真正的原生 SSH 工具，或者在您的笔记本电脑、台式机或平板操作系统中使用终端窗口。

好吧，当您使用 SSH 密钥创建 Droplet 时，默认情况下密码登录是禁用的。我提供安装 SSH 密钥的服务，并提供启用密码登录的说明（如果用户要求，我会直接帮忙设置）。不过，我找不到能让普通安装客户跟随操作的 PuTTY SSH 密钥创建说明，尽管我曾指导过几位 Mac 用户向我发送密钥。这种情况一年最多发生几次（大约每 50 次安装中出现 1 次）。

因此，对于普通安装客户来说，每年只需在 Shell 中输入三行命令三次，Digital Ocean 控制台其实并不是一个糟糕的工具。他们无需安装 PuTTY，也不必记住上次做这种奇怪操作时安装了什么。即使他们使用的是 Mac，大多数人也会觉得终端确实是个陌生的东西。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年九月7日 22:27 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/8 "2019-09-07T22:27:57Z")

</div>

> [@pfaffman](#):
>
> Digital Ocean 控制台其实并不是一个糟糕的工具

主要是因为它省去了在本地设置 SSH 密钥的步骤吗？

不过，听起来 Digital Ocean 的网页控制台对您的这位客户不起作用，而且这已经导致在这里创建了多个主题，这并不好。

---

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月7日 23:21 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/9 "2019-09-07T23:21:41Z")

</div>

谢谢，但我还没和 @pfaffman 合作过。

---

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月7日 23:28 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/10 "2019-09-07T23:28:53Z")

</div>

是啊，我只是一个“普通”的 Mac 用户，对 SSH 密钥之类的东西一无所知……我过去只需点击“一键更新”按钮，但现在这行不通了，因为我需要往控制台里添加几行代码，却做不到。真让人沮丧。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年九月8日 04:33 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/11 "2019-09-08T04:33:54Z")

</div>

> [@pfaffman](#):
>
> 使用 SSH 密钥创建 Droplet 时，默认情况下密码登录会被禁用。

不过，Digital Ocean 的默认设置并非如此，因此除非是你自己创建的 Droplet，否则情况未必如此。

你应该可以使用 Digital Ocean 在设置 Droplet 时提供的 root 用户名和密码，@christian_01。如果实在遇到困难，也可以请一位懂技术的朋友帮忙。

---

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月9日 12:01 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/12 "2019-09-09T12:01:27Z")

</div>

谢谢 Jeff。我该如何处理 root 用户名和密码？我需要在某个地方注销并重新登录吗？

---

<div class="post-metadata">

**Author:** ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Post date:** [2019年九月11日 13:12 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/13 "2019-09-11T13:12:35Z")

</div>

在 DO 控制面板中点击“电源循环”按钮解决了控制台冻结的问题。

感谢您的帮助！

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年九月11日 15:51 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/14 "2019-09-11T15:51:16Z")

</div>

太好了！我都不知道什么时候会想到这个！我目前的最佳猜测是您的内存（RAM）耗尽了。请确保已启用交换空间（swap），并考虑增加您的内存（RAM）。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年十月11日 15:51 UTC](https://meta.discourse.org/t/console-frozen-in-digital-ocean-web-ui-trying-to-update-discourse/127908/15 "2019-10-11T15:51:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
