# Gem::RemoteFetcher::FetchError error during install

**URL:** <https://meta.discourse.org/t/gem-remotefetcher-fetcherror-error-during-install/44608>\
**Category:** Self-hosting\
**Created:** [May 22, 2016, 11:27am UTC](https://meta.discourse.org/t/gem-remotefetcher-fetcherror-error-during-install/44608 "2016-05-22T11:27:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![obboy](https://avatars.discourse-cdn.com/v4/letter/o/d9b06d/32.png) [@obboy](https://meta.discourse.org/u/obboy)\
**Post date:** [May 22, 2016, 11:42am UTC](https://meta.discourse.org/t/gem-remotefetcher-fetcherror-error-during-install/44608/3 "2016-05-22T11:42:15Z")

</div>

thx, the error may occur by network connection. But what should i do next ? execute ./discourse-setup again， or ./launcher rebuild ？

```
I, [2016-05-22T10:46:13.799929 #36] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2016-05-22T10:46:13.801295 #36] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2016-05-22T10:46:13.802423 #36] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2016-05-22T10:46:13.803562 #36] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2016-05-22T10:46:13.804808 #36] INFO -- : > echo "done configuring web"
I, [2016-05-22T10:46:13.806273 #36] INFO -- : done configuring web

I, [2016-05-22T10:46:13.807578 #36] INFO -- : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/specs.4.8.gz)
I, [2016-05-22T10:46:17.507815 #36] INFO -- : Updating installed gems

```

---

_[View the full topic](https://meta.discourse.org/t/gem-remotefetcher-fetcherror-error-during-install/44608)._
