Failed to bootstrap fresh install: gzip: stdin: not in gzip format; but looks like a curl problem


(Anton) #1

Installing a new Discourse instance as by the official manual.

I, [2017-08-23T13:58:13.056130 #13]  INFO -- : > cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --upgrade --auto-upgrade

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./acme.sh: 5140: ./acme.sh: gtar: not found
[Wed Aug 23 13:58:22 UTC 2017] Extraction error.
[Wed Aug 23 13:58:22 UTC 2017] Upgrade failed!
I, [2017-08-23T13:58:22.152029 #13]  INFO -- : [Wed Aug 23 13:58:13 UTC 2017] Installing from online archive.
[Wed Aug 23 13:58:13 UTC 2017] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Wed Aug 23 13:58:22 UTC 2017] Extracting master.tar.gz

I, [2017-08-23T13:58:22.161313 #13]  INFO -- : Terminating async processes
I, [2017-08-23T13:58:22.163011 #13]  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/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 42
2017-08-23 13:58:22.163 UTC [42] LOG:  received fast shutdown request
2017-08-23 13:58:22.164 UTC [42] LOG:  aborting any active transactions
I, [2017-08-23T13:58:22.164133 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 155
2017-08-23 13:58:22.165 UTC [49] LOG:  autovacuum launcher shutting down
155:signal-handler (1503496702) Received SIGTERM scheduling shutdown...
2017-08-23 13:58:22.172 UTC [46] LOG:  shutting down
2017-08-23 13:58:22.189 UTC [46] LOG:  database system is shut down
155:M 23 Aug 13:58:22.191 # User requested shutdown...
155:M 23 Aug 13:58:22.191 * Saving the final RDB snapshot before exiting.
155:M 23 Aug 13:58:22.207 * DB saved on disk
155:M 23 Aug 13:58:22.207 # Redis is now ready to exit, bye bye...

and the final FAILURE below:

FAILED
--------------------
Pups::ExecError: cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --upgrade --auto-upgrade failed with return #<Process::Status: pid 3324 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cmd"=>["cd /root && git clone https://github.com/Neilpang/acme.sh.git && cd /root/acme.sh && git reset --hard e5244cf3c04a5cad274d5a0be31ce80c336be388", "touch /var/spool/cron/crontabs/root", "install -d -m 0755 -g root -o root $LETSENCRYPT_DIR", "cd /root/acme.sh && LE_WORKING_DIR=\"${LETSENCRYPT_DIR}\" ./acme.sh --install --log \"${LETSENCRYPT_DIR}/acme.sh.log\"", "cd /root/acme.sh && LE_WORKING_DIR=\"${LETSENCRYPT_DIR}\" ./acme.sh --upgrade --auto-upgrade"]}
f959d37ca7383b66ceb18c37eb593b2fb872963e126447667ba0e2e7d87e5302
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Please advise

Using a DigitalOcean $10 droplet.


(Anton) #2

Exploring acme.sh log file reveals the following error:

Using config home:/shared/letsencrypt
Installing from online archive.
Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
GET
url='https://github.com/Neilpang/acme.sh/archive/master.tar.gz'
timeout
_CURL='curl -L --silent --dump-header /shared/letsencrypt/http.header '
ret='0'
Extracting master.tar.gz
Extraction error.
Upgrade failed!

(Sam Saffron) #3

@tgxworld perhaps have a look at this?


(Alan Tan) #4

@meglio Try again?