# トピックが2つだけの場合の502 Bad Gateway

**URL:** https://meta.discourse.org/t/502-bad-gateway-for-only-two-topics/242981
**Category:** Self-hosting
**Tags:** arm
**Created:** [2022 年 10 月 26 日午後 4:24 UTC](https://meta.discourse.org/t/502-bad-gateway-for-only-two-topics/242981 "2022-10-26T16:24:48Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![niccokunzmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/niccokunzmann/32/131771_2.png) [@niccokunzmann](https://meta.discourse.org/u/niccokunzmann)
#### Post date: [2022 年 10 月 27 日午前 5:49 UTC](https://meta.discourse.org/t/502-bad-gateway-for-only-two-topics/242981/6 "2022-10-27T05:49:35Z")

</div>

> [@pfaffman](#):
>
> プラグインはインストールされていますか？

[https://ammanvalley.foss.wales/t/plugins-to-install/14](https://ammanvalley.foss.wales/t/plugins-to-install/14)

- [Checklist | Discourse - Civilized Discussion](https://www.discourse.org/plugins/checklist.html)
- [Reactions | Discourse - Civilized Discussion](https://www.discourse.org/plugins/reactions.html)
- [Events Plugin 📆 - plugin - Discourse Meta](https://meta.discourse.org/t/events-plugin/69776)

> [@pfaffman](#):
>
> 最近再起動しましたか？

いいえ、しかしアプリを再起動し、再構築し、ウェブインターフェース経由で更新しました。

> [@Falco](#):
>
> 手がかりがないか /var/log/nginx/ ファイルも確認してください。

nginxの出力は、`access.log`でタイムアウトを待ってから、次のようなものを生成します。

```plaintext
[27/Oct/2022:05:45:48 +0000] "ammanvalley.foss.wales" 8.8.8.8 "GET /t/wip-arduino-workshop/58 HTTP/2.0" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:105.
0) Gecko/20100101 Firefox/105.0" "-" 502 217 "https://meta.discourse.org/" 30.516 30.516 "-" "-" "-" "-" "-" "-" "-"

```

`error.log`では、次のようなものが見られます。

```plaintext
2022/10/26 21:03:48 [error] 578#578: *509 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 46.59.192.44, se
rver: _, request: "GET /t/wip-arduino-workshop/58 HTTP/2.0", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales", refe
rrer: "https://meta.discourse.org/"
2022/10/26 21:05:58 [error] 575#575: *591 upstream prematurely closed connection while reading response header from upstream, client: 189.79.134.158, server:
_, request: "GET /t/wip-arduino-workshop/58 HTTP/2.0", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales", referrer:
"https://meta.discourse.org/"
2022/10/26 21:52:07 [error] 578#578: *1117 upstream prematurely closed connection while reading response header from upstream, client: 216.68.248.7, server: _
, request: "GET /t/welcome-to-amman-valley-makerspace/7 HTTP/1.1", upstream: "http://127.0.0.1:3000/t/welcome-to-amman-valley-makerspace/7", host: "ammanvalle
y.foss.wales"
2022/10/26 22:33:23 [error] 578#578: *1534 upstream prematurely closed connection while reading response header from upstream, client: 64.222.212.196, server:
 _, request: "GET /t/wip-arduino-workshop/58 HTTP/1.1", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales"
2022/10/27 05:21:21 [crit] 578#578: *2066 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handsh
aking, client: 64.62.197.155, server: 0.0.0.0:443
2022/10/27 05:44:54 [error] 578#578: *2073 upstream prematurely closed connection while reading response header from upstream, client: 92.40.170.157, server:
_, request: "GET /t/wip-arduino-workshop/58 HTTP/2.0", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales", referrer:
"https://meta.discourse.org/"
2022/10/27 05:45:48 [error] 578#578: *2073 upstream prematurely closed connection while reading response header from upstream, client: 92.40.170.157, server:
_, request: "GET /t/wip-arduino-workshop/58 HTTP/2.0", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales", referrer:
"https://meta.discourse.org/"
2022/10/27 05:48:48 [error] 575#575: *2161 upstream prematurely closed connection while reading response header from upstream, client: 92.40.170.156, server:
_, request: "GET /t/wip-arduino-workshop/58 HTTP/2.0", upstream: "http://127.0.0.1:3000/t/wip-arduino-workshop/58", host: "ammanvalley.foss.wales", referrer:
"https://meta.discourse.org/"

```

> [@niccokunzmann](#):
>
> `upstream prematurely closed connection while reading response header from upstream`

> [@pfaffman](#):
>
> RAMとスワップはどのくらいありますか？

SWAP: 311M/2.97G RAM: 1.13G/1.93G

---

_[View the full topic](https://meta.discourse.org/t/502-bad-gateway-for-only-two-topics/242981)._
