# Trouble with patreon on multisite

**URL:** https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102
**Category:** Self-hosting
**Created:** [18.Май.2019 18:20:02 UTC](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102 "2019-05-18T18:20:02Z")
**Posts on this page:** 4
**Page:** 1

<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: [18.Май.2019 18:20:02 UTC](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102/1 "2019-05-18T18:20:02Z")

</div>

I’ve got a multisite instance in which every thing seems to be fine, but one of them is using Patreon. The nginx error logs show some logs like

```
2019/05/18 18:15:26 [error] 47#47: *285159 upstream prematurely closed connection while reading response header from upstream, client: 1.2.3.4, server: _, request: "GET /auth/patreon/callback?code=4QiVgXA8EG6spf9c0r42ZXSMyG4oUp&state=0bfa04facfd36bfdded7a54d0e9c1ba8038f00c2c7cb6352 HTTP/1.1", upstream: "http://127.0.0.1:3000/auth/patreon/callback?code=4QiVgXA8EG6spf9c2ZXSMyG4oUp&state=0bfa0d36bfdded7a54d0e9c1ba8038f00c2c7cb6352", host: "hostname"

```

I don’t know why it would be referring to `127.0.0.1:3000`. That’s not the port that anything should be reverse proxying to.

The site works fine when using `/u/admin-login`.

```
[default] Failed to process hijacked response correctly : execution expired

```

---

<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: [20.Май.2019 01:11:39 UTC](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102/2 "2019-05-20T01:11:39Z")

</div>

Oh. Doh! 127.0.0.1:3000 is where Discourse is running. From inside the container, curl to there works fine, but curl to `https://www.patreon.com/oauth2/callback` times out.

The pop-up Patreon login window comes up with a 502 bad gateway

```
https://theactualhostname/auth/patreon/callback?code=rDXXUwuIZB8&state=88ad43f5fb2321810

```

I don’t think it’s a multisite issue, but I don’t know what it might be.

---

<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: [20.Май.2019 02:17:24 UTC](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102/3 "2019-05-20T02:17:24Z")

</div>

It was a networking issue that broke (some?) networking in Docker.

---

<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: [19.Июнь.2019 02:17:24 UTC](https://meta.discourse.org/t/trouble-with-patreon-on-multisite/118102/4 "2019-06-19T02:17:24Z")

</div>

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