# Self-hosting

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

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

**Page:** 56

---

## [Debian 11 (ProxMox/KVM) 上安装失败](https://meta.discourse.org/t/installation-failed-on-debian-11-proxmox-kvm/251292)

<div class="topic-metadata">

**Author:** [@lukasjelinek](https://meta.discourse.org/u/lukasjelinek)\
**回覆:** 3\
**Last updated:** [2023年一月10日 17:45 UTC](https://meta.discourse.org/t/installation-failed-on-debian-11-proxmox-kvm/251292 "2023-01-10T17:45:42Z")

</div>

你好，我尝试在带有全新安装的 Debian 11 的新服务器上安装 Discourse Docker 容器（使用此指南：discourse/INSTALL-cloud.md at main · discourse/discourse · GitHub）。但它以 e... 失败

---

## [帮助：Discourse更新破坏了应用程序--无法重建](https://meta.discourse.org/t/help-discourse-update-broke-app-fails-to-rebuild/251043)

<div class="topic-metadata">

**Author:** [@littleviolette](https://meta.discourse.org/u/littleviolette)\
**回覆:** 14\
**Last updated:** [2023年一月10日 17:43 UTC](https://meta.discourse.org/t/help-discourse-update-broke-app-fails-to-rebuild/251043 "2023-01-10T17:43:53Z")

</div>

今天我尝试更新到最新版本时，遇到了以下错误： fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com 我正在一个 Di… 上运行该应用程序

---

## [SSL 未自动续期，手动续期也失败](https://meta.discourse.org/t/ssl-didnt-renew-automatically-and-i-cant-manually-renew-it/251110)

<div class="topic-metadata">

**Author:** [@mflorido](https://meta.discourse.org/u/mflorido)\
**回覆:** 0\
**Last updated:** [2023年一月9日 07:54 UTC](https://meta.discourse.org/t/ssl-didnt-renew-automatically-and-i-cant-manually-renew-it/251110 "2023-01-09T07:54:09Z")

</div>

你好， 由于某种原因，我们的 discourse 安装上的 SSL 未能续订。 我们遵循了这些指南，但没有任何效果。 我们甚至尝试将 letsencrypt 设置为默认服务器。 我们最后做的是重建 th…

---

## [我的 Discourse 没有发送邮件](https://meta.discourse.org/t/my-discourse-is-not-sending-emails/250970)

<div class="topic-metadata">

**Author:** [@xebiyen](https://meta.discourse.org/u/xebiyen)\
**回覆:** 6\
**Last updated:** [2023年一月6日 21:27 UTC](https://meta.discourse.org/t/my-discourse-is-not-sending-emails/250970 "2023-01-06T21:27:44Z")

</div>

我的论坛不向用户发送电子邮件，当我使用 ./discourse-setup 时，我根本无法使用它，出现以下信息： 正在检查您的域名 . . . 警告：无法通过主机名访问计算机的 443 端口……

---

## [Patreon登录问题、强制HTTPS和S3 CDN（三个）问题](https://meta.discourse.org/t/problems-with-patreon-login-force-https-and-s3-cdn-three-issues/223144)

<div class="topic-metadata">

**Author:** [@Martin\_Bailey](https://meta.discourse.org/u/Martin_Bailey)\
**回覆:** 12\
**Last updated:** [2023年一月6日 18:58 UTC](https://meta.discourse.org/t/problems-with-patreon-login-force-https-and-s3-cdn-three-issues/223144 "2023-01-06T18:58:06Z")

</div>

我可能需要将此分成三个单独的帖子，但它们是相关的，所以我将从一个开始。 几天前，我使用了这个教程（如何使用负载均衡器和托管数据库集群扩展 Discourse 部署……

---

## [Ruby Gems Web Push 未找到](https://meta.discourse.org/t/ruby-gems-web-push-not-found/250058)

<div class="topic-metadata">

**Author:** [@yoursql719](https://meta.discourse.org/u/yoursql719)\
**回覆:** 11\
**Last updated:** [2023年一月6日 18:14 UTC](https://meta.discourse.org/t/ruby-gems-web-push-not-found/250058 "2023-01-06T18:14:09Z")

</div>

您好， 我已将 discourse 更新到最新版本，但现在无法启动： I, \[2022-12-28T21:37:38.558813 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verb…

---

## [DiscourseConnect UniqueViolation on sync\_sso](https://meta.discourse.org/t/discourseconnect-uniqueviolation-on-sync-sso/250951)

<div class="topic-metadata">

**Author:** [@skl](https://meta.discourse.org/u/skl)\
**回覆:** 0\
**Last updated:** [2023年一月6日 16:25 UTC](https://meta.discourse.org/t/discourseconnect-uniqueviolation-on-sync-sso/250951 "2023-01-06T16:25:32Z")

</div>

我正在通过 Memberful 在论坛上使用 DiscourseConnect，并且我正在尝试追踪一个错误，这可能是一个缺陷，或者有人能就变通方法提供建议。用户名似乎是“名字 + 递增数字”……

---

## [SSL证书过期，之后出现错误404未找到](https://meta.discourse.org/t/ssl-certificate-expired-and-after-that-error-404-not-found/250923)

<div class="topic-metadata">

**Author:** [@Varhall](https://meta.discourse.org/u/Varhall)\
**回覆:** 2\
**Last updated:** [2023年一月6日 14:10 UTC](https://meta.discourse.org/t/ssl-certificate-expired-and-after-that-error-404-not-found/250923 "2023-01-06T14:10:53Z")

</div>

你好。 网站上的付费SSL证书已过期，我上传了一个新的，但它不起作用。我开始尝试按照教程设置HTTPS支持，使用Let’s Encrypt和允许……

---

## [如何从安装中完全删除Discourse聊天插件](https://meta.discourse.org/t/how-to-remove-the-discourse-chat-plugin-completely-from-an-install/250848)

<div class="topic-metadata">

**Author:** [@Victor\_Berridge](https://meta.discourse.org/u/Victor_Berridge)\
**回覆:** 4\
**Last updated:** [2023年一月5日 22:12 UTC](https://meta.discourse.org/t/how-to-remove-the-discourse-chat-plugin-completely-from-an-install/250848 "2023-01-05T22:12:30Z")

</div>

该代码在管理员设置中被禁用，但我们宁愿不浪费任何比特来加载此插件，因为我们不打算使用它。 找不到任何 Discourse 配置参数来禁用此插件的加载……

---

## [升级失败](https://meta.discourse.org/t/upgrade-failed/250754)

<div class="topic-metadata">

**Author:** [@Ingo\_Karstein](https://meta.discourse.org/u/Ingo_Karstein)\
**回覆:** 11\
**Last updated:** [2023年一月5日 12:51 UTC](https://meta.discourse.org/t/upgrade-failed/250754 "2023-01-05T12:51:06Z")

</div>

我在 Debian 11 上使用 Docker 以单个容器运行 Discourse。 我尝试使用 ./launcher rebuild app 进行更新 它以该消息失败 I, \[2023-01-04T20:53:09.920876 #1\] INFO -- : \> cd /var/www/discourse && su …

---

## [Docker有时无法连接到github.com](https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643)

<div class="topic-metadata">

**Author:** [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**回覆:** 8\
**Last updated:** [2023年一月5日 01:23 UTC](https://meta.discourse.org/t/docker-sometimes-fails-to-connect-to-github-com/250643 "2023-01-05T01:23:02Z")

</div>

在尝试通过./launcher rebuild app升级Discourse时，我遇到了以下问题： fatal: unable to access 'https://github.com/discourse/REPO.git/': Failed to connect to github.com port 443: Connection timed out 然而，…

---

## [启用 Data explorer 插件时出现 NameError (未初始化的常量 DataExplorer::Poll)](https://meta.discourse.org/t/getting-nameerror-uninitialized-constant-dataexplorer-poll-while-enabling-data-explorer-plugin/250396)

<div class="topic-metadata">

**Author:** [@mital](https://meta.discourse.org/u/mital)\
**回覆:** 2\
**Last updated:** [2023年一月4日 16:27 UTC](https://meta.discourse.org/t/getting-nameerror-uninitialized-constant-dataexplorer-poll-while-enabling-data-explorer-plugin/250396 "2023-01-04T16:27:24Z")

</div>

大家好， 在启用数据探索器插件时遇到NameError（未初始化的常量DataExplorer::Poll）。 我们正在使用bitnami discourse镜像来运行论坛，并且正在尝试安装discourse-data-explorer插件……

---

## [通过 TLS 连接 Redis 和 Postgres 服务器](https://meta.discourse.org/t/connecting-redis-and-postgres-server-over-tls/129643)

<div class="topic-metadata">

**Author:** [@Gopiraj\_Dorairaj](https://meta.discourse.org/u/Gopiraj_Dorairaj)\
**回覆:** 1\
**Last updated:** [2023年一月4日 10:40 UTC](https://meta.discourse.org/t/connecting-redis-and-postgres-server-over-tls/129643 "2023-01-04T10:40:17Z")

</div>

Discourse Web 应用与 Redis、Postgres 之间的 TLS 连接是否支持环境变量配置选项？

---

## [从 2.9.0.beta14 升级到 3.0.0.beta15 失败](https://meta.discourse.org/t/upgrade-from-2-9-0-beta14-to-3-0-0-beta15-fails/250611)

<div class="topic-metadata">

**Author:** [@Crius](https://meta.discourse.org/u/Crius)\
**回覆:** 3\
**Last updated:** [2023年一月3日 21:18 UTC](https://meta.discourse.org/t/upgrade-from-2-9-0-beta14-to-3-0-0-beta15-fails/250611 "2023-01-03T21:18:54Z")

</div>

搜索“升级失败”未找到提及此版本升级的任何主题。 我收到了通知，这是一个简单的实例，除了管理员之外没有用户活动。我使用此安装……

---

## [Bootstrap 启动失败，请帮忙 :(](https://meta.discourse.org/t/bootstrap-failed-please-help/147620)

<div class="topic-metadata">

**Author:** [@wishspinner](https://meta.discourse.org/u/wishspinner)\
**回覆:** 6\
**Last updated:** [2023年一月3日 21:24 UTC](https://meta.discourse.org/t/bootstrap-failed-please-help/147620 "2023-01-03T21:24:56Z")

</div>

尝试更新时 Discourse 启动失败，有人能建议我采取哪些步骤使我的网站恢复在线吗？我运行了 discourse-doctor，但它也无法重建。我将粘贴我的日志（thi…

---

## [使用localtunnel设置站点不起作用](https://meta.discourse.org/t/site-setup-with-localtunnel-not-working/250491)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 1\
**Last updated:** [2023年一月3日 03:24 UTC](https://meta.discourse.org/t/site-setup-with-localtunnel-not-working/250491 "2023-01-03T03:24:00Z")

</div>

你好， 不确定这是否是 Discourse 的问题，但我还是在这里问一下。 我设置了一个站点，并尝试使用 localtunnel 将其放到网上。它配置正确，但无法显示。 root@PreloadService-Forum…

---

## [升级 discourse 不起作用](https://meta.discourse.org/t/upgrade-discourse-doesnt-work/250188)

<div class="topic-metadata">

**Author:** [@albertoiNET](https://meta.discourse.org/u/albertoiNET)\
**回覆:** 4\
**Last updated:** [2023年一月2日 10:09 UTC](https://meta.discourse.org/t/upgrade-discourse-doesnt-work/250188 "2023-01-02T10:09:25Z")

</div>

我正在尝试升级 discourse，但进度条不起作用。我也尝试重置升级，但我收到了一个未找到的更新，并且“重置升级”的“确定”按钮不起作用。 在应用重置升级的确定时，出现红色但……

---

## [启动器重建的磁盘空间问题](https://meta.discourse.org/t/disk-space-issue-with-launcher-rebuild/250356)

<div class="topic-metadata">

**Author:** [@Andro](https://meta.discourse.org/u/Andro)\
**回覆:** 2\
**Last updated:** [2023年一月2日 10:06 UTC](https://meta.discourse.org/t/disk-space-issue-with-launcher-rebuild/250356 "2023-01-02T10:06:02Z")

</div>

我有 7.5GB 的可用磁盘空间。我需要重建应用程序容器。运行 launcher rebuild app 时，它抱怨需要 5.0GB 的可用磁盘空间。我已经尝试了所有我想到的可以释放空间的 docker 命令……

---

## [LetsEncrypt 验证 .well-known/acme-challenge 时出错](https://meta.discourse.org/t/error-at-letsencrypt-validation-well-known-acme-challenge/250325)

<div class="topic-metadata">

**Author:** [@HaniGH](https://meta.discourse.org/u/HaniGH)\
**回覆:** 6\
**Last updated:** [2023年一月1日 23:11 UTC](https://meta.discourse.org/t/error-at-letsencrypt-validation-well-known-acme-challenge/250325 "2023-01-01T23:11:06Z")

</div>

您好， 我有一个 discourse 论坛安装在带有 mydomain.com 实时域的服务器上 我已将 mydomain.com 域添加到具有 cPanel 的服务器上，以便使用电子邮件服务 我通过……连接了该域

---

## [升级后SSL混合](https://meta.discourse.org/t/mixed-ssl-since-upgrade/250193)

<div class="topic-metadata">

**Author:** [@Andrew\_Bond](https://meta.discourse.org/u/Andrew_Bond)\
**回覆:** 13\
**Last updated:** [2022年十二月30日 22:08 UTC](https://meta.discourse.org/t/mixed-ssl-since-upgrade/250193 "2022-12-30T22:08:39Z")

</div>

我有一个（曾经有过！）默认工作的反向代理安装。 一切都按设计由HTTPS提供服务。 我跳过了几个版本，并经历了死亡升级，屏幕保持空白，正如报告的那样……

---

## [重建失败，db:migrate w/PG12](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287)

<div class="topic-metadata">

**Author:** [@Wingtip](https://meta.discourse.org/u/Wingtip)\
**回覆:** 18\
**Last updated:** [2022年十二月31日 16:55 UTC](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-w-pg12/224287 "2022-12-31T16:55:22Z")

</div>

运行 “./launcher rebuild app” 在 db:migrate 时失败。请注意，我们正在使用 PostgreSQL v12。 这毁了我们的论坛。Docker 容器重新启动了，但论坛没有。幸运的是，我在升级前拍摄了 VM 快照，重新…

---

## [突然引导失败了](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**回覆:** 25\
**Last updated:** [2022年十二月30日 19:29 UTC](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106 "2022-12-30T19:29:45Z")

</div>

我没有有意识地更改任何内容，但今天，在我刚 git pull 并尝试引导 web\_only.yml 时，在引导过程开始约 90 秒后出现了错误。我只粘贴了最后几行…

---

## [Docker 错误在 discourse 安装过程中](https://meta.discourse.org/t/docker-error-while-discourse-installation/199469)

<div class="topic-metadata">

**Author:** [@UnicornX](https://meta.discourse.org/u/UnicornX)\
**回覆:** 6\
**Last updated:** [2022年十二月29日 09:02 UTC](https://meta.discourse.org/t/docker-error-while-discourse-installation/199469 "2022-12-29T09:02:21Z")

</div>

有人能帮帮我吗？我试了好几次，但一直收到这个错误。 我甚至尝试先安装docker，然后按照标准的安装方法进行，但还是无法继续……

---

## [Jobs::PeriodicalUpdates 是导致高 CPU（超过 100%）的原因](https://meta.discourse.org/t/jobs-periodicalupdates-is-the-cause-of-high-cpu-over-100/214291)

<div class="topic-metadata">

**Author:** [@hokod](https://meta.discourse.org/u/hokod)\
**回覆:** 12\
**Last updated:** [2022年十二月28日 15:29 UTC](https://meta.discourse.org/t/jobs-periodicalupdates-is-the-cause-of-high-cpu-over-100/214291 "2022-12-28T15:29:57Z")

</div>

Jobs::PeriodicalUpdates 是导致高 CPU（超过 100%）的原因 当我们检查：sidekiq/scheduler/history 时 我看到 Jobs::PeriodicalUpdates 耗时 79 秒。导致 CPU 升高，访问网站的用户无法访问。 D……

---

## [在 Discourse Docker 镜像上挂载新磁盘](https://meta.discourse.org/t/mounting-a-new-disk-on-the-discourse-docker-image/249834)

<div class="topic-metadata">

**Author:** [@sukotto257](https://meta.discourse.org/u/sukotto257)\
**回覆:** 1\
**Last updated:** [2022年十二月25日 11:36 UTC](https://meta.discourse.org/t/mounting-a-new-disk-on-the-discourse-docker-image/249834 "2022-12-25T11:36:26Z")

</div>

我的 Discourse 实例上的图片空间快用完了，想通过添加一个额外的（更便宜的）容量更大的驱动器来解决这个问题。 它运行在一个 Azure Ubuntu VM 上的 Docker 镜像中。我有足够的知识……

---

## [无法连接到docker](https://meta.discourse.org/t/failed-to-connect-to-docker/248991)

<div class="topic-metadata">

**Author:** [@DiscourseUser](https://meta.discourse.org/u/DiscourseUser)\
**回覆:** 18\
**Last updated:** [2022年十二月21日 00:21 UTC](https://meta.discourse.org/t/failed-to-connect-to-docker/248991 "2022-12-21T00:21:54Z")

</div>

因此，我没有在 DigitalOcean 上执行一键式应用程序，而是遵循了本指南：discourse/INSTALL-cloud.md at main · discourse/discourse · GitHub 我遇到了以下错误： 有人知道该怎么办吗？

---

## [CloudFlare 攻击模式自动化](https://meta.discourse.org/t/cloudflare-under-attack-mode-automation/249274)

<div class="topic-metadata">

**Author:** [@syandriz](https://meta.discourse.org/u/syandriz)\
**回覆:** 4\
**Last updated:** [2022年十二月18日 15:35 UTC](https://meta.discourse.org/t/cloudflare-under-attack-mode-automation/249274 "2022-12-18T15:35:30Z")

</div>

你好 discourse… 几天前我的小型服务器遭到了 ddos 攻击。 即使它可以被 CF 代理，但仍有一些攻击可以穿透服务器。 直到服务器的 CPU 读取达到 60% 到 80%… 并且它可以被 p…

---

## [同一VPS上的两个Discourse社区](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223)

<div class="topic-metadata">

**Author:** [@Clement2005](https://meta.discourse.org/u/Clement2005)\
**回覆:** 5\
**Last updated:** [2022年十二月18日 13:20 UTC](https://meta.discourse.org/t/two-discourse-communities-on-the-same-vps/249223 "2022-12-18T13:20:31Z")

</div>

你好！ 如果我想在同一台VPS上运行两个独立的社区，最好的方法是什么？ 非常感谢您的任何建议！ 干杯 :grinning:

---

## [Ubuntu 22.04 LTS 首次安装后，http/https 无法接受连接](https://meta.discourse.org/t/no-connection-accepted-on-http-https-after-fresh-installation-on-ubuntu-22-04-lts/248731)

<div class="topic-metadata">

**Author:** [@supernaturally](https://meta.discourse.org/u/supernaturally)\
**回覆:** 5\
**Last updated:** [2022年十二月16日 23:27 UTC](https://meta.discourse.org/t/no-connection-accepted-on-http-https-after-fresh-installation-on-ubuntu-22-04-lts/248731 "2022-12-16T23:27:50Z")

</div>

这不是我第一次安装 Discourse，但在使用 Ubuntu 22.04 LTS 在 Digital Ocean 虚拟机（1GB NVMe SSD Premium AMD）上进行标准安装的三次尝试后，我还是被难住了。我浏览了指南……

---

## [无法检测到域名](https://meta.discourse.org/t/cant-detect-domain/248960)

<div class="topic-metadata">

**Author:** [@Dávid\_K](https://meta.discourse.org/u/D%C3%A1vid_K)\
**回覆:** 5\
**Last updated:** [2022年十二月16日 19:18 UTC](https://meta.discourse.org/t/cant-detect-domain/248960 "2022-12-16T19:18:12Z")

</div>

你好！我试图在我的树莓派 4B 2GB 内存上安装 Discourse，但没有成功。 我收到的错误是： 警告：主机名 subdomain.mydomain.com 似乎无法访问计算机的 443 端口。 ……

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

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