# Self-hosting

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

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

**Page:** 23

---

## [我在安装过程中遇到的问题是“检测到未知架构”](https://meta.discourse.org/t/the-problem-i-encountered-during-the-installation-process-was-unknown-arch-detected/315777)

<div class="topic-metadata">

**Author:** [@OrStudio](https://meta.discourse.org/u/OrStudio)\
**回覆:** 4\
**Last updated:** [2024年七月11日 09:53 UTC](https://meta.discourse.org/t/the-problem-i-encountered-during-the-installation-process-was-unknown-arch-detected/315777 "2024-07-11T09:53:08Z")

</div>

安装过程中遇到了“ERROR: unknown arch detected.”的问题。我在网上找了一个多月，但还没有找到类似的问题。希望有人能帮我解决这个问题。这是一个非常棘手的问题。

---

## [引导程序（安装）期间发生错误](https://meta.discourse.org/t/error-during-bootstrap-install/315826)

<div class="topic-metadata">

**Author:** [@Matko\_Gregorović](https://meta.discourse.org/u/Matko_Gregorovi%C4%87)\
**回覆:** 4\
**Last updated:** [2024年七月11日 01:07 UTC](https://meta.discourse.org/t/error-during-bootstrap-install/315826 "2024-07-11T01:07:46Z")

</div>

启动过程中随机关机。我正在进行启动，过了一会儿它就停止了，直接关机，没有任何错误。我尝试使用 launcher start app，但它说它已经在运行了。而且我根本无法访问该网站，它显示“Web server is down.”。请帮忙。

---

## [我在一个大型帖子重建工作中的旅程](https://meta.discourse.org/t/my-journey-into-a-massive-posts-rebake-job/84816)

<div class="topic-metadata">

**Author:** [@bartv](https://meta.discourse.org/u/bartv)\
**回覆:** 35\
**Last updated:** [2024年七月10日 23:56 UTC](https://meta.discourse.org/t/my-journey-into-a-massive-posts-rebake-job/84816 "2024-07-10T23:56:52Z")

</div>

I’m continuing this conversation from ‘Rebuild HTML for entire topic’ as my experiments are going into quite another direction and I thought there might be value in sharing my thoughts and results as I go along. My situ…

---

## [如何判断是通过网页还是控制台进行升级？](https://meta.discourse.org/t/how-to-tell-whether-to-upgrade-via-web-or-console/315492)

<div class="topic-metadata">

**Author:** [@sadie](https://meta.discourse.org/u/sadie)\
**回覆:** 9\
**Last updated:** [2024年七月10日 17:05 UTC](https://meta.discourse.org/t/how-to-tell-whether-to-upgrade-via-web-or-console/315492 "2024-07-10T17:05:57Z")

</div>

我已经搜索过，并找到了这个说明 其中提到每隔几周更新一次，每隔几个月你应该通过以下方式更新 如果您自托管 Discourse，则偶尔需要通过命令行运行手动更新，以获取最新的安全版本和最新的库。这些更新不会在 admin/update 中被获取，这就是为什么您偶尔需要执行此额外步骤的原因。 还有一些其他主题讨论了 admin-\>update 与 ssh/console 更新的区别，但没有一个清楚地说明哪些更新不能在浏览器中完…

---

## [由于Cloudflare的自动压缩，管理员无法访问](https://meta.discourse.org/t/admin-not-accessible-because-of-auto-minify-for-cloudflare/315594)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**回覆:** 5\
**Last updated:** [2024年七月10日 14:34 UTC](https://meta.discourse.org/t/admin-not-accessible-because-of-auto-minify-for-cloudflare/315594 "2024-07-10T14:34:12Z")

</div>

您好， 我正在尝试按照此页面开发 Discourse 插件：https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515，并且我已经将 plugins 文件夹上传到了服务器。之后，我无法访问 Discourse 的管理页面。 当我在浏览器控制台中查看时，我看到了以下错误： 错误：没有名为 admin 的路由 …

---

## [从最新稳定版降级到3.2.0](https://meta.discourse.org/t/downgrade-from-latest-stable-to-3-2-0/315728)

<div class="topic-metadata">

**Author:** [@Celso\_Teixeira](https://meta.discourse.org/u/Celso_Teixeira)\
**回覆:** 4\
**Last updated:** [2024年七月10日 12:43 UTC](https://meta.discourse.org/t/downgrade-from-latest-stable-to-3-2-0/315728 "2024-07-10T12:43:15Z")

</div>

我在启用脚本标签创建主题时收到 403 错误。此问题发生在运行 Discourse 版本 3.2.0 的环境中。 我尝试在另一个使用最新稳定版 Discourse (3.2.3) 的环境中重现相同的错误，但在那里没有出现此问题。我已成功在 Discourse 3.2.3 中创建了帖子。 为了进一步调查，我决定从 3.2.3 版本降级到 3.2.0 以重现错误，但在降级过程中遇到了错误。请参阅附件图片了解详情。 谢谢

---

## [Launcher重新构建应用，从GitHub拉取最新的discourse](https://meta.discourse.org/t/launcher-rebuild-app-pull-the-latest-discourse-from-github/315566)

<div class="topic-metadata">

**Author:** [@Celso\_Teixeira](https://meta.discourse.org/u/Celso_Teixeira)\
**回覆:** 11\
**Last updated:** [2024年七月10日 12:40 UTC](https://meta.discourse.org/t/launcher-rebuild-app-pull-the-latest-discourse-from-github/315566 "2024-07-10T12:40:18Z")

</div>

您好， 我已经安装并运行了 Discourse。每次重建应用程序时，它都会拉取 launcher 存储库、discourse/base Docker 镜像和 Discourse 存储库。 我想限制此行为，以便除非传递了特定参数，否则重建不会自动检查和拉取更新。 有人做过类似的事情吗？

---

## [Cloudflare R2中的上传未添加到备份：无法下载\*\*\*\*\*\*\*，因 Aws::S3::Errors::Http501Error](https://meta.discourse.org/t/uploads-in-cloudflare-r2-are-not-added-to-the-backup-failed-to-download-because-aws-http501error/311605)

<div class="topic-metadata">

**Author:** [@kuaza](https://meta.discourse.org/u/kuaza)\
**回覆:** 8\
**Last updated:** [2024年七月10日 11:56 UTC](https://meta.discourse.org/t/uploads-in-cloudflare-r2-are-not-added-to-the-backup-failed-to-download-because-aws-http501error/311605 "2024-07-10T11:56:15Z")

</div>

我正在尝试一些 Cloudflare 的功能，并考虑将来弃用 R2。因此，在检查备份时，我发现安装未包含在内，并且出现了错误。手动进行备份时，事务日志中会出现相同的错误。本地的图片和文件已备份，但 Cloudflare R2 中的图片未备份。 示例错误代码： Failed to download original/1X/4b8754c367e54bc5271454a09b8bd4c1a8b882d5.png because Aws:…

---

## [升级 Docker OS (bullseye) 的正确方法](https://meta.discourse.org/t/proper-way-to-upgrade-docker-os-bullseye/314640)

<div class="topic-metadata">

**Author:** [@bpittman13](https://meta.discourse.org/u/bpittman13)\
**回覆:** 7\
**Last updated:** [2024年七月9日 14:17 UTC](https://meta.discourse.org/t/proper-way-to-upgrade-docker-os-bullseye/314640 "2024-07-09T14:17:24Z")

</div>

我需要升级当前的 Debian(bullseye) 操作系统，以更新被标记的软件包。是否有相关的文档或步骤？ 谢谢

---

## [在容器重建期间，应用程序.yml中的URL更改后，上传路径应更新](https://meta.discourse.org/t/uploads-path-should-update-when-url-changes-in-app-yml-during-container-rebuild/315364)

<div class="topic-metadata">

**Author:** [@tumbleweed](https://meta.discourse.org/u/tumbleweed)\
**回覆:** 2\
**Last updated:** [2024年七月9日 06:21 UTC](https://meta.discourse.org/t/uploads-path-should-update-when-url-changes-in-app-yml-during-container-rebuild/315364 "2024-07-09T06:21:03Z")

</div>

当 Discourse 从备份恢复时，它会自动更新所有上传内容的路径以匹配当前站点 URL。但是，如果站点的 DNS 设置发生更改，修改了 app.yml 并重建了容器，则不会发生此更新。这会导致重建后所有上传内容都无法访问。我发现的最简单的解决方法是备份和恢复站点，但此检查是否应包含在容器重建过程中？

---

## [Docker更新导致安装失败（DigitalOcean）](https://meta.discourse.org/t/docker-update-broke-install-digitalocean/315454)

<div class="topic-metadata">

**Author:** [@waffleslop](https://meta.discourse.org/u/waffleslop)\
**回覆:** 1\
**Last updated:** [2024年七月9日 05:32 UTC](https://meta.discourse.org/t/docker-update-broke-install-digitalocean/315454 "2024-07-09T05:32:42Z")

</div>

今天我进入了GUI管理面板，看到我的Discourse安装需要更新Docker。我点击了“更新”按钮，它似乎像往常一样完成了安装。然后我还有其他Discourse项目需要更新（我不记得是哪些了），并尝试更新其中一个。它没有成功。我尝试了另一个……也没成功。所以我登录了我的服务器（Digital Ocean液滴），并通过控制台连接。我看到一条消息说需要重启，所以我重启了。 然后网站就再也无法访问了。 我现在在恢复控制台中，看起来像是一…

---

## [升级后空白/空白站点](https://meta.discourse.org/t/empty-blank-site-after-upgrade/315244)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 5\
**Last updated:** [2024年七月7日 19:34 UTC](https://meta.discourse.org/t/empty-blank-site-after-upgrade/315244 "2024-07-07T19:34:21Z")

</div>

升级后出现空白页，我遇到了问题。 起初可以正常工作，几分钟后就变成空白页了。 我该如何解决？或者找出原因？管理员页面也是空白的。

---

## [在我的Pi（托管Discourse的地方）上同时运行多个程序吗？](https://meta.discourse.org/t/running-multiple-things-on-the-same-sever-as-my-pi-where-discourse-is-hosted/315280)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**回覆:** 6\
**Last updated:** [2024年七月7日 10:56 UTC](https://meta.discourse.org/t/running-multiple-things-on-the-same-sever-as-my-pi-where-discourse-is-hosted/315280 "2024-07-07T10:56:09Z")

</div>

因此，我计划在运行 Discourse 的 Pi 的同一台服务器上运行其他东西。如果我在同一台 Pi 上运行更多 Discourse 论坛，我该如何将它们分开以确保它们不会相互干扰？ 如果我运行其他网站或应用程序，并将它们放入 Docker 容器中，它会干扰我的 Discourse 论坛正在使用的 Docker 容器吗？如果我使用 Docker Desktop 而不是命令行会怎样？

---

## [Discourse 突然间停止工作](https://meta.discourse.org/t/discourse-stopped-working-all-of-a-sudden/315014)

<div class="topic-metadata">

**Author:** [@Deenius](https://meta.discourse.org/u/Deenius)\
**回覆:** 8\
**Last updated:** [2024年七月6日 06:22 UTC](https://meta.discourse.org/t/discourse-stopped-working-all-of-a-sudden/315014 "2024-07-06T06:22:49Z")

</div>

Hello, My discourse stopped working all of a sudden. I was editing some posts this morning, but about two hours ago, the discourse disappeared. In other words, it’s not accessible. Yesterday, I added a TXT record to D…

---

## [Discourse 因 docker/iptables 问题无法启动](https://meta.discourse.org/t/discourse-failing-to-start-due-to-docker-iptables-issue/314969)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 1\
**Last updated:** [2024年七月5日 08:56 UTC](https://meta.discourse.org/t/discourse-failing-to-start-due-to-docker-iptables-issue/314969 "2024-07-05T08:56:37Z")

</div>

我尝试运行 ./launcher start app 时遇到以下错误： Error response from daemon: driver failed programming external connectivity on endpoint (): (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 1…

---

## [来自守护进程的错误响应：没有此容器：sed](https://meta.discourse.org/t/error-response-from-daemon-no-such-container-sed/315035)

<div class="topic-metadata">

**Author:** [@Leonardosilva](https://meta.discourse.org/u/Leonardosilva)\
**回覆:** 1\
**Last updated:** [2024年七月4日 23:12 UTC](https://meta.discourse.org/t/error-response-from-daemon-no-such-container-sed/315035 "2024-07-04T23:12:54Z")

</div>

有人能帮我解决这个错误吗？

---

## [更新/重建错误代码 1（3.1.0.beta4 - 3.3.0.beta3）- 与 Redis 端口 6379 相关？](https://meta.discourse.org/t/update-rebuild-error-code-1-3-1-0-beta4-3-3-0-beta3-redis-port-6379-related/314985)

<div class="topic-metadata">

**Author:** [@Adwinistrator](https://meta.discourse.org/u/Adwinistrator)\
**回覆:** 4\
**Last updated:** [2024年七月4日 16:19 UTC](https://meta.discourse.org/t/update-rebuild-error-code-1-3-1-0-beta4-3-3-0-beta3-redis-port-6379-related/314985 "2024-07-04T16:19:54Z")

</div>

大家好，这是我的第一个帖子。几年前我接手了一个 DigitalOcean/Discourse 服务器，一直维护得不好，最近重新签发了 SSL 证书并尝试更新/重建应用程序，遇到了以下错误： I, \[2024-07-04T10:58:00.012668 #1\] INFO -- : \> exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf I, …

---

## [关于AlmaLinux的讨论](https://meta.discourse.org/t/discourse-on-almalinux/315008)

<div class="topic-metadata">

**Author:** [@shyfrog](https://meta.discourse.org/u/shyfrog)\
**回覆:** 3\
**Last updated:** [2024年七月4日 14:44 UTC](https://meta.discourse.org/t/discourse-on-almalinux/315008 "2024-07-04T14:44:08Z")

</div>

您好， 我知道 Discourse 的支持版本需要特定的设置，但是…… 我的好奇心和迄今为止付出的努力促使我在这里寻求帮助。 我在 AlmaLinux VPS 上安装了 Docker 并安装了 Discourse，运行并设置好了，邀请了用户，一切都很顺利。除了前端界面更改之外，我没有添加任何插件或进行任何重大修改。 然后，我进行了昨天（或前天）的 Discourse 安全更新。 一切都很顺利。 这就是新手错误发生的地方（我在…

---

## [将上传内容从 S3 迁移到本地](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903)

<div class="topic-metadata">

**Author:** [@hosna](https://meta.discourse.org/u/hosna)\
**回覆:** 32\
**Last updated:** [2024年七月3日 17:19 UTC](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903 "2024-07-03T17:19:40Z")

</div>

I want to migrate my files from s3 back to local. I’m manually transferring all files from s3 to uploads folder. Then should be changing the base url of upload links, back to forum base url, sufficient to do the job done…

---

## [将SMTP连接到Discourse](https://meta.discourse.org/t/connect-smtp-to-discourse/314771)

<div class="topic-metadata">

**Author:** [@Andry\_Osminin](https://meta.discourse.org/u/Andry_Osminin)\
**回覆:** 1\
**Last updated:** [2024年七月3日 16:05 UTC](https://meta.discourse.org/t/connect-smtp-to-discourse/314771 "2024-07-03T16:05:50Z")

</div>

我尝试连接 SMTP 到 Discourse 已经好几天了。我已经将 MX、SPF 和 DKIM 添加到我的 DNS 记录中，并且所有检查都已成功。但是，在我第一次访问我的网站时，我需要发送一封电子邮件来注册一个管理员帐户，但它没有收到。请查看设置的截图，我哪里做错了。我已经尝试了我能想到的一切。也许是密码被引号包围了？

---

## [Discourse-translator 和 discourse-topic-tooltips 插件克隆错误](https://meta.discourse.org/t/discourse-translator-and-discourse-topic-tooltips-plugin-cloning-error/314795)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**回覆:** 2\
**Last updated:** [2024年七月3日 13:11 UTC](https://meta.discourse.org/t/discourse-translator-and-discourse-topic-tooltips-plugin-cloning-error/314795 "2024-07-03T13:11:36Z")

</div>

在克隆以下两个插件时： git clone https://github.com/discourse/discourse-translator.git git clone https://github.com/discourse/discourse-topic-tooltips.git 我遇到了这个错误： I, \[2024-07-03T11:57:19.372261 #1\] INFO -- : cd /var/www/disc…

---

## [The plugin was not installed successfully after rebuild](https://meta.discourse.org/t/the-plugin-was-not-installed-successfully-after-rebuild/314611)

<div class="topic-metadata">

**Author:** [@shawa](https://meta.discourse.org/u/shawa)\
**回覆:** 3\
**Last updated:** [2024年七月2日 17:39 UTC](https://meta.discourse.org/t/the-plugin-was-not-installed-successfully-after-rebuild/314611 "2024-07-02T17:39:31Z")

</div>

I selected some plugins from the forum to deploy, using the command /var/discourse/launcher rebuild app. After the rebuild was completed, I found that one plugin was missing. I don’t know why it was not installed. This t…

---

## [最新版本的Discourse未发送邮件](https://meta.discourse.org/t/latest-version-of-discourse-not-sending-email/314192)

<div class="topic-metadata">

**Author:** [@malee](https://meta.discourse.org/u/malee)\
**回覆:** 7\
**Last updated:** [2024年七月2日 14:22 UTC](https://meta.discourse.org/t/latest-version-of-discourse-not-sending-email/314192 "2024-07-02T14:22:41Z")

</div>

我在 Discourse 使用 SMTP 发送电子邮件时似乎遇到问题。 我已经与我的电子邮件服务提供商核实了我的主机名，并且已经成功地通过主机 VM 使用 Telnet 和 sendmail 发送了电子邮件，以及通过 Discourse Docker 容器内的 Telnet 发送了电子邮件。 我查看了在 Docker 容器内集成 ‘sendmail’ 的方法，并在直接从 CLI 发送电子邮件时收到了“无法解析主机名”的错误。 对我…

---

## [免费安装discourse吗？](https://meta.discourse.org/t/installing-discourse-for-free/311717)

<div class="topic-metadata">

**Author:** [@Ar\_D](https://meta.discourse.org/u/Ar_D)\
**回覆:** 55\
**Last updated:** [2024年七月2日 12:36 UTC](https://meta.discourse.org/t/installing-discourse-for-free/311717 "2024-07-02T12:36:46Z")

</div>

我有一台备用电脑，可以用作服务器、主机或其他 Discourse 所需的设备。它连接到我的存储服务器，因此存储空间充足（130TB + 电脑本身有 8TB SSD），并且配置优良，拥有 64GB 内存、Intel i9-12900k 和 2x Nvidia Titan。 我只想创建一个论坛，并通过这台电脑在线托管，这样就没人需要连接到我的 Wi-Fi 来运行它，他们可以直接通过移动网络访问。之前我使用了一个 WhatsApp 群组，但…

---

## [突破支持安装的边界？](https://meta.discourse.org/t/pushing-the-boundaries-of-supported-installs/314473)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 3\
**Last updated:** [2024年七月1日 18:44 UTC](https://meta.discourse.org/t/pushing-the-boundaries-of-supported-installs/314473 "2024-07-01T18:44:08Z")

</div>

我打算在采用 Ampere Altra ARM 架构的服务器上安装 Discourse 多站点，使用外部 Docker 化的 PostgreSQL 16，包括 TimescaleDB pgvectorscale 扩展。这是官方支持的安装配置吗……

---

## [有人在使用带外部 Postgres 的多站点系统吗？](https://meta.discourse.org/t/does-anyone-have-a-multisite-with-external-postgres/314436)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 1\
**Last updated:** [2024年七月1日 11:00 UTC](https://meta.discourse.org/t/does-anyone-have-a-multisite-with-external-postgres/314436 "2024-07-01T11:00:06Z")

</div>

有人在使用外部 PostgreSQL 运行多站点吗？ 我的多站点配置如下： before\_bundle\_exec: - file: path: $home/config/multisite.yml contents: | example: adapter: postgresql database: example …

---

## [Cloudflare 优化](https://meta.discourse.org/t/cloudflare-optimization/307907)

<div class="topic-metadata">

**Author:** [@Genisis](https://meta.discourse.org/u/Genisis)\
**回覆:** 4\
**Last updated:** [2024年七月1日 10:45 UTC](https://meta.discourse.org/t/cloudflare-optimization/307907 "2024-07-01T10:45:02Z")

</div>

我很想知道是否可以打开所有这些设置。早期提示和Mirage怎么样？

---

## [ARM64 重新构建/启动失败](https://meta.discourse.org/t/arm64-rebuild-bootstrap-fail/314386)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**回覆:** 2\
**Last updated:** [2024年七月1日 09:58 UTC](https://meta.discourse.org/t/arm64-rebuild-bootstrap-fail/314386 "2024-07-01T09:58:13Z")

</div>

我在尝试重建/引导时遇到以下奇怪的错误： 我，\[2024-07-01T01:51:27.741415 #1\] 信息 -- : ;d /var/www/discourse ;d ; sudo -H -E -u discourse git reset --hard 更新文件：100%（34557/34557;0…

---

## [Zoho SMTP (SSL) 安装后无法发送邮件](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341)

<div class="topic-metadata">

**Author:** [@AzamatShaimerden](https://meta.discourse.org/u/AzamatShaimerden)\
**回覆:** 1\
**Last updated:** [2024年七月1日 05:50 UTC](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341 "2024-07-01T05:50:00Z")

</div>

您好， 我使用的是官方安装方法，但在安装后收不到邮件。 在我的 VPS 上，我测试了 echo Hello world \> /tmp/mail.txt curl -v smtps://smtppro.zoho.com:465 \\ --mail-from $email \\ --mail-rcpt $(echo $email | cut -d ',' -f 1) \\ --user $email:"$pass" \\ …

---

## [跟踪插件防止重建](https://meta.discourse.org/t/follow-plugin-preventing-rebuild/313980)

<div class="topic-metadata">

**Author:** [@user14893](https://meta.discourse.org/u/user14893)\
**回覆:** 2\
**Last updated:** [2024年六月29日 09:55 UTC](https://meta.discourse.org/t/follow-plugin-preventing-rebuild/313980 "2024-06-29T09:55:21Z")

</div>

在将 Discourse 更新到最新版本后，我们发现，在构建过程中，只有在注释掉以下插件时，构建才会成功。我们怀疑这是由数据库迁移问题引起的……

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

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