安装无法连接到GitHub

我使用的环境是aliyun ECS (1Core 2 GiB Ubuntu 20.04 64bit),source.list也是aliyun的默认源。近两天,我按照discourse的新手安装教程安装了N次,都出现了错误。

看起来您的服务器在连接到 GitHub 时遇到问题。

2 个赞

我更换了 vultr 服务器,但仍然存在问题。

请帮我看看如何解决这个问题。非常感谢!

2022-02-10 00:27:20.146 UTC [46] LOG:  shutting down
103:M 10 Feb 2022 00:27:20.149 # User requested shutdown...
103:M 10 Feb 2022 00:27:20.149 * Saving the final RDB snapshot before exiting.
103:M 10 Feb 2022 00:27:20.153 * DB saved on disk
103:M 10 Feb 2022 00:27:20.154 # Redis is now ready to exit, bye bye...
2022-02-10 00:27:20.172 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & git fetch --depth 1 origin tests-passed failed with return #<Process::Status: pid 140 exit 128>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'

在服务器上运行

git clone --depth 1 https://github.com/discourse/discourse.git /tmp/discourse

是否可行?

1 个赞
root@discourse-test:/var/discourse# git clone --depth 1 https://github.com/discourse/discourse.git /tmp/discourse2
Cloning into '/tmp/discourse2'...
remote: Enumerating objects: 28129, done.
remote: Counting objects: 100% (28129/28129), done.
remote: Compressing objects: 100% (27176/27176), done.
remote: Total 28129 (delta 1121), reused 22444 (delta 711), pack-reused 0
Receiving objects: 100% (28129/28129), 51.38 MiB | 13.16 MiB/s, done.
Resolving deltas: 100% (1121/1121), done.
Updating files: 100% (30974/30974), done.
root@discourse-test:/var/discourse# cd /tmp/
root@discourse-test:/tmp# ls
changelog.3296
discourse2
snap.lxd
systemd-private-6f378bfba50846da9f3f3f5f005acd1f-fwupd.service-iwMMuj
systemd-private-6f378bfba50846da9f3f3f5f005acd1f-systemd-logind.service-hc3qui
systemd-private-6f378bfba50846da9f3f3f5f005acd1f-systemd-resolved.service-b9CiHh
systemd-private-6f378bfba50846da9f3f3f5f005acd1f-systemd-timesyncd.service-FWfr2g
systemd-private-6f378bfba50846da9f3f3f5f005acd1f-upower.service-1KnWUg
root@discourse-test:/tmp# 

@vsiryxm

你能发我登录信息,这样我就可以帮你看看了吗?

我已登录并运行了以下命令

  1. apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade(不需要经常使用此命令)

然后我重新构建,一切都成功了。

这是我在域上看到的内容

3 个赞

您是中国用户吗?安装因网络问题失败。解决方法是香港服务器(按流量收费,使用后不会继续收费)。安装成功后,制作一个镜像,国内服务器就可以用这个镜像来安装了。我的网站目前一年都无法升级,这是我升级的方法。我的服务器是腾讯云。

1 个赞

非常感谢!

1 个赞

好的,谢谢dsffasafsfa

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