./launcher rebuild app failed. How to fix this?

Terminal message:


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git failed with return #<Process::Status: pid 281 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.

Server: Ubuntu 20.04

The error message that will help troubleshoot this sits above the FAILED. Can you provide more of the console output?

1 Like

Sure, more console output:


I, [2024-01-20T08:58:14.792020 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git
Cloning into '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.


Seems like an Internet error to me, does just rebuilding again work by chance?

2 Likes

I rebuilt at leat 4 times, didn’t work by any time.

Could be Internet error, however, I haven’t figure it out.

Is your server in China or somewhere else that might have trouble connecting to Github?

2 Likes

Probably not. My server is located at HongKong, no problem connecting to Github.

And to verify that, I manualy run this:

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

It works (connecting to Github)

Hmm maybe see this earlier thread for ideas?
Fatal: unable to access 'https://github.com/SamSaffron/pups.git/':

2 Likes

It looks to me likely that HK is inside the GFW - inconsistent results are consistent with GFW. Perhaps see
A fork of discourse docker repo for China

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