Install discourse error help me?

In ./discourse-setup after:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && git fetch --depth 1 origin tests-passed failed with return #<Process::Status: pid 157 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"]}
9cd623510fd924e9a9828bd96b7ccb4d9fba65d020ef8395f6825de6b9d1409c
** 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.
root@iZwz93dgnb87rnpy6iwo0fZ:/var/discourse# 

Can you share more of the install log as said in the message

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.

Your vm, or at least docker containers inside it cannot access github…

You need to diagnose networking for your host or docker.

1 Like

Thank u I have replaced the US server to get it resolved

1 Like

And it’s working now?

1 Like