# Self-hosting

**URL:** https://meta.discourse.org/c/support/self-hosting/31.md?page=24

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 25

---

## [更新后管理员端崩溃](https://meta.discourse.org/t/admin-side-broken-after-update/312223)

<div class="topic-metadata">

**Author:** [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)\
**回覆:** 7\
**Last updated:** [2024年六月15日 23:14 UTC](https://meta.discourse.org/t/admin-side-broken-after-update/312223 "2024-06-15T23:14:50Z")

</div>

您好， 刚刚更新后，我无法看到管理员仪表板，页面是空白的。 当我尝试重建时，我得到了这个： FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'SKIP\_EMBER\_CLI\_COMPILE=1 bundle exec rake themes:update assets:precompile' failed w…

---

## [更新 Discourse 失败](https://meta.discourse.org/t/updating-discourse-fails/311691)

<div class="topic-metadata">

**Author:** [@arjunaskykok](https://meta.discourse.org/u/arjunaskykok)\
**回覆:** 12\
**Last updated:** [2024年六月15日 16:11 UTC](https://meta.discourse.org/t/updating-discourse-fails/311691 "2024-06-15T16:11:24Z")

</div>

我今天尝试将 Discourse 更新到最新版本。失败了。这是日志： \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \*\*\* 请耐心等待，下一步可能需要一些时间 \*\*\* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 正在重启 Unicorn，以释放内存 正在重启 unicorn pid: 548 等待 …

---

## [无法通过 apt 在 Docker 中更新软件包](https://meta.discourse.org/t/unable-to-update-packages-via-apt-docker/312165)

<div class="topic-metadata">

**Author:** [@bpittman13](https://meta.discourse.org/u/bpittman13)\
**回覆:** 0\
**Last updated:** [2024年六月14日 23:58 UTC](https://meta.discourse.org/t/unable-to-update-packages-via-apt-docker/312165 "2024-06-14T23:58:45Z")

</div>

我收到了关于一些安全更新的提示，但我无法通过apt在docker中获取最新版本。例如，openssl：通过apt的最新版本是1.1.1w，我需要的是1.1.1y，libcurl：通过apt的最新版本是7.74……

---

## [更新Discourse - Node.js在1G机器上自动提升到2G](https://meta.discourse.org/t/updating-discourse-node-js-auto-bumped-to-2g-on-a-1g-machine/312111)

<div class="topic-metadata">

**Author:** [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**回覆:** 0\
**Last updated:** [2024年六月14日 15:45 UTC](https://meta.discourse.org/t/updating-discourse-node-js-auto-bumped-to-2g-on-a-1g-machine/312111 "2024-06-14T15:45:16Z")

</div>

我在使用支持的最低配置：1G内存和2G交换空间。我觉得重建脚本中有东西告诉node.js使用比我更多的内存，这似乎抑制了垃圾回收并导致……

---

## [添加 SSL 证书](https://meta.discourse.org/t/adding-ssl-certificate/312036)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**回覆:** 3\
**Last updated:** [2024年六月14日 14:03 UTC](https://meta.discourse.org/t/adding-ssl-certificate/312036 "2024-06-14T14:03:23Z")

</div>

我购买了一个 SSL 证书，并按照以下说明操作： Allow SSL / HTTPS for your Discourse Docker setup - Documentation / Self-Hosting - Discourse Meta 其中包括将 ssl.key 和 ssl.crt 放在 /var/discours…

---

## [运行SSH连接命令时连接超时](https://meta.discourse.org/t/connection-timed-out-when-running-ssh-connection-command/311880)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**回覆:** 5\
**Last updated:** [2024年六月13日 12:12 UTC](https://meta.discourse.org/t/connection-timed-out-when-running-ssh-connection-command/311880 "2024-06-13T12:12:28Z")

</div>

按照此处 https://meta.discourse.org/t/install-discourse-in-production-with-the-official-supported-instructions/142537 仓库中的步骤，我尝试运行 SSH 连接命令，但它显示：“ssh: connect to host 192.168.1.1 port 22: Connection timed out”。有什么想法吗？

---

## [Postgres 16](https://meta.discourse.org/t/postgres-16/311893)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 2\
**Last updated:** [2024年六月13日 11:20 UTC](https://meta.discourse.org/t/postgres-16/311893 "2024-06-13T11:20:28Z")

</div>

我想知道这里是否有人在使用 Discourse 和 Postgres 版本 16？如果是，是否很容易使用，或者你遇到过什么意外问题？

---

## [似乎无法让Reactions插件工作](https://meta.discourse.org/t/cant-seem-to-get-reactions-plugin-to-work/311831)

<div class="topic-metadata">

**Author:** [@apidevlab](https://meta.discourse.org/u/apidevlab)\
**回覆:** 0\
**Last updated:** [2024年六月12日 22:10 UTC](https://meta.discourse.org/t/cant-seem-to-get-reactions-plugin-to-work/311831 "2024-06-12T22:10:25Z")

</div>

你好， 首先如果这不是发布此请求的正确地点，请原谅我，但我觉得这里比专门的插件主题更合适。 我刚安装不久，一直在尝试官方的…

---

## [在防火墙后设置小型私有 Discourse 的技巧？](https://meta.discourse.org/t/tips-for-setting-up-a-small-private-discourse-behind-a-firewall/311607)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**回覆:** 6\
**Last updated:** [2024年六月12日 17:31 UTC](https://meta.discourse.org/t/tips-for-setting-up-a-small-private-discourse-behind-a-firewall/311607 "2024-06-12T17:31:53Z")

</div>

在 DigitalOcean 或类似服务器上安装 Discourse 非常直接。但我正在考虑为我工作的一个小团体设置一个。 它可能包含私人或敏感信息，因此我理想情况下应该能够在公司内部的服务器上进行设置。但存在一些复杂问题，例如需要电子邮件服务以及在安装页面上提到的类似内容 :bell: Discourse 无法通过 IP 地址运行，您必须拥有一个像 example.com 这样的域名才能继续。 有人像这样设置过防火墙的 Di…

---

## [Stopper 1：NGINX 代理混合内容错误](https://meta.discourse.org/t/stopper-1-nginx-proxy-mixed-content-error/310205)

<div class="topic-metadata">

**Author:** [@rrodrigueznt](https://meta.discourse.org/u/rrodrigueznt)\
**回覆:** 5\
**Last updated:** [2024年六月12日 09:18 UTC](https://meta.discourse.org/t/stopper-1-nginx-proxy-mixed-content-error/310205 "2024-06-12T09:18:01Z")

</div>

我一直遇到混合内容错误，需要帮助解决。\\n\\n我正在使用 Nginx（运行在 AlmaLinux 9.4 上）来反向代理 Discourse（标准 Docker 版本 26.1.3，构建 b72abbb 安装），Discourse 运行在 Ubuntu 22.04 上）。如果我设置 force https，我将无法登录。情况与之前的帖子中描述的相同。\\n\\n我正在寻找一种系统的方法将这个问题分解成可管理的部分。您的指导和见解在这个过程中…

---

## [无法安装reaction插件](https://meta.discourse.org/t/cant-install-reaction-plugin/311296)

<div class="topic-metadata">

**Author:** [@forummaster](https://meta.discourse.org/u/forummaster)\
**回覆:** 20\
**Last updated:** [2024年六月11日 23:30 UTC](https://meta.discourse.org/t/cant-install-reaction-plugin/311296 "2024-06-11T23:30:04Z")

</div>

我尝试按照指南安装我的第一个插件，反应插件。我的 .yml 文件如下： ## 插件放这里 ## 详见 https://meta.discourse.org/t/19157 hooks: after\_code: - exec: …

---

## [安装最新更新后，论坛挂起](https://meta.discourse.org/t/forum-hang-after-installing-latest-updte/311497)

<div class="topic-metadata">

**Author:** [@edu360](https://meta.discourse.org/u/edu360)\
**回覆:** 1\
**Last updated:** [2024年六月11日 12:15 UTC](https://meta.discourse.org/t/forum-hang-after-installing-latest-updte/311497 "2024-06-11T12:15:26Z")

</div>

大家好， 希望你们能帮忙！我们的论坛：forum.scalerplugin.com在安装最新版：3.3.0.beta2后冻结了 在尝试操作时，我还在控制台中注意到这个错误…

---

## [Docker 更新到最新版本](https://meta.discourse.org/t/docker-update-to-latest-version/311251)

<div class="topic-metadata">

**Author:** [@forummaster](https://meta.discourse.org/u/forummaster)\
**回覆:** 9\
**Last updated:** [2024年六月10日 00:31 UTC](https://meta.discourse.org/t/docker-update-to-latest-version/311251 "2024-06-10T00:31:29Z")

</div>

我按照这里的推荐安装指南：discourse/docs/INSTALL-cloud.md 在 main · discourse/discourse · GitHub 这些是 Docker 安装所需的唯一命令： sudo apt install docker.io sudo apt i…

---

## [关于Discourse托管基础设施的指导](https://meta.discourse.org/t/guidance-on-discourse-hosting-infrastructure/311345)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**回覆:** 5\
**Last updated:** [2024年六月10日 16:26 UTC](https://meta.discourse.org/t/guidance-on-discourse-hosting-infrastructure/311345 "2024-06-10T16:26:57Z")

</div>

我在 EC2 实例上托管 Discourse，根据 CDN 的历史数据，社区规模预计每月大约有 2003 万请求。我希望得到关于数量和……的建议

---

## [Mailgun免费账号](https://meta.discourse.org/t/mailgun-free-account/311316)

<div class="topic-metadata">

**Author:** [@Micah\_hoffmann](https://meta.discourse.org/u/Micah_hoffmann)\
**回覆:** 7\
**Last updated:** [2024年六月10日 15:47 UTC](https://meta.discourse.org/t/mailgun-free-account/311316 "2024-06-10T15:47:51Z")

</div>

还在试图让 mailgun 正常工作。 你们觉得怎么样？ 还有其他便宜的 SMTP 选择吗？

---

## [升级到 3.3.0.beta3-dev 后的极限负载错误（本地部署）](https://meta.discourse.org/t/extreme-load-error-after-upgrading-to-3-3-0-beta3-dev-yesterday-on-prem/310399)

<div class="topic-metadata">

**Author:** [@Jose\_C\_Gomez](https://meta.discourse.org/u/Jose_C_Gomez)\
**回覆:** 13\
**Last updated:** [2024年六月10日 13:22 UTC](https://meta.discourse.org/t/extreme-load-error-after-upgrading-to-3-3-0-beta3-dev-yesterday-on-prem/310399 "2024-06-10T13:22:52Z")

</div>

昨天升级到了 3.3.0.beta3-dev，并且安装了 AI 插件。该插件目前仅对员工（5 人）启用。 但整个网站运行缓慢，我遇到了严重的负载错误。我似乎无法弄清楚是什么原因造成的，我的服务器负载看起来还可以。 有没有什么地方可以帮助我找出原因？

---

## [多站点安装的优缺点](https://meta.discourse.org/t/pros-and-cons-of-a-multisite-installation/90584)

<div class="topic-metadata">

**Author:** [@tophee](https://meta.discourse.org/u/tophee)\
**回覆:** 13\
**Last updated:** [2024年六月9日 18:31 UTC](https://meta.discourse.org/t/pros-and-cons-of-a-multisite-installation/90584 "2024-06-09T18:31:10Z")

</div>

考虑到一个多站点安装的discourse使用的资源大致与一个普通安装在相同流量下的资源相同，我想知道除了设置过程更复杂之外，具体有哪些缺点。 一个ob…

---

## [Discourse 和 Ipv6](https://meta.discourse.org/t/discourse-and-ipv6/311191)

<div class="topic-metadata">

**Author:** [@Genisis](https://meta.discourse.org/u/Genisis)\
**回覆:** 4\
**Last updated:** [2024年六月8日 00:55 UTC](https://meta.discourse.org/t/discourse-and-ipv6/311191 "2024-06-08T00:55:08Z")

</div>

我的主机支持 IPv6，一天后才发现，切换到 IPv6 会影响已登录用户的会话吗？直接添加 AAAA 记录安全吗？这样就会同时存在 IPv4 和 IPv6 记录。

---

## [服务器升级会影响已登录用户的会话吗](https://meta.discourse.org/t/will-server-upgrade-affect-user-logged-in-session/311190)

<div class="topic-metadata">

**Author:** [@Genisis](https://meta.discourse.org/u/Genisis)\
**回覆:** 1\
**Last updated:** [2024年六月8日 00:42 UTC](https://meta.discourse.org/t/will-server-upgrade-affect-user-logged-in-session/311190 "2024-06-08T00:42:21Z")

</div>

我的服务器托管商允许我将服务器升级到更高的计划，IP 不会改变，只是分配了更多资源，不会有任何影响，对吧？（我知道这是个愚蠢的问题）我只是想确保一下，显然我之后只需要重建一下。

---

## [更新后重建错误3.2.0](https://meta.discourse.org/t/rebuild-error-3-2-0-after-update/311156)

<div class="topic-metadata">

**Author:** [@Martin\_Ju](https://meta.discourse.org/u/Martin_Ju)\
**回覆:** 4\
**Last updated:** [2024年六月7日 20:15 UTC](https://meta.discourse.org/t/rebuild-error-3-2-0-after-update/311156 "2024-06-07T20:15:58Z")

</div>

{

---

## [突然出现备份失败](https://meta.discourse.org/t/suddenly-having-backup-failures/279439)

<div class="topic-metadata">

**Author:** [@carmiac](https://meta.discourse.org/u/carmiac)\
**回覆:** 3\
**Last updated:** [2024年六月7日 01:34 UTC](https://meta.discourse.org/t/suddenly-having-backup-failures/279439 "2024-06-07T01:34:51Z")

</div>

我在最近的更新后开始出现备份失败。通过查看日志，似乎问题是由于磁盘空间不足引起的： \[2023-09-18 20:30:34\] 异常：/var/www/discourse/lib/discourse.rb:138:inc…

---

## [容器无法构建，且已有容器在意外运行两个实例后无法启动](https://meta.discourse.org/t/container-wont-build-and-existing-container-wont-start-after-accidentally-running-two-instances/310774)

<div class="topic-metadata">

**Author:** [@Joshua1985](https://meta.discourse.org/u/Joshua1985)\
**回覆:** 3\
**Last updated:** [2024年六月7日 00:37 UTC](https://meta.discourse.org/t/container-wont-build-and-existing-container-wont-start-after-accidentally-running-two-instances/310774 "2024-06-07T00:37:19Z")

</div>

我的服务器被托管提供商重启，导致旧容器与新容器同时运行（上周升级后，保留旧容器以备回滚）。现在新的……

---

## [无法在arm上构建，assets:precompile过程中出现Zlib::BufError](https://meta.discourse.org/t/cannot-build-on-arm-zlib-buferror-during-assets-precompile/309300)

<div class="topic-metadata">

**Author:** [@fokx](https://meta.discourse.org/u/fokx)\
**回覆:** 4\
**Last updated:** [2024年六月6日 22:09 UTC](https://meta.discourse.org/t/cannot-build-on-arm-zlib-buferror-during-assets-precompile/309300 "2024-06-06T22:09:15Z")

</div>

在 Hetzner CAX21 VPS 具有 aarch64 CPU 时，我运行 ./launcher rebuild web.yml ，它中止并显示以下错误：请帮忙。 我， \[2024-05-24T14:07:05.408434 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'S…

---

## [您的 Docker 安装无法正常工作 - 设备无剩余空间 - 安全使用 ./launcher cleanup 吗？](https://meta.discourse.org/t/your-docker-installation-is-not-working-correctly-no-space-left-on-device-safe-to-use-launcher-cleanup/310500)

<div class="topic-metadata">

**Author:** [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**回覆:** 12\
**Last updated:** [2024年六月5日 21:25 UTC](https://meta.discourse.org/t/your-docker-installation-is-not-working-correctly-no-space-left-on-device-safe-to-use-launcher-cleanup/310500 "2024-06-05T21:25:01Z")

</div>

我在运行 ./launcher rebuild app 后，出现"Your Docker installation is not working correctly"的问题。 错误信息是docker：无法注册层：处理tar文件时出错（退出状态1）：写入 /usr/lib/x86\_64…

---

## [尝试设置通过电子邮件直接配送收件的邮件和新主题](https://meta.discourse.org/t/trying-to-setup-direct-delivery-of-incoming-email-and-new-topic-by-email/310674)

<div class="topic-metadata">

**Author:** [@M\_Cheseldm](https://meta.discourse.org/u/M_Cheseldm)\
**回覆:** 4\
**Last updated:** [2024年六月5日 19:34 UTC](https://meta.discourse.org/t/trying-to-setup-direct-delivery-of-incoming-email-and-new-topic-by-email/310674 "2024-06-05T19:34:05Z")

</div>

我正在尝试通过电子邮件进行回复配置并创建新邮件帖子。非常感谢您的任何帮助。我已经设置了mail-receiver容器，并且在我的自托管环境中成功启动，没有错误……

---

## [无法重新安装Discourse](https://meta.discourse.org/t/unable-to-reinstall-discourse/310691)

<div class="topic-metadata">

**Author:** [@peyrusse](https://meta.discourse.org/u/peyrusse)\
**回覆:** 1\
**Last updated:** [2024年六月5日 19:21 UTC](https://meta.discourse.org/t/unable-to-reinstall-discourse/310691 "2024-06-05T19:21:11Z")

</div>

你好， 我尝试从头重新安装Discourse，但安装失败，出现了一个我以前从未遇到过的验证首次证书的错误，然后安装失败…… 有了解决这个问题的想法吗？

---

## [端口443和80不可用](https://meta.discourse.org/t/port-443-and-80-unavailable/310527)

<div class="topic-metadata">

**Author:** [@DreamerPrime](https://meta.discourse.org/u/DreamerPrime)\
**回覆:** 2\
**Last updated:** [2024年六月5日 12:30 UTC](https://meta.discourse.org/t/port-443-and-80-unavailable/310527 "2024-06-05T12:30:57Z")

</div>

当我运行“./discourse-setup”时，它会报告以下错误（附带我的 ufw 状态） 我确信我正确解析了域名，因为我在 cmd 和 Web 工具中都能正确解析它 我的服务器是一个全新的 vps，所以我的 80 和 443 端口应该是空闲的。我通过使用 lsof 命令证明了这一点 感谢您的支持❤

---

## [Discourse突然无法访问了](https://meta.discourse.org/t/discourse-suddenly-not-accessible-anymore/158614)

<div class="topic-metadata">

**Author:** [@venizia03](https://meta.discourse.org/u/venizia03)\
**回覆:** 6\
**Last updated:** [2024年六月5日 09:22 UTC](https://meta.discourse.org/t/discourse-suddenly-not-accessible-anymore/158614 "2024-06-05T09:22:24Z")

</div>

您好！ 我的discourse实例不再工作了（我这边什么都没有做）。 在production.log中，我收到这个消息： 连接到localhost:6379的Redis失败（Errno::ENETUNREACH）订阅失败， W…

---

## [安装成功但没有收到电子邮件](https://meta.discourse.org/t/installation-success-but-no-email/310547)

<div class="topic-metadata">

**Author:** [@Micah\_hoffmann](https://meta.discourse.org/u/Micah_hoffmann)\
**回覆:** 1\
**Last updated:** [2024年六月4日 21:59 UTC](https://meta.discourse.org/t/installation-success-but-no-email/310547 "2024-06-04T21:59:12Z")

</div>

还是这样吗？设置，cloudflare DNS 指向 Digital Ocean Droplet，Mailgun 验证 DNS 通过，进入安装成功页面，注册，但没有邮件。经历了这个……排查新 Disc8的电子邮件……

---

## [Rake 注释：找不到注释的可执行文件 annotate，用于 gem annotate](https://meta.discourse.org/t/rake-annotate-cant-find-executable-annotate-for-gem-annotate/310165)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 0\
**Last updated:** [2024年五月31日 22:44 UTC](https://meta.discourse.org/t/rake-annotate-cant-find-executable-annotate-for-gem-annotate/310165 "2024-05-31T22:44:51Z")

</div>

当运行 rake annotate 时，我收到以下错误： rake annotate --trace \*\* 调用 annotate (首次) \*\* 调用 environment (首次) \*\* 执行 environment \*\* 执行 annotate /usr/local/lib/ruby/gems/3.2.0/…

[上一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=23)

[下一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=25)
