无法恢复 Discourse

您好,

由于服务器出现问题,我现在无法重新安装 Discourse。目前的错误是 502 Bad Gateway。
这是 SSH 的日志:

root@xxxx:/var/discourse# ./launcher rebuild app
确保启动器是最新的
获取远程仓库
启动器已是最新
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolve host: github.com
454737c0eb0bd833434e8313b89e4641c90ff57e291f7c9b3ca7a895a9181abc
** 引导失败 ** 请向上滚动并查看之前的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
root@xxxx:/var/discourse# ./launcher rebuild app
确保启动器是最新的
获取远程仓库
启动器已是最新
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolve host: github.com
ac1e181261d864ce64d2939199b3c7f79715679c594254b2208bafc1b97d3ee1
** 引导失败 ** 请向上滚动并查看之前的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。

你能 curl https://github.com 吗?

是的,我可以做到,它响应了网页。

我是这样解决的。我从 Docker 中移除了:

  • Nginx

  • Redis

  • Discourse

    cd /var/discourse
    ./launcher stop app
    cd /var
    sudo rm -rf discourse

然后使用 setup 重新安装了 Discourse。

问题出在 Docker 与 Discourse 之间的“通信”上。我曾尝试移除 Nginx 和 Redis,但问题依然存在。我不确定原因。

Plesk 上的错误是:Error: {"message":"no such image: discourse/base: No such image: discourse/base:latest"}