更新错误,网站不可用,可能与插件有关?

大家好,

我遇到了一个问题……首先,我不是专家,请大家多多包涵。

我尝试通过网页界面升级 Discourse,然后当我尝试升级插件时,出现了以下信息:

<html><head></head><body>
<h2>您正在运行旧版本的 Discourse 镜像。</h2>
<p>
在您运行最新镜像之前,通过网页界面进行的升级将被禁用。
</p>
<p>
为此,请通过 SSH 登录到您的服务器并运行以下命令:
</p>

<pre>
cd /var/discourse
git pull
./launcher rebuild app
</pre>
<p>
<a href='https://meta.discourse.org/t/how-do-i-update-my-docker-image-to-latest/23325'>在我们的支持网站上查看更多信息</a>
</p>
</body>
</html>

当时网站仍然正常运行。

随后,我进入远程 Shell,并按照此指南操作:Manually update Discourse and Docker image to latest

结果出现了以下错误。

现在网站已无法访问,完全无法连接。

关于我接下来该怎么做,大家有什么建议吗?我有点不知所措,似乎在这里找不到相关的指南或讨论帖。我真的很需要解决这个问题,同时不能丢失任何数据或配置选项……

Problem seems like related to babble Plugin!

maybe try this:

cd /var/discourse
nano containers/app.yml

remove the line

- git clone -b beta https://github.com/gdpelican/babble.git

and then Hit Ctrl + O to save the file, Ctrl + X to exit nano and then Run

git pull
./launcher rebuild app

This will disable the beta version of babble but the rest of the site may be back. then, Try revisiting babble’s repo and install the latest stable version!

To install Babble’s stable version,
add this line to where the old line was removed from:

- git clone https://github.com/gdpelican/babble.git
9 个赞

Bhanu, thank you so much, it worked like a charm!
Have a great day and/or evening :slight_smile:

1 个赞