# 新主机上构建失败

**URL:** <https://meta.discourse.org/t/build-fails-on-new-host/220755>\
**Category:** Self-hosting\
**Created:** [2022年三月11日 17:01 UTC](https://meta.discourse.org/t/build-fails-on-new-host/220755 "2022-03-11T17:01:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2022年三月11日 17:13 UTC](https://meta.discourse.org/t/build-fails-on-new-host/220755/2 "2022-03-11T17:13:20Z")

</div>

> [@Samir\_Faci](#):
>
> `无法从 https://rubygems.org/ 下载数据 - Net::OpenTimeout: execution expired`

> [@Samir\_Faci](#):
>
> `wget` 可以正常下载 rubygems，网络连接也正常。

如果主机上的互联网连接正常，您需要调试该主机上 Docker 容器内的互联网连接。

> [@Can't build container, no clear errors](https://meta.discourse.org/t/cant-build-container-no-clear-errors/219495/2?u=falco):
>
> The real problem is this one: If the server/container can’t access the Discourse source code in GitHub it won’t be able to build/update. Since you said it works on the host, you need to debug the container networking. Drop to a similar container shell with docker run --it debian:buster-slim bash and debug from there.

---

_[View the full topic](https://meta.discourse.org/t/build-fails-on-new-host/220755)._
