# Self-hosting

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

[最新](https://meta.discourse.org/latest.md) · [カテゴリ](https://meta.discourse.org/categories.md) · [タグ](https://meta.discourse.org/tags.md)

**Page:** 93

---

## [NGINXプロキシの背後でドメイン名のチェックが失敗する](https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800)

<div class="topic-metadata">

**Author:** [@felixoi](https://meta.discourse.org/u/felixoi)\
**返信:** 1\
**最終更新:** [2020 年 10 月 21 日午後 12:37 UTC](https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800 "2020-10-21T12:37:45Z")

</div>

こんにちは。 内部IPアドレスのみを持ち、別のVM上のnginxプロキシ経由でのみ到達可能なVMでdiscourseインスタンスを起動しようとしています。そのため、プロキシには次の設定が含まれています。 upstream f…

---

## [2.6.0 Beta4のアップデートがdbエラーのようなもので失敗しました](https://meta.discourse.org/t/2-6-0-beta4-update-failed-with-what-looks-like-db-errors/167661)

<div class="topic-metadata">

**Author:** [@Gunnar](https://meta.discourse.org/u/Gunnar)\
**返信:** 6\
**最終更新:** [2020 年 10 月 19 日午後 10:24 UTC](https://meta.discourse.org/t/2-6-0-beta4-update-failed-with-what-looks-like-db-errors/167661 "2020-10-19T22:24:38Z")

</div>

こんにちは。 コマンドラインで「launcher rebuild app」を実行して、しばらく正常に動作していた 2.6.0.beta3 (7afb5be5f9) から 2.6.0.beta4 (20分前現在) にアップデートしようとしました。通常はこれでアップデートしています。 …

---

## [example.com/blogでWordPressをセットアップする方法](https://meta.discourse.org/t/how-to-setup-wordpress-at-example-com-blog/167654)

<div class="topic-metadata">

**Author:** [@avndp](https://meta.discourse.org/u/avndp)\
**返信:** 1\
**最終更新:** [2020 年 10 月 19 日午後 6:46 UTC](https://meta.discourse.org/t/how-to-setup-wordpress-at-example-com-blog/167654 "2020-10-19T18:46:53Z")

</div>

example.com/blog にブログを設置したいのですが、example.com は Discourse のインスタンスです。サブドメインは使用したくありません。何か問題はありますか？もしなければ、どなたか手順を教えていただけると幸いです。…

---

## [Postgres アップグレード時のアプリ再ビルド失敗の問題](https://meta.discourse.org/t/issue-rebuilding-app-failing-on-postgres-upgrade/91278)

<div class="topic-metadata">

**Author:** [@Jose\_C\_Gomez](https://meta.discourse.org/u/Jose_C_Gomez)\
**返信:** 13\
**最終更新:** [2020 年 10 月 18 日午前 4:35 UTC](https://meta.discourse.org/t/issue-rebuilding-app-failing-on-postgres-upgrade/91278 "2020-10-18T04:35:07Z")

</div>

ランチャーの再ビルドを試みており、以下のエラーが発生しています。 I, \[2018-06-30T18:56:08.346656 #17\] INFO -- : I, \[2018-06-30T18:56:08.346728 #17\] INFO -- : \> chown -R postgres:postgres /shared/postgres\_data I, \[2018-06-30T18:5…

---

## [Digital Oceanフォーラムがダウン](https://meta.discourse.org/t/digital-ocean-forum-down/167316)

<div class="topic-metadata">

**Author:** [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)\
**返信:** 5\
**最終更新:** [2020 年 10 月 16 日午前 2:27 UTC](https://meta.discourse.org/t/digital-ocean-forum-down/167316 "2020-10-16T02:27:09Z")

</div>

こんにちは Digital Oceanでしばらくフォーラムをホストしていましたが、今日フォーラムがダウンしました。フォーラムがダウンした理由は何も示唆されていません。フォーラムをロードしようとすると、「HTTPエラー500」と表示されます。私は…

---

## [SendGrid との統合ができません](https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523)

<div class="topic-metadata">

**Author:** [@Satwik\_Kansal](https://meta.discourse.org/u/Satwik_Kansal)\
**返信:** 12\
**最終更新:** [2020 年 10 月 15 日午後 8:11 UTC](https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523 "2020-10-15T20:11:28Z")

</div>

こんにちは、 SendGrid のメールサービスを使用しようとしているのですが、ログに以下のエラーが出力され続けています。 Job exception: 535 Authentication failed: Bad username / password 何が間違っているのか分かりません。私の設定は以下のようになっています…

---

## [説明書通りにインストール](https://meta.discourse.org/t/installation-by-the-book/167263)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**返信:** 2\
**最終更新:** [2020 年 10 月 15 日午前 11:24 UTC](https://meta.discourse.org/t/installation-by-the-book/167263 "2020-10-15T11:24:31Z")

</div>

Discourse を最も「公式」な手順に従ってインストールしようとしています。これは、後々の手間を省くためです。以下に私が実行したことを示します。インストール手順から直接リンクされているわけではありませんが、No.4 の…

---

## [Dockerの外からpostgresqlに接続する方法](https://meta.discourse.org/t/how-to-connect-postgresql-outside-the-docker/167270)

<div class="topic-metadata">

**Author:** [@Minh\_phuong\_Hoang](https://meta.discourse.org/u/Minh_phuong_Hoang)\
**返信:** 0\
**最終更新:** [2020 年 10 月 15 日午前 11:19 UTC](https://meta.discourse.org/t/how-to-connect-postgresql-outside-the-docker/167270 "2020-10-15T11:19:00Z")

</div>

SQLで情報を更新したいのですが、可能でしょうか？ どうかお願いします！！！ありがとうございます :sob: :sob: :sob:

---

## [Redisサーバーのメモリ不足](https://meta.discourse.org/t/redis-server-out-of-memory/167241)

<div class="topic-metadata">

**Author:** [@gascn](https://meta.discourse.org/u/gascn)\
**返信:** 2\
**最終更新:** [2020 年 10 月 15 日午前 1:43 UTC](https://meta.discourse.org/t/redis-server-out-of-memory/167241 "2020-10-15T01:43:02Z")

</div>

最近、DigitalOceanにインストールしたDiscourseアプリでダウンタイムが発生しており、システムログには次のようなメッセージが表示されていました。 Dropletのメモリをアップグレードする必要がありますか？

---

## [Disk space usage of /lib/docker is high](https://meta.discourse.org/t/disk-space-usage-of-lib-docker-is-high/67375)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**返信:** 11\
**最終更新:** [2020 年 10 月 14 日午前 8:19 UTC](https://meta.discourse.org/t/disk-space-usage-of-lib-docker-is-high/67375 "2020-10-14T08:19:11Z")

</div>

Ran into a disk space issue on one of my droplets this morning. Discourse has almost filled the 30GB Using ncdu, I’m getting /discourse 6.4GB /lib/docker 18.2GB There are a fair number of posts & uploads, so …

---

## [X-Forwarded を使用するかどうか？](https://meta.discourse.org/t/use-x-forwarded-or-not/167128)

<div class="topic-metadata">

**Author:** [@aliyosefzai](https://meta.discourse.org/u/aliyosefzai)\
**返信:** 1\
**最終更新:** [2020 年 10 月 13 日午後 9:25 UTC](https://meta.discourse.org/t/use-x-forwarded-or-not/167128 "2020-10-13T21:25:22Z")

</div>

こんにちは。 当社のDiscourseはファイアウォール内で設定されており、nginxへのトラフィックはすべて単一のIPアドレスから来ています。これにより、フォーラムにアクセスしている一部のユーザーでエラー（429 Too Many requests）が発生しています。元のI…を転送できます…

---

## [Sidekiq is consuming too much memory, restarting](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395)

<div class="topic-metadata">

**Author:** [@gkln](https://meta.discourse.org/u/gkln)\
**返信:** 38\
**最終更新:** [2020 年 10 月 13 日午前 6:43 UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395 "2020-10-13T06:43:28Z")

</div>

Hi, We get this message in the logs about twice a day since the update to Discourse 1.6.0: Sidekiq is consuming too much memory (using: 532.09M) for forum.detendusdupad.com, restarting Is it a normal behaviour, a mi…

---

## [インスタンスパフォーマンスの向上（メガトピック、データベースサイズ、極端な負荷）](https://meta.discourse.org/t/improving-instance-performance-megatopics-database-size-and-extreme-load/144277)

<div class="topic-metadata">

**Author:** [@Iceman](https://meta.discourse.org/u/Iceman)\
**返信:** 60\
**最終更新:** [2020 年 10 月 13 日午前 6:04 UTC](https://meta.discourse.org/t/improving-instance-performance-megatopics-database-size-and-extreme-load/144277 "2020-10-13T06:04:29Z")

</div>

Discourse コミュニティの皆さん、こんにちは！ 最近、私のサイトが急成長しているため、Discourse インストールのパフォーマンス向上と少しの整理整頓を試みています。 2 つの問題を特定しました。検索…

---

## [Service Worker のキャッシュ使用量が異常に多い](https://meta.discourse.org/t/unusually-large-service-worker-cache-usage/166801)

<div class="topic-metadata">

**Author:** [@dtinth](https://meta.discourse.org/u/dtinth)\
**返信:** 1\
**最終更新:** [2020 年 10 月 9 日午後 9:00 UTC](https://meta.discourse.org/t/unusually-large-service-worker-cache-usage/166801 "2020-10-09T21:00:59Z")

</div>

ディスク容量を解放しようとしている間、Google Chromeのプロファイルが異常に多くのディスク容量を消費していることに気づきました。ファイルシステム可視化ツールは、Service Workerキャッシュストレージフォルダを指しています…

---

## [複数のコンテナ構成でDiscourseをアップグレードするにはどうすればよいですか？](https://meta.discourse.org/t/how-do-i-upgrade-discourse-in-a-multiple-container-configuration/166677)

<div class="topic-metadata">

**Author:** [@alexk](https://meta.discourse.org/u/alexk)\
**返信:** 2\
**最終更新:** [2020 年 10 月 8 日午後 5:09 UTC](https://meta.discourse.org/t/how-do-i-upgrade-discourse-in-a-multiple-container-configuration/166677 "2020-10-08T17:09:07Z")

</div>

こんにちは！新しくマルチコンテナのDiscourseをインストールしたばかりなのですが、最適なアップグレード方法について質問があります。 ドキュメントには次のように書かれています。 Discourseの新しいバージョンにアップグレードする際のダウンタイムを最小限に抑える。

---

## [Discobotの証明書とhijack.rbがバーに](https://meta.discourse.org/t/discobots-certificate-and-hijack-rb-are-in-a-bar/166648)

<div class="topic-metadata">

**Author:** [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**返信:** 0\
**最終更新:** [2020 年 10 月 8 日午前 11:25 UTC](https://meta.discourse.org/t/discobots-certificate-and-hijack-rb-are-in-a-bar/166648 "2020-10-08T11:25:02Z")

</div>

…そして web.socketed.template が入ります :grin: これは私を困惑させます… 見たところ完全に正常なHTTPSディスコースがありますが、証明書.svgがロードされません。（エラー500、バグではなく、私のセットアップに間違いなく問題があります… :sob…

---

## [メール内のリンクがhttpsではなくhttpを使用している](https://meta.discourse.org/t/links-in-emails-are-using-http-instead-of-https/165894)

<div class="topic-metadata">

**Author:** [@Muhammad](https://meta.discourse.org/u/Muhammad)\
**返信:** 5\
**最終更新:** [2020 年 10 月 8 日午前 10:27 UTC](https://meta.discourse.org/t/links-in-emails-are-using-http-instead-of-https/165894 "2020-10-08T10:27:08Z")

</div>

会社のディスカッションフォーラムのセットアップ手順をすべて正常に完了しました。 TLSが有効になっており、設定でforce\_httpsがチェックされています。 新規ユーザーへのアクティベーションメールは、httpsではなくhttpで送信されます…

---

## [ホスト間の移行時にユーザーセッションを維持する](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451)

<div class="topic-metadata">

**Author:** [@TallTrees](https://meta.discourse.org/u/TallTrees)\
**返信:** 16\
**最終更新:** [2020 年 10 月 8 日午前 9:30 UTC](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451 "2020-10-08T09:30:32Z")

</div>

こんにちは！ Discourseインスタンスを新しいホスティングに移行する準備をしています。計画では、古いサイトを読み取り専用にし、バックアップを取得し、それを新しいホスティングに移動して復元し、DNS設定を更新します（短い…

---

## [本番サイトでのベータ版](https://meta.discourse.org/t/beta-version-on-production-site/166592)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**返信:** 1\
**最終更新:** [2020 年 10 月 7 日午後 10:32 UTC](https://meta.discourse.org/t/beta-version-on-production-site/166592 "2020-10-07T22:32:08Z")

</div>

2.6.0.beta3 をインストールしました。これは使用しても問題ないでしょうか、それとも最新のリリースバージョンにダウングレードすべきでしょうか？ よろしくお願いします。

---

## [Discourseと同じDigital Oceanドロップレットで他に何かありますか？](https://meta.discourse.org/t/anything-else-on-same-digital-ocean-droplet-as-discourse/166585)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**返信:** 2\
**最終更新:** [2020 年 10 月 7 日午後 10:01 UTC](https://meta.discourse.org/t/anything-else-on-same-digital-ocean-droplet-as-discourse/166585 "2020-10-07T22:01:44Z")

</div>

Discourse のインストールに関する公式ガイダンスに従いましたが、ウェブサイトの他の部分（小規模な PHP ウェブサイトや 10GB の HTML/ドキュメントなど）をホストすることに関する公式 Discourse の見解についてお伺いしたいのですが…。

---

## [2.5.1から2.5.2へのアップグレード時に本日エラーが発生しました、discourse-assign](https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494)

<div class="topic-metadata">

**Author:** [@nahimov](https://meta.discourse.org/u/nahimov)\
**返信:** 4\
**最終更新:** [2020 年 10 月 7 日午後 12:15 UTC](https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494 "2020-10-07T12:15:36Z")

</div>

本日、本番フォーラムを更新する前に、テストフォーラムをバージョン2.5.1安定版に更新しようとしたところ、以下のエラーが発生しました。 I, \[2020-10-07T06:39:44.735617 #1\] INFO -- : \> cd /var/www/discourse && su discourse …

---

## [特定の（古い）バージョンのDiscourseをインストールするにはどうすればよいですか](https://meta.discourse.org/t/how-would-i-install-a-certain-old-version-of-discourse/166423)

<div class="topic-metadata">

**Author:** [@helmi](https://meta.discourse.org/u/helmi)\
**返信:** 3\
**最終更新:** [2020 年 10 月 6 日午後 9:13 UTC](https://meta.discourse.org/t/how-would-i-install-a-certain-old-version-of-discourse/166423 "2020-10-06T21:13:09Z")

</div>

テストサーバーをセットアップしようとしています。アップデートやプラグインのインストールなどをテストするために使用する予定です。ライブフォーラムは少し前のバージョン（2.5.0 beta7）なので、テストサーバーにもこの正確なバージョンをインストールしたいと思います。それは…

---

## [警告：overcommit\_memory と Transparent Huge Pages](https://meta.discourse.org/t/warnings-overcommit-memory-and-transparent-huge-pages/166216)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**返信:** 3\
**最終更新:** [2020 年 10 月 6 日午前 11:37 UTC](https://meta.discourse.org/t/warnings-overcommit-memory-and-transparent-huge-pages/166216 "2020-10-06T11:37:03Z")

</div>

これらの警告のいずれかに関する以前のスレッドを見つけましたが、現在の状況を確認するのが最善だと思いました。 2つの警告は次のように始まります。 WARNING overcommit\_memory is set to 0! WARNING you have Transparent Huge Pages (THP) sup…

---

## [HTTPS | ウェブサイトが安全でないと表示されるが、Cloudflareで完全にセットアップされている](https://meta.discourse.org/t/https-website-says-not-secure-but-fully-setup-with-cloudflare/166251)

<div class="topic-metadata">

**Author:** [@\_ESP](https://meta.discourse.org/u/_ESP)\
**返信:** 3\
**最終更新:** [2020 年 10 月 6 日午前 6:25 UTC](https://meta.discourse.org/t/https-website-says-not-secure-but-fully-setup-with-cloudflare/166251 "2020-10-06T06:25:19Z")

</div>

こんにちは。 何時間もかけて、ついにDiscourseをサブドメイン（https://forum.betaproducts.online）で動作させることができました。しかし、サイトを完全に読み込むたびに、左上に「Your connection to this…」と表示されます。

---

## [Automate Discourse Docker with Ansible](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150)

<div class="topic-metadata">

**Author:** [@joebew42](https://meta.discourse.org/u/joebew42)\
**返信:** 19\
**最終更新:** [2020 年 10 月 6 日午前 2:05 UTC](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150 "2020-10-06T02:05:55Z")

</div>

Hello folks, we would like to announce a stable version of Ansible Discourse, it is an ansible playbook that helps you to confgure and provision the Discourse Docker easily. I hope that this project can be useful for e…

---

## [Forum Unusable due to "Can’t save in background: fork: Cannot allocate memory”](https://meta.discourse.org/t/forum-unusable-due-to-can-t-save-in-background-fork-cannot-allocate-memory/57781)

<div class="topic-metadata">

**Author:** [@Goosy](https://meta.discourse.org/u/Goosy)\
**返信:** 12\
**最終更新:** [2019 年 5 月 17 日午後 6:30 UTC](https://meta.discourse.org/t/forum-unusable-due-to-can-t-save-in-background-fork-cannot-allocate-memory/57781 "2019-05-17T18:30:44Z")

</div>

I’m using a 2GB Digital Ocean Droplet and I keep getting 500 errors when users are trying to post new comments. I checked the server logs and I see them full of these 2 lines: 44:M 22 Feb 12:10:04.079 \* 1 changes in 90…

---

## [ドメイン名の変更ができません](https://meta.discourse.org/t/unable-to-change-domain-name/166139)

<div class="topic-metadata">

**Author:** [@bjrno](https://meta.discourse.org/u/bjrno)\
**返信:** 10\
**最終更新:** [2020 年 10 月 4 日午後 12:00 UTC](https://meta.discourse.org/t/unable-to-change-domain-name/166139 "2020-10-04T12:00:56Z")

</div>

皆さん、こんにちは。 デジタルオーシャンのドロップレットにディスコースをインストールするチュートリアルに従ったところ、うまく動作しました。 discourse.mydomain.com を使用してインストールしましたが、サブドメインなしで mydomain.com に移動したいと考えています。 明白な…

---

## [インストールエラー ヘルプをお願いします](https://meta.discourse.org/t/install-error-please-help/165981)

<div class="topic-metadata">

**Author:** [@TheGoodIn](https://meta.discourse.org/u/TheGoodIn)\
**返信:** 1\
**最終更新:** [2020 年 10 月 2 日午前 5:58 UTC](https://meta.discourse.org/t/install-error-please-help/165981 "2020-10-02T05:58:36Z")

</div>

インストール中にエラーが発生したのですが、どなたか手伝っていただけますか？

---

## [550-検証に失敗しました](https://meta.discourse.org/t/550-verification-failed/165977)

<div class="topic-metadata">

**Author:** [@MidnightCheesePizza](https://meta.discourse.org/u/MidnightCheesePizza)\
**返信:** 0\
**最終更新:** [2020 年 10 月 1 日午後 11:12 UTC](https://meta.discourse.org/t/550-verification-failed/165977 "2020-10-01T23:12:59Z")

</div>

Discourse を再インストールし、メールプロバイダーとして自分のウェブサイトホストを使用した後（受信トレイと送信トレイを制御したいので Mailgun を使用したくありません）、すべてのメールで 550-Verification Failed というエラーが発生していますが、Eメール…

---

## [レビューで投稿を承認する際に「500内部サーバーエラー」が発生](https://meta.discourse.org/t/500-internal-server-error-when-approving-a-post-in-review/163606)

<div class="topic-metadata">

**Author:** [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**返信:** 9\
**最終更新:** [2020 年 10 月 1 日午後 9:55 UTC](https://meta.discourse.org/t/500-internal-server-error-when-approving-a-post-in-review/163606 "2020-10-01T21:55:18Z")

</div>

こんにちは。 Discourseのバージョン2.5.1を使用していますが、レビューで投稿を承認すると「500 Internal Server Error」が発生します。 エラーは/logsにあります。 メッセージ（7件のコピーが報告されています） ActiveRecord::StatementInvalid (PG::InFailed…

[前のページ](https://meta.discourse.org/c/support/self-hosting/31.md?page=91)

[次のページ](https://meta.discourse.org/c/support/self-hosting/31.md?page=93)
