# Self-hosting

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

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

**Page:** 65

---

## [引导失败（退出代码 137）](https://meta.discourse.org/t/failed-to-boostrap-exit-code-137/228941)

<div class="topic-metadata">

**Author:** [@ThatGuyJacobee](https://meta.discourse.org/u/ThatGuyJacobee)\
**回覆:** 7\
**Last updated:** [2022年六月13日 17:26 UTC](https://meta.discourse.org/t/failed-to-boostrap-exit-code-137/228941 "2022-06-13T17:26:20Z")

</div>

您好，我搜索了论坛，看到了与错误137相关的类似问题，该错误是由于内存不足导致的终止。我尝试了一些人们使用过的解决方案，但仍然无法在不失败引导的情况下使其正常工作，…

---

## [Discourse 无法正常工作](https://meta.discourse.org/t/discourse-failing-to-work/229714)

<div class="topic-metadata">

**Author:** [@ethhaqn](https://meta.discourse.org/u/ethhaqn)\
**回覆:** 8\
**Last updated:** [2022年六月12日 16:18 UTC](https://meta.discourse.org/t/discourse-failing-to-work/229714 "2022-06-12T16:18:56Z")

</div>

您好，我的 Discourse 论坛最近遇到了一些问题。 例如，设置无法保存、用户账户无法加载以及页面无法加载。 如果能得到任何帮助，我将不胜感激，谢谢！

---

## [端口 (:3001) / 子域名问题](https://meta.discourse.org/t/port-3001-subdomain-issue/229689)

<div class="topic-metadata">

**Author:** [@Robert\_Winkler](https://meta.discourse.org/u/Robert_Winkler)\
**回覆:** 1\
**Last updated:** [2022年六月12日 01:21 UTC](https://meta.discourse.org/t/port-3001-subdomain-issue/229689 "2022-06-12T01:21:37Z")

</div>

您好，我在服务器上部署了 discourse，并运行了其他服务。 因此，我将 app.yml 中的端口更改为 :3001，并创建了一个指向它的子域。 当我打开 subdomain.discourse.xx 时，我被重定向到 discourse:30……

---

## [邮件发送失败](https://meta.discourse.org/t/emails-failing-to-send/229673)

<div class="topic-metadata">

**Author:** [@ethhaqn](https://meta.discourse.org/u/ethhaqn)\
**回覆:** 4\
**Last updated:** [2022年六月11日 19:24 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673 "2022-06-11T19:24:07Z")

</div>

这是我从 https://smtptester.kingofcode.com.br/ 获取的完美运行的配置： 这是我无法正常工作的 Discourse 配置： 我哪里做错了？

---

## ["EXCEPTION: x of y uploads are not migrated to S3. S3 migration failed for db 'default'." 恢复失败](https://meta.discourse.org/t/restore-failed-at-exception-x-of-y-uploads-are-not-migrated-to-s3-s3-migration-failed-for-db-default/171100)

<div class="topic-metadata">

**Author:** [@dltj](https://meta.discourse.org/u/dltj)\
**回覆:** 4\
**Last updated:** [2022年六月10日 18:54 UTC](https://meta.discourse.org/t/restore-failed-at-exception-x-of-y-uploads-are-not-migrated-to-s3-s3-migration-failed-for-db-default/171100 "2022-06-10T18:54:03Z")

</div>

这个问题在 meta.discourse.org 上一直作为草稿存在，因为我在处理我的 Discourse 服务器上的问题。我已经能够解决下面描述的问题，但我无法做到有效的灾难性……

---

## [重建时出现 Pups ExecError](https://meta.discourse.org/t/pups-execerror-while-rebuilding/229535)

<div class="topic-metadata">

**Author:** [@OverseersMight](https://meta.discourse.org/u/OverseersMight)\
**回覆:** 3\
**Last updated:** [2022年六月9日 18:06 UTC](https://meta.discourse.org/t/pups-execerror-while-rebuilding/229535 "2022-06-09T18:06:28Z")

</div>

2022-06-09 15:54:49.619 UTC \[42\] LOG: background worker "

---

## [邮件子域问题](https://meta.discourse.org/t/mail-subdomain-problem/228483)

<div class="topic-metadata">

**Author:** [@rodseb](https://meta.discourse.org/u/rodseb)\
**回覆:** 3\
**Last updated:** [2022年六月8日 12:47 UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483 "2022-06-08T12:47:50Z")

</div>

你好， 我有一个奇怪的问题，我已经执行了命令和修改，但仍然收到此错误。 ## TODO：用于验证新帐户和发送通知的 SMTP 邮件服务器 # SMTP 地址、用户名、……

---

## [图片消失；什么都没用 - 重建容器，上传：恢复，和帖子：重烘焙](https://meta.discourse.org/t/images-disappeared-nothing-helps-container-rebuilding-uploads-recover-and-posts-rebake/229272)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 7\
**Last updated:** [2022年六月7日 16:49 UTC](https://meta.discourse.org/t/images-disappeared-nothing-helps-container-rebuilding-uploads-recover-and-posts-rebake/229272 "2022-06-07T16:49:52Z")

</div>

标志、头像和帖子图片全部消失了。 我检查了其中一张图片的上传文件夹——它们不在那里。 可能发生了什么，有机会恢复吗？ 我尝试了： ./launcher enter app rake uploads…

---

## [将旧数据库导入到最新版本](https://meta.discourse.org/t/importing-old-database-to-latest-version/227493)

<div class="topic-metadata">

**Author:** [@agemo](https://meta.discourse.org/u/agemo)\
**回覆:** 16\
**Last updated:** [2022年六月7日 15:45 UTC](https://meta.discourse.org/t/importing-old-database-to-latest-version/227493 "2022-06-07T15:45:45Z")

</div>

问: 如果您有一个旧的 Discourse 安装数据库，v2.0 \> 导出 - 导入 \> 2.9 - 它会失败还是导入过程中有转换过程可以成功导入？

---

## [急需iOS推送，但Discourse.org托管费用过高](https://meta.discourse.org/t/ios-push-badly-needed-but-discourse-org-hosting-is-too-expensive/221211)

<div class="topic-metadata">

**Author:** [@rsmith2019](https://meta.discourse.org/u/rsmith2019)\
**回覆:** 10\
**Last updated:** [2022年六月6日 22:43 UTC](https://meta.discourse.org/t/ios-push-badly-needed-but-discourse-org-hosting-is-too-expensive/221211 "2022-06-06T22:43:47Z")

</div>

我们是一个由志愿者领导的社区组织，拥有一个小型的 Discourse 论坛，我们的大多数成员都使用 iPhone。 看到一个曾经很棒的社区随着我们的成员消失在 WhatsApp 中而消亡，这让我感到痛苦……

---

## [最佳文件系统](https://meta.discourse.org/t/best-file-system/229087)

<div class="topic-metadata">

**Author:** [@bubblecatcher](https://meta.discourse.org/u/bubblecatcher)\
**回覆:** 1\
**Last updated:** [2022年六月6日 13:41 UTC](https://meta.discourse.org/t/best-file-system/229087 "2022-06-06T13:41:19Z")

</div>

您好，我将在拥有 20GB 空间的 VPS 上安装 Discourse，但会添加（挂载）一个额外的 10GB 卷来存储 Discourse 数据。 问题是，格式化新卷的最佳文件系统是什么？ 谢谢

---

## [macOS 安装 Gem::FilePermissionError](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607)

<div class="topic-metadata">

**Author:** [@taco](https://meta.discourse.org/u/taco)\
**回覆:** 12\
**Last updated:** [2022年六月6日 01:53 UTC](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607 "2022-06-06T01:53:00Z")

</div>

在 Mac 上安装 Discourse（用于开发）时，我遇到以下错误： ERROR: While executing gem ... (Gem::FilePermissionError) 您对 /Library/Ruby/Gems/2.6.0 目录没有写入权限。 如何...

---

## [引导失败](https://meta.discourse.org/t/failing-to-bootstrap/229024)

<div class="topic-metadata">

**Author:** [@helmi](https://meta.discourse.org/u/helmi)\
**回覆:** 7\
**Last updated:** [2022年六月5日 16:28 UTC](https://meta.discourse.org/t/failing-to-bootstrap/229024 "2022-06-05T16:28:47Z")

</div>

这是在一台测试机上。我之前在那里运行过 discourse - 我搞砸了安装，并且无法更新到最新版本，我以为是我的错。在删除了整个 discourse 目录……

---

## [通过命令行激活/确认首次安装的管理员](https://meta.discourse.org/t/activate-confirm-first-admin-upon-fresh-installation-through-command-line/229012)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 1\
**Last updated:** [2022年六月4日 15:38 UTC](https://meta.discourse.org/t/activate-confirm-first-admin-upon-fresh-installation-through-command-line/229012 "2022-06-04T15:38:19Z")

</div>

继续讨论激活控制台中的管理员帐户： 看起来这不再起作用了： 现在该如何操作？

---

## [3G RAM + 1G 分区交换 - 够用吗？](https://meta.discourse.org/t/3g-ram-1g-partition-swap-is-it-enough/228951)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 16\
**Last updated:** [2022年六月4日 12:08 UTC](https://meta.discourse.org/t/3g-ram-1g-partition-swap-is-it-enough/228951 "2022-06-04T12:08:06Z")

</div>

我们刚买的VPS自带3G内存+1G分区交换空间——我还需要设置一个交换文件吗，或者这样就够了？

---

## [Protonmail Mail Bridge 与 Ubuntu 服务器 - 如何操作？](https://meta.discourse.org/t/protonmail-mail-bridge-with-ubuntu-server-how-to/228917)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 4\
**Last updated:** [2022年六月4日 11:44 UTC](https://meta.discourse.org/t/protonmail-mail-bridge-with-ubuntu-server-how-to/228917 "2022-06-04T11:44:14Z")

</div>

我看到Proton有一个适用于Ubuntu的桥接器，但它看起来像一个GUI应用程序： 有人知道： 如何在Ubuntu Server上安装Proton Mail Bridge（供Discourse用于SMTP） 以及 既然我们要进行无…

---

## [邮件作业在最新更新后失败，证书验证失败（无法获取本地颁发者证书）](https://meta.discourse.org/t/email-jobs-failing-after-latest-update-certificate-verify-failed-unable-to-get-local-issuer-certificate/227720)

<div class="topic-metadata">

**Author:** [@bwanamarko](https://meta.discourse.org/u/bwanamarko)\
**回覆:** 11\
**Last updated:** [2022年六月2日 21:28 UTC](https://meta.discourse.org/t/email-jobs-failing-after-latest-update-certificate-verify-failed-unable-to-get-local-issuer-certificate/227720 "2022-06-02T21:28:39Z")

</div>

抱歉又问了一个重复的问题，因为我可以看到有很多类似的请求，例如：更新后电子邮件通知失败，但我们的错误消息略有不同：“证书验证失败……

---

## [无法发送邮件 - 554 被列入黑名单](https://meta.discourse.org/t/cant-send-mail-554-blacklisted/112858)

<div class="topic-metadata">

**Author:** [@IMSth](https://meta.discourse.org/u/IMSth)\
**回覆:** 7\
**Last updated:** [2019年三月30日 21:36 UTC](https://meta.discourse.org/t/cant-send-mail-554-blacklisted/112858 "2019-03-30T21:36:03Z")

</div>

你好， 我尝试在服务器上以 Docker 容器方式安装 Discourse。一切正常，直到首次运行时发送邮件。 我没有收到邮件。 我运行了 discourse-doctor，结果如下（我已将域名更改为 MY\_…）

---

## [无法重新构建应用](https://meta.discourse.org/t/failure-to-rebuild-app/228658)

<div class="topic-metadata">

**Author:** [@DeadlyDragon](https://meta.discourse.org/u/DeadlyDragon)\
**回覆:** 9\
**Last updated:** [2022年五月31日 20:50 UTC](https://meta.discourse.org/t/failure-to-rebuild-app/228658 "2022-05-31T20:50:28Z")

</div>

大家好！ 我的 discourse 无法重建，我对此感到很困惑。我尝试进行常规升级，但遇到了以下错误消息。 失败 -------------------- Pups::ExecError: cd /var/www/discourse && su dis……

---

## [如何启用 www 子域名](https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808)

<div class="topic-metadata">

**Author:** [@Bblue](https://meta.discourse.org/u/Bblue)\
**回覆:** 9\
**Last updated:** [2019年三月29日 19:57 UTC](https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808 "2019-03-29T19:57:25Z")

</div>

大家好，我想知道如何启用“www”（https://www.mydomain.com），同时将 mydomain.com 设为主机名。我的意思是，使用 Let's Encrypt 将“www”重定向到非“www”。我找到了一篇关于安装 Nginx 的指南……

---

## [E2-Micro (GCP 免费套餐) 安装失败](https://meta.discourse.org/t/failure-installing-on-e2-micro-gcp-free-tier/228394)

<div class="topic-metadata">

**Author:** [@kleptine](https://meta.discourse.org/u/kleptine)\
**回覆:** 1\
**Last updated:** [2022年五月29日 19:49 UTC](https://meta.discourse.org/t/failure-installing-on-e2-micro-gcp-free-tier/228394 "2022-05-29T19:49:02Z")

</div>

我有一个免费套餐实例，我想在上面安装 Discourse。不幸的是，看起来免费套餐实例的 CPU（0.5 个 vCPU）不足以完成安装。 安装过程中的 yarn 部分……

---

## [升级后电子邮件发送停止工作](https://meta.discourse.org/t/e-mail-sending-stopped-working-after-upgrade/228293)

<div class="topic-metadata">

**Author:** [@Mychel](https://meta.discourse.org/u/Mychel)\
**回覆:** 2\
**Last updated:** [2022年五月29日 12:50 UTC](https://meta.discourse.org/t/e-mail-sending-stopped-working-after-upgrade/228293 "2022-05-29T12:50:16Z")

</div>

您好， 我两天前更新了 Discourse，之后发送邮件就无法正常工作了。我不确定更新前具体是哪个版本，但新版本是 2.9.0.beta4，并且我进行更新……

---

## [多站点/多容器Discourse实例升级问题](https://meta.discourse.org/t/problem-upgrading-multi-site-multi-containers-discourse-instance/226929)

<div class="topic-metadata">

**Author:** [@jtraulle](https://meta.discourse.org/u/jtraulle)\
**回覆:** 8\
**Last updated:** [2022年五月13日 21:19 UTC](https://meta.discourse.org/t/problem-upgrading-multi-site-multi-containers-discourse-instance/226929 "2022-05-13T21:19:53Z")

</div>

您好， 我正在尝试升级一个 Discourse 实例，该实例当前版本为 2.8.0.beta8 (0ededb1454)，目标版本为 2.9.0.beta4。 到目前为止一切顺利，但这次，我在尝试引导我的新 web\_only 容器时遇到了错误。…

---

## [如果未使用 HTTPS，Nginx 将不监听 IPv6](https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050)

<div class="topic-metadata">

**Author:** [@topological](https://meta.discourse.org/u/topological)\
**回覆:** 2\
**Last updated:** [2022年五月25日 11:20 UTC](https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050 "2022-05-25T11:20:28Z")

</div>

我在内部网络中设置了一个测试服务器（无法从外部访问，因此无法设置 let’s encrypt），并且我发现当服务器具有 IPv6 地址时，nginx 不会监听 IPv6。/etc/nginx/conf…

---

## [全新安装问题](https://meta.discourse.org/t/fresh-install-issue/227890)

<div class="topic-metadata">

**Author:** [@bondbenz](https://meta.discourse.org/u/bondbenz)\
**回覆:** 8\
**Last updated:** [2022年五月24日 14:43 UTC](https://meta.discourse.org/t/fresh-install-issue/227890 "2022-05-24T14:43:58Z")

</div>

你好， 我有一个全新的 Ubuntu VPS，尝试使用 Cloud Document 安装进行安装。安装完成后，我无法访问网站（离线）。当我运行 discourse-doctor 时，我得到以下信息： Discourse 版本 community.xxxx

---

## [CloudFlare代理（橙色云）导致上传文件失败（AWS S3）](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871)

<div class="topic-metadata">

**Author:** [@dsaver](https://meta.discourse.org/u/dsaver)\
**回覆:** 5\
**Last updated:** [2022年五月24日 02:25 UTC](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871 "2022-05-24T02:25:11Z")

</div>

您好，我在 DigitalOcean 实例上运行了一个 discourse，该实例是使用市场应用选项安装的。如果我关闭 CF 代理（灰色云），通过 S3 进行文件上传可以正常工作。 如果我启用 CF 代理（橙色云），文件上传……

---

## [yarn install 卡住，超时](https://meta.discourse.org/t/stuck-on-yarn-install-time-out/227738)

<div class="topic-metadata">

**Author:** [@codergautam](https://meta.discourse.org/u/codergautam)\
**回覆:** 3\
**Last updated:** [2022年五月22日 15:02 UTC](https://meta.discourse.org/t/stuck-on-yarn-install-time-out/227738 "2022-05-22T15:02:27Z")

</div>

您好，我正在尝试将 Discourse 安装到我的 Google Cloud VPS 上。 当我执行 ./launcher rebuild app 时，它会卡在 yarn install 过了一会儿，会发生这种情况： 这和 yarn 有关吗？我不认为这是 n…

---

## [./launcher rebuild app 失败 'bundle exec rake db:migrate' 可能是因为 github/master 仓库移除了 auth/oath2\_authenticator](https://meta.discourse.org/t/launcher-rebuild-app-fails-hard-bundle-exec-rake-db-migrate-possible-issue-with-github-master-repo-removal-of-auth-oath2-authenticator/227346)

<div class="topic-metadata">

**Author:** [@mattyoung](https://meta.discourse.org/u/mattyoung)\
**回覆:** 5\
**Last updated:** [2022年五月21日 14:20 UTC](https://meta.discourse.org/t/launcher-rebuild-app-fails-hard-bundle-exec-rake-db-migrate-possible-issue-with-github-master-repo-removal-of-auth-oath2-authenticator/227346 "2022-05-21T14:20:44Z")

</div>

大家好，这是求助电话…… 我一直在尝试挖掘并找出我长期运行的 Ubuntu 20.x Discourse 实例的完整问题根源。这些实例都在 AWS 上运行，并且近三年来一直运行良好……

---

## [如何配置 discourse 和 cloudflare](https://meta.discourse.org/t/how-to-setup-discourse-with-cloudflare/227695)

<div class="topic-metadata">

**Author:** [@Xcept](https://meta.discourse.org/u/Xcept)\
**回覆:** 1\
**Last updated:** [2022年五月21日 18:12 UTC](https://meta.discourse.org/t/how-to-setup-discourse-with-cloudflare/227695 "2022-05-21T18:12:20Z")

</div>

你好，我购买了cloudflare .com域名，但不知道需要使用什么DNS记录。如果您能一步一步地为我发送，将不胜感激。 祝好。

---

## [邮件服务器设置](https://meta.discourse.org/t/mail-server-setup/227510)

<div class="topic-metadata">

**Author:** [@puloi](https://meta.discourse.org/u/puloi)\
**回覆:** 8\
**Last updated:** [2022年五月20日 23:38 UTC](https://meta.discourse.org/t/mail-server-setup/227510 "2022-05-20T23:38:41Z")

</div>

嗨， 我的discourse（新论坛）无法发送注册管理员账户的电子邮件。 我在mail.log中没有看到错误。 请帮忙，感谢！

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

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