# Self-hosting

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

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

**Page:** 54

---

## [使用 Sentry 时出现无限堆栈递归](https://meta.discourse.org/t/infinite-stack-recursion-when-using-sentry/254639)

<div class="topic-metadata">

**Author:** [@saulshanabrook](https://meta.discourse.org/u/saulshanabrook)\
**回覆:** 1\
**Last updated:** [2023年二月13日 18:37 UTC](https://meta.discourse.org/t/infinite-stack-recursion-when-using-sentry/254639 "2023-02-13T18:37:07Z")

</div>

你好！ 我想在这里发帖，看看是否有人对我在尝试将 Sentry 与 discourse 一起使用时遇到的这个错误有什么想法。我想使用 Sentry（使用开源的 Glitchtip 服务器实现）来收集……

---

## [仅升级到稳定版本](https://meta.discourse.org/t/upgrade-to-stable-versions-only/255014)

<div class="topic-metadata">

**Author:** [@djnoah](https://meta.discourse.org/u/djnoah)\
**回覆:** 2\
**Last updated:** [2023年二月13日 18:14 UTC](https://meta.discourse.org/t/upgrade-to-stable-versions-only/255014 "2023-02-13T18:14:14Z")

</div>

我正在运行 3.1.0.beta2 是否可以强制将推荐的升级版本仅限于稳定版本？

---

## [需要帮助！从数据库备份恢复论坛](https://meta.discourse.org/t/need-help-please-restore-forum-from-db-backup/254955)

<div class="topic-metadata">

**Author:** [@nahimov](https://meta.discourse.org/u/nahimov)\
**回覆:** 3\
**Last updated:** [2023年二月13日 15:08 UTC](https://meta.discourse.org/t/need-help-please-restore-forum-from-db-backup/254955 "2023-02-13T15:08:42Z")

</div>

由于云提供商发生故障，我们丢失了生产论坛。 只有 Postgres 数据库备份。 您能否告诉我从数据库备份恢复的正确操作顺序？以及在一般……

---

## [Docker attach 出现空行](https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910)

<div class="topic-metadata">

**Author:** [@bquast](https://meta.discourse.org/u/bquast)\
**回覆:** 8\
**Last updated:** [2023年二月13日 15:06 UTC](https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910 "2023-02-13T15:06:11Z")

</div>

您好，我有一个docker实例（支持的镜像）。 当我尝试docker attach时，它只显示光标在一个空行上闪烁，对ls等命令没有响应。

---

## [Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' 失败，返回](https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858)

<div class="topic-metadata">

**Author:** [@Ratnam\_Raju\_Varsala](https://meta.discourse.org/u/Ratnam_Raju_Varsala)\
**回覆:** 29\
**Last updated:** [2023年二月12日 05:01 UTC](https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858 "2023-02-12T05:01:24Z")

</div>

当我尝试运行 ./launcher rebuild app 时，我遇到了以下错误 失败 Pups::ExecError: su postgres -c ‘psql discourse -c “alter schema public owner to discourse;”’ 失败，返回 #\<Process::Status: pid 54 exi…

---

## [无法为应用程序 /home/feedback/discour 生成进程](https://meta.discourse.org/t/e-2023-02-09-1944-6204-217094-t1o-age-cor-app-implementation-cpp-221-could-not-spawn-process-for-application-home-feedback-discour/254671)

<div class="topic-metadata">

**Author:** [@Ratnam\_Raju\_Varsala](https://meta.discourse.org/u/Ratnam_Raju_Varsala)\
**回覆:** 4\
**Last updated:** [2023年二月11日 10:07 UTC](https://meta.discourse.org/t/e-2023-02-09-1944-6204-217094-t1o-age-cor-app-implementation-cpp-221-could-not-spawn-process-for-application-home-feedback-discour/254671 "2023-02-11T10:07:58Z")

</div>

\[ E 2023-02-09 19:25:44.6204 217094/T1o age/Cor/App/Implementation.cpp:221 \]: 无法为应用程序 /home/feedback/discourse 生成进程：应用程序遇到以下错误：我们找不到您的数据……

---

## [使用 bookmarks\_polymorphic 重新构建时出错](https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543)

<div class="topic-metadata">

**Author:** [@Carquo](https://meta.discourse.org/u/Carquo)\
**回覆:** 7\
**Last updated:** [2023年二月10日 12:55 UTC](https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543 "2023-02-10T12:55:59Z")

</div>

您好， i’ve an error on Rebuild : FAILED Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ failed with return #\<Process::Status: pid 1121 exit 1\> Location of failure: /usr/local/lib…

---

## [Postmark 用于事务性电子邮件](https://meta.discourse.org/t/postmark-for-transactional-email/254646)

<div class="topic-metadata">

**Author:** [@PeakProsperity](https://meta.discourse.org/u/PeakProsperity)\
**回覆:** 2\
**Last updated:** [2023年二月9日 19:37 UTC](https://meta.discourse.org/t/postmark-for-transactional-email/254646 "2023-02-09T19:37:45Z")

</div>

有人在使用 Postmark 通过 Discourse 发送事务性电子邮件方面有经验吗？如果有，您能告诉我是否可以使用 API 连接，还是必须使用 SMTP？据我所知，它需要是 SMTP，但我想……

---

## [Postgres 升级问题](https://meta.discourse.org/t/problem-with-postgres-upgrade/254553)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 3\
**Last updated:** [2023年二月9日 16:50 UTC](https://meta.discourse.org/t/problem-with-postgres-upgrade/254553 "2023-02-09T16:50:10Z")

</div>

我正在帮助一个拒绝升级到 PG13 的人，他现在有一个过期的 SSL 证书。 由于容器内的 Apt-get update 失败，yarn repo 未签名 - #5 pfaffman，这可能会使情况更加困难，但我修改了……

---

## [CDN Recommendation](https://meta.discourse.org/t/cdn-recommendation/38062)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**回覆:** 10\
**Last updated:** [2023年二月8日 13:27 UTC](https://meta.discourse.org/t/cdn-recommendation/38062 "2023-02-08T13:27:43Z")

</div>

I’m about to launch a couple new communities in the upcoming weeks and I’m working out all of my hosting and plugin details. A concern I have is storage of uploads. It’s mostly a preemptive measure I’m considering. But I…

---

## [无法访问Github](https://meta.discourse.org/t/unable-to-access-github/254350)

<div class="topic-metadata">

**Author:** [@Openmind](https://meta.discourse.org/u/Openmind)\
**回覆:** 2\
**Last updated:** [2023年二月7日 16:38 UTC](https://meta.discourse.org/t/unable-to-access-github/254350 "2023-02-07T16:38:14Z")

</div>

您好，我正在招聘的开发人员告诉我，他们在尝试更新论坛时遇到了此错误。如何解决？非常感谢，Torsten

---

## [Aurora I/O](https://meta.discourse.org/t/aurora-i-o/251937)

<div class="topic-metadata">

**Author:** [@pqMMA](https://meta.discourse.org/u/pqMMA)\
**回覆:** 7\
**Last updated:** [2023年二月7日 03:50 UTC](https://meta.discourse.org/t/aurora-i-o/251937 "2023-02-07T03:50:54Z")

</div>

我想知道是否还有其他人通过 EC2 实例和 RDS 设置在 AWS 上运行 Discourse？ 我们遇到了一个问题，即 I/O 请求量非常大，导致成本显著增加。我们目前……

---

## [删除用户功能在 staging/production docker 设置上停止工作，但在本地（无 docker 设置）上工作](https://meta.discourse.org/t/delete-user-feature-stopped-working-on-staging-production-docker-setups-but-works-on-local-no-docker-setup/254108)

<div class="topic-metadata">

**Author:** [@Stefan\_Brighiu\_M](https://meta.discourse.org/u/Stefan_Brighiu_M)\
**回覆:** 16\
**Last updated:** [2023年二月5日 18:29 UTC](https://meta.discourse.org/t/delete-user-feature-stopped-working-on-staging-production-docker-setups-but-works-on-local-no-docker-setup/254108 "2023-02-05T18:29:50Z")

</div>

大家好， 我遇到了一个问题，删除用户的辅助窗口（实际删除用户的那个窗口）在暂存/生产环境（docker设置）中不显示，但在本地（非docker设置）却工作正常。 什么都没发生……

---

## [IPv6专用VPS的安装与兼容性](https://meta.discourse.org/t/installation-and-compatibility-with-ipv6-only-vps/254064)

<div class="topic-metadata">

**Author:** [@mstm](https://meta.discourse.org/u/mstm)\
**回覆:** 6\
**Last updated:** [2023年二月5日 15:12 UTC](https://meta.discourse.org/t/installation-and-compatibility-with-ipv6-only-vps/254064 "2023-02-05T15:12:55Z")

</div>

大家好， 我正在尝试在一台只有 IPv6 的 VPS（Ubuntu Server 22.04 LTS）上安装 Discourse，但出现了这个错误： 103:M 04 Feb 2023 17:27:33.313 # Redis is now ready to exit, bye bye... FAILED -------------------- Pups: ...

---

## [\`rake posts:rebake\` 中途崩溃](https://meta.discourse.org/t/rake-posts-rebake-crashed-half-way-through/253955)

<div class="topic-metadata">

**Author:** [@rahim123](https://meta.discourse.org/u/rahim123)\
**回覆:** 2\
**Last updated:** [2023年二月3日 18:34 UTC](https://meta.discourse.org/t/rake-posts-rebake-crashed-half-way-through/253955 "2023-02-03T18:34:46Z")

</div>

您好，我在我的测试站点上运行了一个 rake posts:rebake 命令，通常需要 24 小时以上才能完成。今天早上我登录到该会话，发现它在进行到大约一半时崩溃了。我不认为这是……

---

## [提高配置中的最大文件上传限制](https://meta.discourse.org/t/raising-max-file-upload-limit-in-configs/253990)

<div class="topic-metadata">

**Author:** [@Glasia\_van\_Duivels](https://meta.discourse.org/u/Glasia_van_Duivels)\
**回覆:** 1\
**Last updated:** [2023年二月3日 18:06 UTC](https://meta.discourse.org/t/raising-max-file-upload-limit-in-configs/253990 "2023-02-03T18:06:08Z")

</div>

论坛所有者可以在配置中设置最大上传大小吗？如果不能，我建议所有者可以在配置中设置最大文件大小（最大 100 MB）。 我不是 Discourse 论坛的所有者，我是论坛 member.dark-ga…

---

## [S3备份多站点显示在存储桶的根目录中](https://meta.discourse.org/t/s3-backups-for-multisite-show-up-in-root-directory-of-bucket/218464)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 2\
**Last updated:** [2023年二月3日 14:34 UTC](https://meta.discourse.org/t/s3-backups-for-multisite-show-up-in-root-directory-of-bucket/218464 "2023-02-03T14:34:41Z")

</div>

我刚刚设置了一个多站点实例，并通过 web\_only.yml 中的 S3 进行备份。我遵循了“设置文件和图片上传到 S3”的说明，并让 discourse 在进行备份时创建存储桶。 DISCOURSE\_S3\_BACKUP\_BUCKET: …

---

## [无法升级到最新版本，磁盘已满](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826)

<div class="topic-metadata">

**Author:** [@dalu](https://meta.discourse.org/u/dalu)\
**回覆:** 10\
**Last updated:** [2023年二月3日 13:13 UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826 "2023-02-03T13:13:39Z")

</div>

你好 我想更新到最新版本，但失败了 当我执行 ./launcher rebuild app 时 系统要求我清理空间并重试，然后它会一直循环要求清理空间，并且无法启动 我有……

---

## [最近升级期间的Bootstrap失败](https://meta.discourse.org/t/bootstrap-failure-during-most-recent-upgrade/253424)

<div class="topic-metadata">

**Author:** [@nskerl](https://meta.discourse.org/u/nskerl)\
**回覆:** 6\
**Last updated:** [2023年二月3日 00:04 UTC](https://meta.discourse.org/t/bootstrap-failure-during-most-recent-upgrade/253424 "2023-02-03T00:04:31Z")

</div>

你好， 在升级失败后，我收到了以下错误。很难判断数据库升级期间的错误（数据库“discourse”已存在）是否符合预期，因为它们被记录为 INFO 严重性。 …

---

## [6美元的DO液滴够用吗？](https://meta.discourse.org/t/is-the-6-do-droplet-enough/236283)

<div class="topic-metadata">

**Author:** [@anjanesh](https://meta.discourse.org/u/anjanesh)\
**回覆:** 26\
**Last updated:** [2023年二月2日 09:26 UTC](https://meta.discourse.org/t/is-the-6-do-droplet-enough/236283 "2023-02-02T09:26:26Z")

</div>

我准备好每月支付 DigitalOcean 6 美元购买其 1GB / 25GB 套餐。但我一直看到有人说 Discourse 在如此低的配置下无法正常运行。

---

## [无法恢复，因为 sidekiq 不放手](https://meta.discourse.org/t/cant-restore-because-sidekiq-wont-let-go/253515)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 2\
**Last updated:** [2023年一月31日 16:36 UTC](https://meta.discourse.org/t/cant-restore-because-sidekiq-wont-let-go/253515 "2023-01-31T16:36:42Z")

</div>

我有一个在 ECS 中运行并使用 RDS 的站点。我正在尝试恢复数据库（如文中所述：Restore failed \`entity2char already exists' RDS Postgres 13.7 - #7 by RGJ）。此时的问题是备份文件……

---

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

<div class="topic-metadata">

**Author:** [@ankur1857](https://meta.discourse.org/u/ankur1857)\
**回覆:** 35\
**Last updated:** [2023年一月30日 22:49 UTC](https://meta.discourse.org/t/discourse-update-error/253197 "2023-01-30T22:49:19Z")

</div>

我在更新 discourse 时遇到以下错误。 请帮助解决。 失败 -------------------- Pups::ExecError: cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { …

---

## [Discourse 在通过任何浏览器查看时，在登录对话框处停止加载](https://meta.discourse.org/t/discourse-now-stops-loading-at-login-dialog-when-viewed-with-any-browser/252968)

<div class="topic-metadata">

**Author:** [@Paul\_King](https://meta.discourse.org/u/Paul_King)\
**回覆:** 21\
**Last updated:** [2023年一月29日 15:07 UTC](https://meta.discourse.org/t/discourse-now-stops-loading-at-login-dialog-when-viewed-with-any-browser/252968 "2023-01-29T15:07:35Z")

</div>

几个更新之前，我碰巧注意到我无法再从我的任何 Android 10 智能手机、我的 Chromebook 或任何 Windows PC（除了一台……）访问我的 discourse 论坛 www.nzarchitecture.net.nz。

---

## [有人设置过mailjet的SMTP吗？](https://meta.discourse.org/t/anyone-setup-smtp-with-mailjet/252743)

<div class="topic-metadata">

**Author:** [@maze1g](https://meta.discourse.org/u/maze1g)\
**回覆:** 8\
**Last updated:** [2023年一月28日 14:19 UTC](https://meta.discourse.org/t/anyone-setup-smtp-with-mailjet/252743 "2023-01-28T14:19:33Z")

</div>

在安装 Discourse 时遇到问题，如果有人能帮忙，我将不胜感激！ 提前感谢

---

## [自托管升级到3.x时遇到问题：无法回滚](https://meta.discourse.org/t/problems-with-self-hosted-upgrade-to-3-x-cannot-roll-back/252941)

<div class="topic-metadata">

**Author:** [@pearsonified](https://meta.discourse.org/u/pearsonified)\
**回覆:** 14\
**Last updated:** [2023年一月28日 01:07 UTC](https://meta.discourse.org/t/problems-with-self-hosted-upgrade-to-3-x-cannot-roll-back/252941 "2023-01-28T01:07:57Z")

</div>

这次更新对我来说失败了，现在我所有的三个 Discourse 论坛都无法访问。 升级屏幕上的控制台窗口没有任何内容，但 UI 的其余部分表明升级仍在进行中……

---

## [关于如何节省空间的建议？](https://meta.discourse.org/t/any-advice-on-how-to-save-space/252779)

<div class="topic-metadata">

**Author:** [@debryc](https://meta.discourse.org/u/debryc)\
**回覆:** 24\
**Last updated:** [2023年一月26日 12:29 UTC](https://meta.discourse.org/t/any-advice-on-how-to-save-space/252779 "2023-01-26T12:29:29Z")

</div>

我们在 DigitalOcean 上运行了一个自托管的 Discourse 站点，并且有一个 25 GB 的磁盘。我刚尝试更新我们的 Discourse 镜像，并收到了一条“您需要更多空间才能继续”的消息。清理了 docker 镜像和容器后……

---

## [邮件接收器无法将邮件投递到 Discourse](https://meta.discourse.org/t/mail-receiver-won-t-deliver-mail-to-discourse/283811)

<div class="topic-metadata">

**Author:** [@MathiasFoster](https://meta.discourse.org/u/MathiasFoster)\
**回覆:** 16\
**Last updated:** [2023年一月26日 10:52 UTC](https://meta.discourse.org/t/mail-receiver-won-t-deliver-mail-to-discourse/283811 "2023-01-26T10:52:30Z")

</div>

我犯了这个错误，并在 mail-receiver.yml 文件中留下了 discourse.example.com。 我现在已经修复了，但 mail-receiver 似乎没有“获取”到新的详细信息。 如何“重置”mail-receiver（例如，什么是…

---

## [从 2.8.0.beta10 升级到 3.1.0.beta1 在 Ubuntu 16.04 上失败](https://meta.discourse.org/t/upgrade-from-2-8-0-beta10-to-3-1-0-beta1-failed-on-ubuntu-16-04/252929)

<div class="topic-metadata">

**Author:** [@jmiranda](https://meta.discourse.org/u/jmiranda)\
**回覆:** 2\
**Last updated:** [2023年一月26日 05:35 UTC](https://meta.discourse.org/t/upgrade-from-2-8-0-beta10-to-3-1-0-beta1-failed-on-ubuntu-16-04/252929 "2023-01-26T05:35:04Z")

</div>

我自托管的 discourse 实例运行在 Digital Ocean 的液滴上，使用的是已停止支持的 Ubuntu 16.04 版本，所以我可以接受无法恢复的情况。 但是，我只有一个一周前的数据库备份，所以我……

---

## [PG12 中索引损坏，如何修复？](https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570)

<div class="topic-metadata">

**Author:** [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**回覆:** 43\
**Last updated:** [2023年一月26日 05:16 UTC](https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570 "2023-01-26T05:16:35Z")

</div>

抱歉再次打扰，我遇到了一个非常奇怪的错误： discourse=# REINDEX SCHEMA CONCURRENTLY public; ERROR: 无法创建唯一索引 "index\_tags\_on\_name\_ccnew" DETAIL: 键 (name)=(chronicillness) 已重复…

---

## [Is it possible to login into the postgres database inside the docker image?](https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167)

<div class="topic-metadata">

**Author:** [@badr](https://meta.discourse.org/u/badr)\
**回覆:** 6\
**Last updated:** [2023年一月26日 04:29 UTC](https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167 "2023-01-26T04:29:27Z")

</div>

Hello, I need to integrate a product on my discourse by adding some tables to the discourse db in postgres. Where can I find the username and password for the PostGres DB Discourse is using. I also wanted to ask if I …

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

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