Installation unable to connect to GitHub

The environment I use is aliyun ECS (1Core 2 GiB Ubuntu 20.04 64bit), source.list is also the default of aliyun. In the past two days, I have installed N times according to the novice installation tutorial of discourse, and there are errors.

Looks like your server is having trouble connecting to github.

2 Likes

I replaced a vultr server and still have problems.

Please help me to see how to solve this problem. Thank you very much!

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'

Does running

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

works on this server?

1 Like
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# 

hey @vsiryxm

Can you message me login details so that I can have a look for you

I logged in and ran the following commands

  1. apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade (dont need to use this cmd often)

I then rebuild and all was successful.

This is what i see on the domain

3 Likes

Are you a user in China, the installation failed due to network problems. The solution is that the Hong Kong server (charged by traffic, and will not continue to be charged for destruction after use). After the installation is successful, make a mirror, and the domestic server can use this mirror to install it. My current website cannot be upgraded for 1 year, and this is the method used to upgrade it. Mine is Tencent server.

1 Like

Thank you very much!

1 Like

Ok, thank youdsffasafsfa

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