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

**URL:** <https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620>\
**Category:** Self-hosting\
**Created:** [2017 年 8 月 23 日午後 2:25 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620 "2017-08-23T14:25:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)\
**Post date:** [2017 年 8 月 23 日午後 2:25 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620/1 "2017-08-23T14:25:15Z")

</div>

Installing a new Discourse instance as by [the official manual](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md).

```plaintext
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:

```plaintext
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.

---

_[View the full topic](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620)._
