# Fail to rebuild and got 502 Bad Gateway

**URL:** <https://meta.discourse.org/t/fail-to-rebuild-and-got-502-bad-gateway/68390>\
**Category:** Self-hosting\
**Created:** [August 19, 2017, 5:42pm UTC](https://meta.discourse.org/t/fail-to-rebuild-and-got-502-bad-gateway/68390 "2017-08-19T17:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [August 20, 2017, 3:42pm UTC](https://meta.discourse.org/t/fail-to-rebuild-and-got-502-bad-gateway/68390/6 "2017-08-20T15:42:00Z")

</div>

Thank you very much. I got all the problems done with the help of a Chinese friend.

That is because of the ruby source in China is not up to date.

And the solving is delete the line in app.yml

![image](https://global.discourse-cdn.com/meta/original/3X/9/5/95c2e5d7f5d0de424256da277bf98e41b01bd722.png)

Rebuild you will solve such problems.

---

_[View the full topic](https://meta.discourse.org/t/fail-to-rebuild-and-got-502-bad-gateway/68390)._
