# Rebuild failing due to wonky ipv6

**URL:** <https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171>\
**Category:** Product Support\
**Created:** [May 19, 2019, 10:52pm UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171 "2019-05-19T22:52:36Z")\
**Posts on this page:** 9\
**Page:** 1

## AI-generated summary

The discussion revolves around a failing Discourse rebuild due to issues with IPv6. [pfaffman](/t/-/118171/1) initially encounters a problem while rebuilding with official plugins, resulting in a `Gem::RemoteFetcher::UnknownHostError`. Despite trying different versions, disabling plugins, and upgrading Docker, the issue persists. [Stephen](/t/-/118171/4) suggests troubleshooting by disabling official plugins and checking DNS resolution. [pfaffman](/t/-/118171/7) discovers that they can access the problematic URL within the existing container, but the rebuild still fails. Ultimately, [pfaffman](/t/-/118171/8) resolves the issue by disabling previously enabled IPv6 addresses, which were causing problems within Docker containers.

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 19, 2019, 10:52pm UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/1 "2019-05-19T22:52:36Z")

</div>

Trying to resolve my [Patreon problem](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102) I’m doing a rebuild. I have only official plugins, and it’s failing with

```plaintext
I, [2019-05-19T22:35:13.979327 #15] INFO -- : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    timed out (https://rubygems.org/specs.4.8.gz)
I, [2019-05-19T22:36:14.620134 #15] INFO -- : 

```

I’m sorta stumped.

---

<div class="post-metadata">

**Author:** ![appcomqa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/appcomqa/32/133414_2.png) [@appcomqa](https://meta.discourse.org/u/appcomqa)\
**Post date:** [May 19, 2019, 10:57pm UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/2 "2019-05-19T22:57:47Z")

</div>

I also encountered the same problem.

if use verison: `beta` canot rebuild, only use ` tests-passed`

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 19, 2019, 11:00pm UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/3 "2019-05-19T23:00:15Z")

</div>

Thanks, but I’m on `tests-passed`.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [May 19, 2019, 11:00pm UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/4 "2019-05-19T23:00:51Z")

</div>

If you’ve upgraded to tests-passed you also can’t swap back to beta until beta catches up.

> [@pfaffman](#):
>
> I have only official plugins

It can’t hurt to disable official plugins too, just to troubleshoot.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 20, 2019, 12:57am UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/5 "2019-05-20T00:57:57Z")

</div>

Good idea, but no joy. I removed all plugins, and it’s still failing with

```plaintext
I, [2019-05-19T23:53:44.891357 #14] INFO -- : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)

```

I tried upgrading Docker and disabling IPv6. Still no joy.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [May 20, 2019, 1:48am UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/6 "2019-05-20T01:48:47Z")

</div>

Ok, and if you `ping www.google.com` does it resolve?

What result do you get if you `nslookup` ? Does the connection to DNS time out?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 20, 2019, 1:53am UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/7 "2019-05-20T01:53:15Z")

</div>

Well, in the existing container, I can curl `https://rubygems.org/specs.4.8.gz` without any problem.

I guess I’ll next see if I can crank up the latest discourse/base image and see what it’s doing.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 20, 2019, 2:16am UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/8 "2019-05-20T02:16:51Z")

</div>

Well, a while back I enabled ipv6, and something with that broke some stuff (but only some?) inside Docker containers. I turned off those IPv6 addresses and it seems that this and my other problem are resolved.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [June 19, 2019, 2:16am UTC](https://meta.discourse.org/t/rebuild-failing-due-to-wonky-ipv6/118171/9 "2019-06-19T02:16:57Z")

</div>

Closed on June 19, 2019, 2:16am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
