安装 discourse 错误,请帮助我?

./discourse-setup 之后:

失败
--------------------
Pups::ExecError: cd /var/www/discourse && git fetch --depth 1 origin tests-passed 失败,返回 #<Process::Status: pid 157 exit 128>
失败位置:/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec 失败,参数为 {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p                    /shared/log/rails", "bash -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "bash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shared/tmp/{backups,restores}\"", "bash -c \"ln    -s           /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "find public/plugins/ -maxdepth 1 -xtype l -delete\""]}
9cd623510fd924e9a9828bd96b7ccb4d9fba65d020ef8395f6825de6b9d1409c
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一个。
./discourse-doctor 可能有助于诊断问题。
root@iZwz93dgnb87rnpy6iwo0fZ:/var/discourse# 

你能分享更多安装日志,正如消息中所说?

I, [2022-03-20T06:38:43.318901 #1]  INFO -- : 
> cd /var/www/discourse && git clean -f
I, [2022-03-20T06:38:43.528620 #1]  INFO -- : 
I, [2022-03-20T06:38:43.529217 #1]  INFO -- : 
> cd /var/www/discourse && git remote set-branches --add origin main
I, [2022-03-20T06:38:43.533776 #1]  INFO -- : 
I, [2022-03-20T06:38:43.534068 #1]  INFO -- : 
> cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2022-03-20T06:38:43.537973 #1]  INFO -- : 
I, [2022-03-20T06:38:43.538267 #1]  INFO -- : 
> cd /var/www/discourse && git fetch --depth 1 origin tests-passed
fatal: unable to access 'https://github.com/discourse/discourse.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
I, [2022-03-20T06:40:43.943962 #1]  INFO -- : 
I, [2022-03-20T06:40:43.944561 #1]  INFO -- : Terminating async processes
I, [2022-03-20T06:40:43.944788 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
I, [2022-03-20T06:40:43.945030 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103
2022-03-20 06:40:43.945 UTC [42] LOG:  received fast shutdown request
103:signal-handler (1647758443) Received SIGTERM scheduling shutdown...
2022-03-20 06:40:43.949 UTC [42] LOG:  aborting any active transactions
2022-03-20 06:40:43.954 UTC [42] LOG:  background worker "logical replication launcher" (PID 51) exited with exit code 1
2022-03-20 06:40:43.954 UTC [46] LOG:  shutting down
2022-03-20 06:40:43.996 UTC [42] LOG:  database system is shut down
103:M 20 Mar 2022 06:40:44.026 # User requested shutdown...
103:M 20 Mar 2022 06:40:44.027 * Saving the final RDB snapshot before exiting.
103:M 20 Mar 2022 06:40:44.032 * DB saved on disk
103:M 20 Mar 2022 06:40:44.032 # Redis is now ready to exit, bye bye...


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'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p                    /shared/log/rails", "bash -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "bash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shared/tmp/{backups,restores}\"", "bash -c \"ln    -s           /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "find public/plugins/ -maxdepth 1 -xtype l -delete"]}}
430c1ce31b576b592aa0447e40f5f6636e7f30f3b38ae28904dade87bacba080
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.

您的虚拟机,或者至少是其中的 Docker 容器无法访问 GitHub。

您需要诊断主机或 Docker 的网络连接。

1 个赞

谢谢,我已经更换了美国服务器以解决此问题。

1 个赞

现在可以用了吗?

1 个赞