התקנה לא מצליחה להתחבר ל-GitHub

סיכום מבוסס בינה מלאכותית

User vsiryxm reported repeated failures installing Discourse on an Aliyun ECS server (Ubuntu 20.04), with errors indicating inability to connect to GitHub during git fetch 4. Falco suspected GitHub connectivity issues, and after vsiryxm confirmed the same problem on a Vultr server, Falco tested a direct git clone — which succeeded 7. IAmGav then logged into the server, ran apt-get update, upgrade, and dist-upgrade, and successfully rebuilt Discourse 9. cyufu suggested the issue may stem from network restrictions in China, recommending use of a Hong Kong server to create a local mirror for domestic installations. vsiryxm thanked the helpers, though a later post 12 appears to be a typo or accidental input. The core resolution involved system updates and possibly mitigating regional network limitations.

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.

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?

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

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.

Thank you very much!

Ok, thank youdsffasafsfa