# Server in China can't reach rubygems.org so install fails

**URL:** <https://meta.discourse.org/t/server-in-china-cant-reach-rubygems-org-so-install-fails/39329>\
**Category:** Self-hosting\
**Created:** [2016 年 2 月 10 日午前 9:37 UTC](https://meta.discourse.org/t/server-in-china-cant-reach-rubygems-org-so-install-fails/39329 "2016-02-10T09:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)\
**Post date:** [2016 年 2 月 10 日午前 9:37 UTC](https://meta.discourse.org/t/server-in-china-cant-reach-rubygems-org-so-install-fails/39329/1 "2016-02-10T09:37:43Z")

</div>

Install being given today  
FAILED  
--------------------  
RuntimeError: cd /var/www/discourse && su discourse -c ‘bundle install --deployment --verbose --without test --without development’ failed with return #\<Process::Status: pid 343 exit 7\>  
Location of failure: /pups/lib/pups/exec\_command.rb:105:in `spawn’  
exec failed with the params {“cd”=\>“$home”, “hook”=\>“bundle\_exec”, “cmd”=\>[“su discourse -c ‘bundle install --deployment --verbose --without test --without development’”, “su discourse -c ‘bundle exec rake db:migrate’”, “su discourse -c ‘bundle exec rake assets:precompile’”]}  
b9d7f127683db22ead5399eb31aebf6d505c0e092514327234ff3e9f2ba82a19  
\*\* FAILED TO BOOTSTRAP \*\* please scroll up and look for earlier error messages, there may be more than one

---

_[View the full topic](https://meta.discourse.org/t/server-in-china-cant-reach-rubygems-org-so-install-fails/39329)._
