./launcher rebuild app 失败。如何解决?

终端消息:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git 失败,返回 #<Process::Status: pid 281 exit 128>
失败位置:/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
使用参数 {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-data-explorer.git", "git clone https://github.com/discourse/discourse-whos-online.git", "git clone https://github.com/discourse/discourse-math.git"]} 执行失败
引导失败,退出代码 128
**引导失败** 请向上滚动并查找更早的错误消息,可能不止一个。
./discourse-doctor 可能有助于诊断问题。

服务器:Ubuntu 20.04

有助于解决此问题的错误消息位于 FAILED 的上方。您能否提供更多控制台输出?

1 个赞

好的,更多控制台输出:


I, [2024-01-20T08:58:14.792020 #1]  INFO -- : cd /var/www/discourse/plugins & git clone https://github.com/discourse/discourse-math.git
正在克隆 'discourse-math'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
I, [2024-01-20T09:00:02.242893 #1]  INFO -- :
I, [2024-01-20T09:00:02.281901 #1]  INFO -- : Terminating async processes
I, [2024-01-20T09:00:02.284707 #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: 57
2024-01-20 09:00:02.287 UTC [57] LOG:  received fast shutdown request
I, [2024-01-20T09:00:02.291386 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 126
126:signal-handler (1705741202) Received SIGTERM scheduling shutdown...
2024-01-20 09:00:02.302 UTC [57] LOG:  aborting any active transactions
126:M 20 Jan 2024 09:00:02.308 # User requested shutdown...
126:M 20 Jan 2024 09:00:02.311 * Saving the final RDB snapshot before exiting.
126:M 20 Jan 2024 09:00:02.333 * DB saved on disk
126:M 20 Jan 2024 09:00:02.334 # Redis is now ready to exit, bye bye...
2024-01-20 09:00:02.406 UTC [57] LOG:  background worker "logical replication launcher" (PID 66) exited with exit code 1
2024-01-20 09:00:02.409 UTC [61] LOG:  shutting down
2024-01-20 09:00:02.475 UTC [57] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins & git clone https://github.com/discourse/discourse-math.git failed with return #<Process::Status: pid 299 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-data-explorer.git", "git clone https://github.com/discourse/discourse-whos-online.git", "git clone https://github.com/discourse/discourse-math.git"]}
bootstrap failed with exit code 128
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.


这看起来像是网络错误,重新构建一下能解决吗?

2 个赞

我至少重建了4次,但都没用。

可能是网络错误,但我还没弄清楚。

您的服务器在中国还是其他可能难以连接到 Github 的地方?

2 个赞

可能不会。我的服务器位于香港,连接到 Github 没有问题。

并且为了验证这一点,我手动运行了:

git clone https://github.com/discourse/discourse-math.git

它能正常工作(连接到 Github)。

也许可以看看这个早期的帖子来获取一些想法?
Fatal: 无法访问 ‘https://github.com/SamSaffron/pups.git/’:

2 个赞

在我看来,香港很可能在中国大陆防火墙(GFW)之内——不稳定的结果与GFW是一致的。也许可以看看
一个用于中国的 Discourse Docker 仓库的 fork

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