# 重建应用后出现连接被拒绝错误

**URL:** <https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112>\
**Category:** Support\
**Created:** [2019年九月10日 00:33 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112 "2019-09-10T00:33:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)\
**Post date:** [2019年九月10日 00:33 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/1 "2019-09-10T00:33:55Z")

</div>

我刚对我的论坛执行了一次控制台重建，就像我之前做过很多次一样。事实上，我已经做过好几次了。控制台没有报告任何错误，但论坛无法加载。

> **[The Interactive Fiction Community Forum](https://intfiction.org/)**
>
> A forum for all authors and fans of Interactive Fiction

重建日志：

[https://gist.github.com/curiousdannii/1785ced2591393de992c97aab6bb8e96](https://gist.github.com/curiousdannii/1785ced2591393de992c97aab6bb8e96)

---

<div class="post-metadata">

**Author:** ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)\
**Post date:** [2019年九月10日 00:38 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/2 "2019-09-10T00:38:50Z")

</div>

刚想发同样的问题——我今天重建后遇到了服务器错误。即使没有任何插件也会出现这种情况，而昨天重建时一切正常。

会不会是最新一次测试通过后的构建有问题？

---

<div class="post-metadata">

**Author:** ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)\
**Post date:** [2019年九月10日 00:46 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/3 "2019-09-10T00:46:43Z")

</div>

@gerhard 这和你刚刚修复的是同一个问题吗？

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2019年九月10日 00:47 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/4 "2019-09-10T00:47:32Z")

</div>

是的，请再次执行 `git pull` 并重新构建。

---

<div class="post-metadata">

**Author:** ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)\
**Post date:** [2019年九月10日 01:04 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/5 "2019-09-10T01:04:47Z")

</div>

@gerhard 遗憾的是，对我来说问题仍未解决——仍然收到“不安全”的错误提示：  
有什么建议吗？

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2019年九月10日 01:13 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/6 "2019-09-10T01:13:18Z")

</div>

您执行了以下步骤，对吗？

```plaintext
cd /var/discourse
git pull
./launcher rebuild app

```

您的网站 URL 是什么？您是否使用了公钥固定（Public Key Pinning）或其他可能导致 TLS 相关问题的设置？您能否在 [SSL Server Test (Powered by Qualys SSL Labs)](https://www.ssllabs.com/ssltest/) 上检查您的网站？

---

<div class="post-metadata">

**Author:** ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)\
**Post date:** [2019年九月10日 01:35 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/7 "2019-09-10T01:35:35Z")

</div>

感谢您的帮助 @gerhard，测试详情已私信给您。据我所知，我并未使用公钥固定（Public Key Pinning）。我的网站托管在 GCP 上，并且已执行了您描述的步骤。

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2019年九月10日 01:54 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/8 "2019-09-10T01:54:47Z")

</div>

哦，看来您的网站前面有一个负载均衡器。据我所知，您看到的错误来自 GCP。我不太清楚具体是如何运作的，也不清楚您是如何配置它的，但它可能会与 ECDSA 证书产生问题。您是否正在使用来自 Discourse 的 Let’s Encrypt 证书？看起来负载均衡器正在终止 TLS 连接。

---

<div class="post-metadata">

**Author:** ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)\
**Post date:** [2019年九月10日 01:57 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/9 "2019-09-10T01:57:24Z")

</div>

谢谢，我正在使用 Discourse 的 Let’s Encrypt 证书。我会尝试探索一下，看看自上次发布以来有哪些变更导致了这个问题。

---

<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:** [2019年十月10日 01:57 UTC](https://meta.discourse.org/t/connection-refused-error-after-rebuilding-app/128112/10 "2019-10-10T01:57:27Z")

</div>

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