# Failed to bootstrap: Failure with receiving network data

**URL:** <https://meta.discourse.org/t/failed-to-bootstrap-failure-with-receiving-network-data/61951>\
**Category:** Self-hosting\
**Created:** [2 Maio , 2017 11:21 UTC](https://meta.discourse.org/t/failed-to-bootstrap-failure-with-receiving-network-data/61951 "2017-05-02T11:21:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![craisp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craisp/32/119998_2.png) [@craisp](https://meta.discourse.org/u/craisp)\
**Post date:** [2 Maio , 2017 11:21 UTC](https://meta.discourse.org/t/failed-to-bootstrap-failure-with-receiving-network-data/61951/1 "2017-05-02T11:21:26Z")

</div>

Edit: The error changed, see 2nd post.

I tried rebuilding my app today.

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && git pull failed with return #<Process::Status: pid 189 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin master", "git pull", "git fetch origin $version", "git checkout $version", "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}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups"]}
5eb4b2121e0bf2175cbf9ad39f9fb36bffa72011858ff54d6405c009bc0b0068
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

Error is here:

```
INFO -- : > cd /var/www/discourse && git pull
fatal: unable to access 'https://github.com/discourse/discourse.git/': GnuTLS recv error (-54): Error in the pull function.

```

The bigger picture:  
This morning there was an issue with the Encryption of the site. Chrome reported: `NET::ERR_CERT_AUTHORITY_INVALID`  
That’s why I tried a rebuild. At the first attempt I had an `Failed To Bootstrap`-Error related to the `acme.sh`-Script

```
discourse Pups::ExecError: cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --upgrade --auto-upgrade failed with return #<Process::Status: pid 18927 exit 1>

```

I tried to this Debugging guide from [Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/setting-up-lets-encrypt/40709)

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709/1):
>
> Debugging
> 
> Check logs for cert related errors
> 
> ./launcher logs \<container name\>
> 
> Then look for any errors mentioning letsencrypt or SSL.
> 
> Did the cert files get written OK?
> 
> ls -l /var/discourse/shared/standalone/ssl on the host server
> 
> You should have a certificate .cer and key .key file for your domain, and they should have ~3k filesize.
> 
> -rw-r–r-- 1 root root 424 May 18 03:22 dhparams.pem  
> -rw-r–r-- 1 root root 3823 May 18 04:24 discourse.example.com.cer  
> -rw-r–r-- 1 root root 3243 May 18 04:24 discourse.example.com.key
> 
> Manually reissue the cert
> 
> ./launcher enter app  
> sv stop nginx  
> /usr/sbin/nginx -c /etc/nginx/letsencrypt.conf  
> LE\_WORKING\_DIR=/shared/letsencrypt DEBUG=1 /shared/letsencrypt/acme.sh --issue -d [example.com](http://example.com) -k 4096 -w /var/www/discourse/public  
> LE\_WORKING\_DIR=/shared/letsencrypt /shared/letsencrypt/acme.sh --installcert -d [example.com](http://example.com) --fullchainpath /shared/ssl/example.com.cer --keypath /shared/ssl/example.com.key --reloadcmd “sv reload nginx”  
> /usr/sbin/nginx -c /etc/nginx/letsencrypt.conf -s stop
> 
> Delete the old cert files and try rebuilding again
> 
> rm -rf /var/discourse/shared/standalone/ssl  
> rm -rf /var/discourse/shared/standalone/letsencrypt  
> ./launcher rebuild app

I got no error there.

Any ideas?

---

_[View the full topic](https://meta.discourse.org/t/failed-to-bootstrap-failure-with-receiving-network-data/61951)._
