# 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:** [23 augustus 2017 om 14: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:** 5
**Page:** 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: [23 augustus 2017 om 14: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.

---

<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: [23 augustus 2017 om 14:41 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620/2 "2017-08-23T14:41:19Z")

</div>

Exploring acme.sh log file reveals the following error:

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

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 augustus 2017 om 15:26 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620/3 "2017-08-23T15:26:34Z")

</div>

@tgxworld perhaps have a look at this?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [24 augustus 2017 om 01:05 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620/4 "2017-08-24T01:05:12Z")

</div>

@meglio Try again?

[https://github.com/discourse/discourse\_docker/commit/378578c31526fd9f7d149a61e213f76c8093e2dd](https://github.com/discourse/discourse_docker/commit/378578c31526fd9f7d149a61e213f76c8093e2dd)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 juni 2024 om 12:44 UTC](https://meta.discourse.org/t/failed-to-bootstrap-fresh-install-gzip-stdin-not-in-gzip-format-but-looks-like-a-curl-problem/68620/5 "2024-06-08T12:44:24Z")

</div>

This topic was automatically closed after 2480 days. New replies are no longer allowed.
