# Self-hosting

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

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

**Page:** 27

---

## [在全新Debian 12安装中安装失败](https://meta.discourse.org/t/install-fails-on-fresh-debian-12-installation/299711)

<div class="topic-metadata">

**Author:** [@cbc404](https://meta.discourse.org/u/cbc404)\
**回覆:** 13\
**Last updated:** [2024年五月16日 17:48 UTC](https://meta.discourse.org/t/install-fails-on-fresh-debian-12-installation/299711 "2024-05-16T17:48:06Z")

</div>

你好， 这是在新安装的（或至少未使用过的）Debian 12上尝试安装的过程中。Python已经升级，但据我所知，其他没有动过。 以下是我遇到的错误……

---

## [Docker 升级移除 AUFS 存储驱动，导致 Discourse 无法运行](https://meta.discourse.org/t/docker-upgrade-removed-aufs-storage-driver-killed-discourse/308181)

<div class="topic-metadata">

**Author:** [@rcauvin](https://meta.discourse.org/u/rcauvin)\
**回覆:** 5\
**Last updated:** [2024年五月16日 16:52 UTC](https://meta.discourse.org/t/docker-upgrade-removed-aufs-storage-driver-killed-discourse/308181 "2024-05-16T16:52:01Z")

</div>

我在Ubuntu 20.04.6 LTS上运行一个Discourse论坛安装。Docker镜像使用AUFS作为存储。 今天，我通过sudo apt upgrade安装了更新。现在，Discourse论坛无法访问，似乎是…

---

## [设定一个自托管安装](https://meta.discourse.org/t/setting-up-a-self-hosted-install/308286)

<div class="topic-metadata">

**Author:** [@Anthony\_Horner](https://meta.discourse.org/u/Anthony_Horner)\
**回覆:** 2\
**Last updated:** [2024年五月16日 16:14 UTC](https://meta.discourse.org/t/setting-up-a-self-hosted-install/308286 "2024-05-16T16:14:57Z")

</div>

建立自托管 Discourse 社区的要求有哪些？

---

## [重建失败（版本号字符串格式错误）](https://meta.discourse.org/t/rebuild-fails-malformed-version-number-string/308146)

<div class="topic-metadata">

**Author:** [@Brandon\_Martus](https://meta.discourse.org/u/Brandon_Martus)\
**回覆:** 4\
**Last updated:** [2024年五月16日 14:30 UTC](https://meta.discourse.org/t/rebuild-fails-malformed-version-number-string/308146 "2024-05-16T14:30:49Z")

</div>

我正在尝试重建较旧的安装（3.1.0.beta5）以更新插件，而不升级Discourse。在containers/app.yaml中，我们将版本锁定到特定的git哈希。这在过去对我们来说有效，但今天……

---

## [插件和主题组件通过了重建，但无法使用？](https://meta.discourse.org/t/plugins-theme-components-passed-rebuild-but-unavailable/308251)

<div class="topic-metadata">

**Author:** [@seefood](https://meta.discourse.org/u/seefood)\
**回覆:** 4\
**Last updated:** [2024年五月16日 12:23 UTC](https://meta.discourse.org/t/plugins-theme-components-passed-rebuild-but-unavailable/308251 "2024-05-16T12:23:52Z")

</div>

遵循文档，我在 yaml 中添加了一些 Theme 组件和插件： hooks: after\_code: - exec: cd: $home/plugins cmd: - git clone https://github.com/discourse/docker\_manager.git …

---

## [Cloudflare Tunnel 无法正常工作](https://meta.discourse.org/t/cloudflare-tunnel-not-working/308195)

<div class="topic-metadata">

**Author:** [@AWilliams](https://meta.discourse.org/u/AWilliams)\
**回覆:** 1\
**Last updated:** [2024年五月16日 02:13 UTC](https://meta.discourse.org/t/cloudflare-tunnel-not-working/308195 "2024-05-16T02:13:46Z")

</div>

我按照这里的教程操作：在使用 Cloudflare Tunnel 的住宅互联网环境中安装 Discourse 这是我访问该网站时看到的内容。 这是我的 Cloudflare Tunnel。

---

## [论坛卡在‘加载中’](https://meta.discourse.org/t/forum-stuck-on-loading/308075)

<div class="topic-metadata">

**Author:** [@Master](https://meta.discourse.org/u/Master)\
**回覆:** 3\
**Last updated:** [2024年五月15日 15:20 UTC](https://meta.discourse.org/t/forum-stuck-on-loading/308075 "2024-05-15T15:20:44Z")

</div>

您好，安装官方AI插件后，论坛仍然显示“加载中”，我已将其删除，但仍在加载，不知道发生了什么。

---

## [通过FTP的备份请求](https://meta.discourse.org/t/backup-request-via-ftp/307905)

<div class="topic-metadata">

**Author:** [@Master](https://meta.discourse.org/u/Master)\
**回覆:** 5\
**Last updated:** [2024年五月15日 14:26 UTC](https://meta.discourse.org/t/backup-request-via-ftp/307905 "2024-05-15T14:26:59Z")

</div>

目前系统只允许在 AWS S3 进行备份，所以我想知道这是否是与 Amazon 的独家协议所致，还是他们计划提供其他服务，例如通过 FTP 以便我可以自动…

---

## [重建论坛（恢复备份有效，重建无效）](https://meta.discourse.org/t/rebuilding-forum-restoring-back-up-works-rebuilding-does-not/308076)

<div class="topic-metadata">

**Author:** [@bseed](https://meta.discourse.org/u/bseed)\
**回覆:** 4\
**Last updated:** [2024年五月15日 13:34 UTC](https://meta.discourse.org/t/rebuilding-forum-restoring-back-up-works-rebuilding-does-not/308076 "2024-05-15T13:34:55Z")

</div>

我通过 Digital Ocean 托管论坛，距离我通过终端重建实例已经大约一年了。 ./launcher rebuild app 我最初是按照这里的步骤操作的（在自托管站点上安装插件…

---

## [如何阻止Discourse抓取/嵌入链接](https://meta.discourse.org/t/how-to-stop-discourse-from-crawling-embedding-links/307951)

<div class="topic-metadata">

**Author:** [@Genisis](https://meta.discourse.org/u/Genisis)\
**回覆:** 4\
**Last updated:** [2024年五月15日 11:29 UTC](https://meta.discourse.org/t/how-to-stop-discourse-from-crawling-embedding-links/307951 "2024-05-15T11:29:41Z")

</div>

我查了一下如何阻止 discourse 爬取/嵌入链接以防泄露服务器IP，但每个帖子都说要在反向代理后添加 nginx，我不够聪明去做这个，我一小时前把它设置在 Cloudflare 隧道后面了……

---

## [升级话题从3.3.0 beta1到beta2在管理面板失败](https://meta.discourse.org/t/upgrade-discourse-fails-from-3-3-0-beta1-to-beta2-via-admin-panel/308038)

<div class="topic-metadata">

**Author:** [@RBoy](https://meta.discourse.org/u/RBoy)\
**回覆:** 3\
**Last updated:** [2024年五月15日 10:25 UTC](https://meta.discourse.org/t/upgrade-discourse-fails-from-3-3-0-beta1-to-beta2-via-admin-panel/308038 "2024-05-15T10:25:48Z")

</div>

我试图从管理员控制面板将discourse升级到最新测试通过版本，从3.3.0开始，但出现了以下错误： \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \*\*\* 请耐心……

---

## [我们想添加插件“discourse chat integration”，但显示“插件不兼容”](https://meta.discourse.org/t/we-would-like-to-add-the-plugin-discourse-chat-integration-but-incompatible-plugin-is-returned/303534)

<div class="topic-metadata">

**Author:** [@pama](https://meta.discourse.org/u/pama)\
**回覆:** 5\
**Last updated:** [2024年五月15日 09:21 UTC](https://meta.discourse.org/t/we-would-like-to-add-the-plugin-discourse-chat-integration-but-incompatible-plugin-is-returned/303534 "2024-05-15T09:21:15Z")

</div>

我们想添加 Discourse Chat Integration 的插件。添加到 app.yml 后显示不兼容插件。我们的版本是 v3.3.0.beta1。是否有地方可以检查 Discou＆hellip; 的兼容版本

---

## [卸载插件会在数据库中留下任何残余的垃圾文件吗？](https://meta.discourse.org/t/will-uninstalling-a-plugin-leave-any-residual-debris-files-in-the-database/308003)

<div class="topic-metadata">

**Author:** [@Truest](https://meta.discourse.org/u/Truest)\
**回覆:** 5\
**Last updated:** [2024年五月15日 06:37 UTC](https://meta.discourse.org/t/will-uninstalling-a-plugin-leave-any-residual-debris-files-in-the-database/308003 "2024-05-15T06:37:17Z")

</div>

编辑 app.yml 文件： 导航到我的 Discourse 安装目录，通常是 /var/discourse。 打开 containers/app.yml 文件。 删除引用你想卸载的插件的行。这些行通常……

---

## [帮助理解电子邮件设置](https://meta.discourse.org/t/help-understanding-email-setup/307339)

<div class="topic-metadata">

**Author:** [@forummaster](https://meta.discourse.org/u/forummaster)\
**回覆:** 18\
**Last updated:** [2024年五月15日 00:24 UTC](https://meta.discourse.org/t/help-understanding-email-setup/307339 "2024-05-15T00:24:12Z")

</div>

我将会在VPS上建立一个Discourse论坛，并希望设置通知、密码重置邮件等。 管理员电子邮箱地址需要与discourse论坛域名相同吗？等等…

---

## [我的自托管没有其他网站那么快](https://meta.discourse.org/t/my-self-host-isnt-as-fast-as-other-sites/307717)

<div class="topic-metadata">

**Author:** [@Genisis](https://meta.discourse.org/u/Genisis)\
**回覆:** 11\
**Last updated:** [2024年五月14日 08:59 UTC](https://meta.discourse.org/t/my-self-host-isnt-as-fast-as-other-sites/307717 "2024-05-14T08:59:02Z")

</div>

我的自托管不如其他网站“快”。我注意到其他网站几乎是即时的/非常快的。我意识到未登录时我的网站更快。它一点也不慢到无法使用，但以我的配置来看，我认为它应该会更快。 12 个核心…

---

## [Discourse 更新错误](https://meta.discourse.org/t/update-discourse-error/307782)

<div class="topic-metadata">

**Author:** [@MAR](https://meta.discourse.org/u/MAR)\
**回覆:** 4\
**Last updated:** [2024年五月14日 08:44 UTC](https://meta.discourse.org/t/update-discourse-error/307782 "2024-05-14T08:44:34Z")

</div>

你好， 我的客户在尝试更新后收到此社区的此错误，并且无法重新进入管理面板或 Discourse 社区： " 哎呀 为该讨论论坛提供支持的软件遇到…

---

## [Discourse 端口](https://meta.discourse.org/t/discourse-port/307836)

<div class="topic-metadata">

**Author:** [@AWilliams](https://meta.discourse.org/u/AWilliams)\
**回覆:** 4\
**Last updated:** [2024年五月14日 08:43 UTC](https://meta.discourse.org/t/discourse-port/307836 "2024-05-14T08:43:06Z")

</div>

我购买了一台服务器，他们使用共享IP，所以每个人都有20个端口，但没有80或443端口。我该如何这样安装Discourse？我对服务器有完全的root SSH访问权限。

---

## [Discourse未在域名上加载](https://meta.discourse.org/t/discource-is-not-loading-on-domain/307856)

<div class="topic-metadata">

**Author:** [@ronak01](https://meta.discourse.org/u/ronak01)\
**回覆:** 1\
**Last updated:** [2024年五月14日 08:41 UTC](https://meta.discourse.org/t/discource-is-not-loading-on-domain/307856 "2024-05-14T08:41:55Z")

</div>

我在我的ubuntu服务器上成功安装了Discourse。之后，当我访问该URL时，应用程序没有加载，也没有显示任何错误。可能是什么问题？我该如何调试？

---

## [彩色加载点，因为资产未上传](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701)

<div class="topic-metadata">

**Author:** [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)\
**回覆:** 17\
**Last updated:** [2024年五月13日 10:37 UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701 "2024-05-13T10:37:28Z")

</div>

勾选安全模式的所有框也没有帮助。 我只保留了 Docker 管理器的所有 app.yml 插件。 关于如何排查这个问题，有什么建议吗？ 我在重建应用程序日志中也没有看到明显的问题。

---

## [在从备份还原时遇到错误](https://meta.discourse.org/t/encountered-an-error-while-restoring-from-a-backup/307400)

<div class="topic-metadata">

**Author:** [@Alienazk](https://meta.discourse.org/u/Alienazk)\
**回覆:** 11\
**Last updated:** [2024年五月12日 20:06 UTC](https://meta.discourse.org/t/encountered-an-error-while-restoring-from-a-backup/307400 "2024-05-12T20:06:37Z")

</div>

大家好，我在恢复过程中遇到失败，需要帮助。 我刚刚安装了Discourse并尝试从备份中恢复。 不幸的是，在恢复过程中出现了错误。 输出如下；

---

## [iPhone 超时](https://meta.discourse.org/t/iphone-timeout/307650)

<div class="topic-metadata">

**Author:** [@pibodi](https://meta.discourse.org/u/pibodi)\
**回覆:** 4\
**Last updated:** [2024年五月11日 19:22 UTC](https://meta.discourse.org/t/iphone-timeout/307650 "2024-05-11T19:22:35Z")

</div>

你好！我已成功安装Discourse（按照建议，使用默认的docker安装），我使用的是Debian 12，2核，4GB内存，80GB磁盘空间：https://oreillefine.art 问题是，我可以从我的笔记本电脑一直……

---

## [无法安装该软件包](https://meta.discourse.org/t/cant-install-the-bundle/307625)

<div class="topic-metadata">

**Author:** [@KingEZFLOW](https://meta.discourse.org/u/KingEZFLOW)\
**回覆:** 0\
**Last updated:** [2024年五月11日 06:07 UTC](https://meta.discourse.org/t/cant-install-the-bundle/307625 "2024-05-11T06:07:09Z")

</div>

尝试在我的 ubuntu 服务器上安装 Discourse。一直出现这个错误。 Bundler::HTTPError：由于底层错误，无法从 https://rubygems.org/ 下载 gem orbidden 403 (https://rubygems.org/...

---

## [设置电子邮件时出现问题：Job异常：Net::SMTPAuthenticationError](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**回覆:** 1\
**Last updated:** [2024年五月11日 04:40 UTC](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541 "2024-05-11T04:40:11Z")

</div>

显然，这与我的电子邮件配置有关。我正在学习设置我自己的Discourse实例，目前作为Digital Ocean的一个Droplet。我的实例已经设置好，并且可以在jordanviolet.dev访问……

---

## [在 aaPanel Ubuntu 22.04 实例上安装 Discourse](https://meta.discourse.org/t/installing-discourse-on-aapanel-ubuntu-22-04-instance/307486)

<div class="topic-metadata">

**Author:** [@ausavia1](https://meta.discourse.org/u/ausavia1)\
**回覆:** 2\
**Last updated:** [2024年五月10日 23:11 UTC](https://meta.discourse.org/t/installing-discourse-on-aapanel-ubuntu-22-04-instance/307486 "2024-05-10T23:11:24Z")

</div>

你好！我只是想知道如何在我的实例上安装 Discourse，因为它无法正确加载。

---

## [邮件接收器设置](https://meta.discourse.org/t/mail-receiver-setup/307590)

<div class="topic-metadata">

**Author:** [@Architect](https://meta.discourse.org/u/Architect)\
**回覆:** 1\
**Last updated:** [2024年五月10日 22:51 UTC](https://meta.discourse.org/t/mail-receiver-setup/307590 "2024-05-10T22:51:27Z")

</div>

遇到邮件接收器无法重建的问题，日志： :/var/discourse# /var/discourse/launcher rebuild mail-receiver 检测到 x86\_64 架构。 确保 launcher 是最新的 Launcher 已是最新 停止旧容器 + …

---

## [迁移服务器后Discourse出现故障](https://meta.discourse.org/t/discourse-broken-after-moving-servers/307476)

<div class="topic-metadata">

**Author:** [@Ryan\_Hyer](https://meta.discourse.org/u/Ryan_Hyer)\
**回覆:** 15\
**Last updated:** [2024年五月10日 20:13 UTC](https://meta.discourse.org/t/discourse-broken-after-moving-servers/307476 "2024-05-10T20:13:39Z")

</div>

我们的Discourse实例已在Digital Ocean托管了多年，以至于由于仍在使用Ubuntu 18而出现了一些问题。因此，我创建了一个新的Droplet，进行全新安装的Discourse，然后进行了引导……

---

## [Http 显示 nginx 页面](https://meta.discourse.org/t/http-shows-nginx-page/307542)

<div class="topic-metadata">

**Author:** [@pibodi](https://meta.discourse.org/u/pibodi)\
**回覆:** 6\
**Last updated:** [2024年五月10日 13:14 UTC](https://meta.discourse.org/t/http-shows-nginx-page/307542 "2024-05-10T13:14:41Z")

</div>

你好！我已经从零开始完成了安装。 这有点奇怪，因为当我尝试 ./discourse-setup 时，我得到了 你的 Discourse 的主机名？ \[oreillefine.art\]: 正在检查你的域名 . . . 警告：端口 443 的……

---

## [重建在引导过程中失败](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269)

<div class="topic-metadata">

**Author:** [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**回覆:** 2\
**Last updated:** [2024年五月9日 04:27 UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269 "2024-05-09T04:27:21Z")

</div>

我的Discourse重建失败，错误如下： FAILED -------------------- Pups::ExecError：cd /var/www/discourse && sudo -H -E -u discourse bash -c ' set -o errexit if \[ $(git rev-parse --is-shallow-repositorB;

---

## [AWS S3 和创建后第二天出现的超过$1000美元的账单](https://meta.discourse.org/t/aws-s3-and-the-invoice-of-more-than-1000-dollars-on-the-second-day-after-being-created/306679)

<div class="topic-metadata">

**Author:** [@Rhod](https://meta.discourse.org/u/Rhod)\
**回覆:** 5\
**Last updated:** [2024年五月7日 15:53 UTC](https://meta.discourse.org/t/aws-s3-and-the-invoice-of-more-than-1000-dollars-on-the-second-day-after-being-created/306679 "2024-05-07T15:53:53Z")

</div>

来自AWS S3用户的帖子，在第二天收到了一张1000美元的发票，但内容为空。 显然问题主要在于桶调用，这会产生费用，但问题在于该用户创建了…

---

## [安装成功后网站拒绝连接（可能是SSL问题）](https://meta.discourse.org/t/website-refused-to-connect-after-installing-successfully-may-ssl-problems/307102)

<div class="topic-metadata">

**Author:** [@0x22f1a6543a0](https://meta.discourse.org/u/0x22f1a6543a0)\
**回覆:** 1\
**Last updated:** [2024年五月7日 15:24 UTC](https://meta.discourse.org/t/website-refused-to-connect-after-installing-successfully-may-ssl-problems/307102 "2024-05-07T15:24:53Z")

</div>

我的discourse安装成功，但无法访问站点，原因：被拒绝连接。我使用命令： ./launcher logs 查看错误日志。我百分之百确信是SSL出了问题。那么我该如何解决……

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

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