# Self-hosting

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

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

**Page:** 49

---

## [CPUとRAMではどちらが最も合理的な結果をもたらしますか？](https://meta.discourse.org/t/what-gives-the-most-resonable-result-cpu-or-ram/263240)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**返信:** 4\
**最終更新:** [2023 年 4 月 29 日午後 4:27 UTC](https://meta.discourse.org/t/what-gives-the-most-resonable-result-cpu-or-ram/263240 "2023-04-29T16:27:10Z")

</div>

わかっています。emacsはviより優れているか、nanoがあるのにviより優れているか、といった質問は難しく、答えようがありませんが、それでもです。 これらのAI関連のもののために、DigitalOceanで新しいドロップレットを作成することを検討しています。それで…

---

## [カスタムプラグインがアップデート後に表示されない](https://meta.discourse.org/t/custom-plugin-isnt-displayed-after-update/263055)

<div class="topic-metadata">

**Author:** [@greeen\_way](https://meta.discourse.org/u/greeen_way)\
**返信:** 5\
**最終更新:** [2023 年 4 月 27 日午後 2:52 UTC](https://meta.discourse.org/t/custom-plugin-isnt-displayed-after-update/263055 "2023-04-27T14:52:26Z")

</div>

こんにちは！カスタムプラグインのみを更新しようとしましたが、更新ボタンが無効になっていたため、Docker Manager を更新することにしました（アクティブな更新ボタンがあるのはそれだけなので）。完了すると、Discourse と私たちのプラグインは自動的に…

---

## [CDNで実行するとS3のサムネイルで403 Forbiddenが発生](https://meta.discourse.org/t/403-forbidden-for-thumbnails-on-s3-when-running-with-cdn/262967)

<div class="topic-metadata">

**Author:** [@nodomain](https://meta.discourse.org/u/nodomain)\
**返信:** 7\
**最終更新:** [2023 年 4 月 27 日午後 2:12 UTC](https://meta.discourse.org/t/403-forbidden-for-thumbnails-on-s3-when-running-with-cdn/262967 "2023-04-27T14:12:22Z")

</div>

GitHub をベースにした AWS 上の公式 Docker ホスティング セットアップ - aws-samples/aws-cdk-for-discourse: AWS CDK for Discourse を使用しています。 一般的な CDN セットアップは正常に機能しており、たとえば画像は CDN URL 経由で正常に配信されます。 しかし、初期化…

---

## [TLSを有効にした後、ポート465は公開する必要がありますか？](https://meta.discourse.org/t/after-enabling-tls-does-port-465-need-to-be-exposed/283813)

<div class="topic-metadata">

**Author:** [@dfriestedt](https://meta.discourse.org/u/dfriestedt)\
**返信:** 1\
**最終更新:** [2023 年 4 月 27 日午前 10:43 UTC](https://meta.discourse.org/t/after-enabling-tls-does-port-465-need-to-be-exposed/283813 "2023-04-27T10:43:55Z")

</div>

TLSを有効にした後、ポート465も公開する必要がありますか？デフォルトでは25のみが公開されているようです。

---

## [Discourseの自動起動を無効にする](https://meta.discourse.org/t/disable-autostart-of-discourse/262939)

<div class="topic-metadata">

**Author:** [@BlueSky](https://meta.discourse.org/u/BlueSky)\
**返信:** 1\
**最終更新:** [2023 年 4 月 26 日午後 1:26 UTC](https://meta.discourse.org/t/disable-autostart-of-discourse/262939 "2023-04-26T13:26:31Z")

</div>

Discourse（Docker）の自動起動を無効にする方法はありますか？ フォーラムやGoogleで調べましたが、答えが見つかりませんでした。 現在、サーバーが再起動したときにDiscourseが自動起動しないようにしたいと考えています。

---

## [セルフホストのDiscourseインスタンスのメール設定に関するヘルプ/アドバイスが必要です](https://meta.discourse.org/t/need-help-advice-on-email-setup-for-a-self-hosted-discourse-instance/262893)

<div class="topic-metadata">

**Author:** [@RyanO](https://meta.discourse.org/u/RyanO)\
**返信:** 12\
**最終更新:** [2023 年 4 月 26 日午前 2:17 UTC](https://meta.discourse.org/t/need-help-advice-on-email-setup-for-a-self-hosted-discourse-instance/262893 "2023-04-26T02:17:17Z")

</div>

数日間グーグルで検索しても答えが見つからず、もしかしたらメールの設定を根本的に誤解しているのかもしれません（以前に触ったことがありません）。 ウェブサイトを運営しているドメイン（example.com）があります…

---

## [アップグレードの問題：重複キーによるアップグレード失敗、スナップショット復元失敗](https://meta.discourse.org/t/upgrade-issues-failed-upgrade-due-to-duplicate-key-failed-snapshot-restore/182714)

<div class="topic-metadata">

**Author:** [@kirupa](https://meta.discourse.org/u/kirupa)\
**返信:** 7\
**最終更新:** [2023 年 4 月 25 日午後 6:18 UTC](https://meta.discourse.org/t/upgrade-issues-failed-upgrade-due-to-duplicate-key-failed-snapshot-restore/182714 "2023-04-25T18:18:39Z")

</div>

最新のアップグレードを実行した際に、次のような問題が発生しました。 PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index\_users\_on\_username\_lower" DETAIL: Key (user…

---

## [Nginxのworker\_connections設定 / 同時ユーザー数](https://meta.discourse.org/t/nginx-worker-connections-setting-concurrent-users-count/262844)

<div class="topic-metadata">

**Author:** [@supercobra](https://meta.discourse.org/u/supercobra)\
**返信:** 2\
**最終更新:** [2023 年 4 月 25 日午後 6:18 UTC](https://meta.discourse.org/t/nginx-worker-connections-setting-concurrent-users-count/262844 "2023-04-25T18:18:08Z")

</div>

こんにちは。 nginxのworker\_connections値を正しく設定しようとしています。デフォルトは768ですが、常に制限に達しています。Discourseインスタンスを同時に使用しているユーザー数をどのように知ることができるか疑問に思っています…

---

## [データベースのシャットダウンが遅いため、再構築に問題が発生](https://meta.discourse.org/t/problem-rebuilding-because-of-slow-database-shutdown/262366)

<div class="topic-metadata">

**Author:** [@Wingtip](https://meta.discourse.org/u/Wingtip)\
**返信:** 26\
**最終更新:** [2023 年 4 月 25 日午後 3:47 UTC](https://meta.discourse.org/t/problem-rebuilding-because-of-slow-database-shutdown/262366 "2023-04-25T15:47:12Z")

</div>

この推奨されたアップグレードは失敗し、フォーラムを元に戻すことができませんでした。現在、discourse-doctor を実行して修正を試みており、それも失敗した場合は VM スナップショットを取得しました。 出力: 2023-04-19 18:28:31.298 UTC \[42\] L…

---

## [画像が表示されません](https://meta.discourse.org/t/my-images-are-not-working/262680)

<div class="topic-metadata">

**Author:** [@harshith\_gogineni](https://meta.discourse.org/u/harshith_gogineni)\
**返信:** 15\
**最終更新:** [2023 年 4 月 24 日午後 11:47 UTC](https://meta.discourse.org/t/my-images-are-not-working/262680 "2023-04-24T23:47:58Z")

</div>

すでにアップロードされた画像がディスクールサイトに表示されませんが、新しい画像を追加すると表示されます。 既存の画像に対するレスポンスヘッダーはサーバーがs3ですが、新しい画像はnginxです。何が原因でしょうか…

---

## [PG::UndefinedTable: エラー](https://meta.discourse.org/t/pg-error/262765)

<div class="topic-metadata">

**Author:** [@Justman10000](https://meta.discourse.org/u/Justman10000)\
**返信:** 10\
**最終更新:** [2023 年 4 月 24 日午後 11:46 UTC](https://meta.discourse.org/t/pg-error/262765 "2023-04-24T23:46:58Z")

</div>

こんにちは。Discourseをスタンドアロンでインストールしましたが、このエラーが発生します。 PG::UndefinedTable: ERROR: relation “groups” does not exist

---

## [コンテナ内のdiscourseの上流障害を特定する方法、502 Bad Gatewayが発生](https://meta.discourse.org/t/how-to-track-down-failure-of-discourse-upstream-inside-container-resulting-in-502-bad-gateway/256099)

<div class="topic-metadata">

**Author:** [@Godmar\_Back](https://meta.discourse.org/u/Godmar_Back)\
**返信:** 7\
**最終更新:** [2023 年 4 月 23 日午後 6:59 UTC](https://meta.discourse.org/t/how-to-track-down-failure-of-discourse-upstream-inside-container-resulting-in-502-bad-gateway/256099 "2023-04-23T18:59:33Z")

</div>

(はい、最初に検索しました) 最近管理アップグレードインターフェイスを使用した後、私のディスコースインスタンスが動作しなくなり、502 Bad Gatewayという応答が返ってきました。 コンテナに入ったところ、nginxが実行されているように見えますが、それは…

---

## [ユニコーンの数を変更する方法](https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732)

<div class="topic-metadata">

**Author:** [@Aleksandre](https://meta.discourse.org/u/Aleksandre)\
**返信:** 4\
**最終更新:** [2023 年 4 月 21 日午後 3:43 UTC](https://meta.discourse.org/t/how-to-change-the-number-of-unicorns/211732 "2023-04-21T15:43:56Z")

</div>

こんにちは。 ユニコーンの実行数を設定する方法を知りたいです。RAMの使用量を調整するために必要ですが、このフォーラムやネットで具体的な情報を見つけることができませんでした。 私は情報…

---

## [Migrate\_to\_s3はロゴ画像のため失敗します](https://meta.discourse.org/t/migrate-to-s3-fails-because-of-logo-images/262313)

<div class="topic-metadata">

**Author:** [@jfmontanaro](https://meta.discourse.org/u/jfmontanaro)\
**返信:** 1\
**最終更新:** [2023 年 4 月 20 日午後 5:23 UTC](https://meta.discourse.org/t/migrate-to-s3-fails-because-of-logo-images/262313 "2023-04-20T17:23:27Z")

</div>

ガイドに従って、既存のサイトをローカルでのアップロード保存からS3での保存に移行しています。新しいアップロードはすべて正常に機能しており、手動で確認したところS3に表示されていることを確認しました。しかし…

---

## [添付ファイル：おっと！そのページは存在しないか、プライベートです](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947)

<div class="topic-metadata">

**Author:** [@Amirk](https://meta.discourse.org/u/Amirk)\
**返信:** 5\
**最終更新:** [2023 年 4 月 20 日午後 12:08 UTC](https://meta.discourse.org/t/attachments-oops-that-page-doesn-t-exist-or-is-private/260947 "2023-04-20T12:08:20Z")

</div>

添付ファイルリンクをクリックすると、エラーが発生します。 おっと！そのページは存在しないか、非公開です。 Discourseは初めてで、どうすればわかるかわかりません。 設定の調整はあまり行っていません。 匿名ユーザーのダウンロードを防ぐをオンにするだけです…

---

## [3.1.0.beta4アップグレード中のPG::UniqueViolation問題](https://meta.discourse.org/t/pg-uniqueviolation-problem-during-3-1-0-beta4-upgrade/262163)

<div class="topic-metadata">

**Author:** [@ahmedeldeep](https://meta.discourse.org/u/ahmedeldeep)\
**返信:** 5\
**最終更新:** [2023 年 4 月 19 日午後 5:16 UTC](https://meta.discourse.org/t/pg-uniqueviolation-problem-during-3-1-0-beta4-upgrade/262163 "2023-04-19T17:16:54Z")

</div>

3.1.0.beta4にアップグレード中に、次のエラーが発生しました。 I, \[2023-04-19T00:02:26.057232 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'LOAD\_PLUGINS=0 bundle exec rake plugin:pull\_compatible\_all' I, \[2023-04-…

---

## [v3.0.3へのアップグレード中に実行時エラーが発生](https://meta.discourse.org/t/runtime-error-during-upgrade-to-v3-0-3/262165)

<div class="topic-metadata">

**Author:** [@Paul\_King](https://meta.discourse.org/u/Paul_King)\
**返信:** 16\
**最終更新:** [2023 年 4 月 19 日午後 1:27 UTC](https://meta.discourse.org/t/runtime-error-during-upgrade-to-v3-0-3/262165 "2023-04-19T13:27:29Z")

</div>

新しいセキュリティおよびバグ修正リリース3.0.3への「ワンクリックアップグレード」メール通知に、現在のバージョン3.0.1から対応しました。最初のDocker Managerのアップグレードは問題なく完了しました（アップグレードの進捗状況によると…

---

## [スナップショットを使用してホストOSをアップグレードできますか？](https://meta.discourse.org/t/can-snapshots-be-used-when-upgrading-the-host-os/261843)

<div class="topic-metadata">

**Author:** [@Kartoon](https://meta.discourse.org/u/Kartoon)\
**返信:** 12\
**最終更新:** [2023 年 4 月 19 日午後 12:50 UTC](https://meta.discourse.org/t/can-snapshots-be-used-when-upgrading-the-host-os/261843 "2023-04-19T12:50:56Z")

</div>

申し訳ありませんが、これがすでに尋ねられたかどうかはわかりません。調べましたが、私が計画している正確なシナリオは見つかりませんでした（または見逃しましたが、初めて行うことなので、正しく理解したいと思っています）。 私はまだ18歳（そこで…

---

## [サイトがクラッシュしました - 私の選択肢は何ですか](https://meta.discourse.org/t/site-crashed-what-are-my-options/261875)

<div class="topic-metadata">

**Author:** [@asn](https://meta.discourse.org/u/asn)\
**返信:** 17\
**最終更新:** [2023 年 4 月 18 日午後 10:28 UTC](https://meta.discourse.org/t/site-crashed-what-are-my-options/261875 "2023-04-18T22:28:44Z")

</div>

2.5.0.beta4 のインストールがあります。 アップグレードされる予定でしたが、その過程で壊れてしまい、サイトが読み込まれなくなりました。 ファイルやデータベースなどはすべて持っています。Ubuntu 16 の Docker 経由でした。 修正するオプションは何でしょうか…

---

## [インストールの復旧を試みる](https://meta.discourse.org/t/trying-to-recover-an-installation/262008)

<div class="topic-metadata">

**Author:** [@Norike](https://meta.discourse.org/u/Norike)\
**返信:** 7\
**最終更新:** [2023 年 4 月 18 日午後 9:23 UTC](https://meta.discourse.org/t/trying-to-recover-an-installation/262008 "2023-04-18T21:23:13Z")

</div>

CentOSマシンにDiscourseをインストールしました。ガイドはこちらに従いました。 参考までに、NGINX Proxy Managerも使用しています。 インストールは数週間うまくいっていましたが、マシンを再起動する必要がありました。その後、失敗しました…

---

## [Gitlab CI/CDパイプライン用Discourseイメージビルダー](https://meta.discourse.org/t/discourse-image-builder-for-gitlab-ci-cd-pipelines/261857)

<div class="topic-metadata">

**Author:** [@mkbrechtel](https://meta.discourse.org/u/mkbrechtel)\
**返信:** 9\
**最終更新:** [2023 年 4 月 18 日午後 2:28 UTC](https://meta.discourse.org/t/discourse-image-builder-for-gitlab-ci-cd-pipelines/261857 "2023-04-18T14:28:32Z")

</div>

こんにちは！ Discourse OCIイメージを作成するために使用されるRPS Discourse Image Builderというリポジトリを作成しました。これは、ここにいる人々の役に立つと思います。主に、d…を待つ必要がないようにしました。

---

## [コンソールから管理者アカウントを有効化](https://meta.discourse.org/t/activating-admin-account-from-console/79146)

<div class="topic-metadata">

**Author:** [@gpritiranjan](https://meta.discourse.org/u/gpritiranjan)\
**返信:** 7\
**最終更新:** [2023 年 4 月 18 日午前 6:06 UTC](https://meta.discourse.org/t/activating-admin-account-from-console/79146 "2023-04-18T06:06:25Z")

</div>

Discourse を Digital Ocean の droplet を使用したワンクリックインストーラーでセットアップしようとしています。すべての手順に従い、SMTP 設定も正しく行いましたが、管理者アカウントの登録時に th…

---

## [バックアップ用の新しい安価なS3プロバイダー](https://meta.discourse.org/t/new-cheap-s3-provider-for-our-backup/259368)

<div class="topic-metadata">

**Author:** [@commercial](https://meta.discourse.org/u/commercial)\
**返信:** 2\
**最終更新:** [2023 年 3 月 25 日午前 7:31 UTC](https://meta.discourse.org/t/new-cheap-s3-provider-for-our-backup/259368 "2023-03-25T07:31:18Z")

</div>

LETでこれを見ました… しばしば提供される10GBのように安いです… ボーナス：初年度90％オフ、つまり$4/1To/y バックアップストレージの場合、テストするのに費用はかかりません…

---

## [ローカルでイメージ 'local\_discourse/app:latest' が見つかりません](https://meta.discourse.org/t/unable-to-find-image-local-discourse-app-latest-locally/261881)

<div class="topic-metadata">

**Author:** [@Aleksander](https://meta.discourse.org/u/Aleksander)\
**返信:** 1\
**最終更新:** [2023 年 4 月 17 日午前 3:25 UTC](https://meta.discourse.org/t/unable-to-find-image-local-discourse-app-latest-locally/261881 "2023-04-17T03:25:44Z")

</div>

こんにちは、実行中だった私のアプリを起動しようとしていますが、問題が発生しています。誰か助けてください :cry: root@Ubuntu-1804-bionic-64-minimal /var/discourse # ./launcher start app x86\_64 arch detected. + /usr/bin/d…

---

## [Discourseのインストールがどんどん遅くなっています](https://meta.discourse.org/t/discourse-installation-has-been-getting-slower-and-slower-and-slower/260501)

<div class="topic-metadata">

**Author:** [@Hubbe](https://meta.discourse.org/u/Hubbe)\
**返信:** 36\
**最終更新:** [2023 年 4 月 15 日午後 8:31 UTC](https://meta.discourse.org/t/discourse-installation-has-been-getting-slower-and-slower-and-slower/260501 "2023-04-15T20:31:41Z")

</div>

私のディスコースのインストールは、ここ数週間でますます遅くなっています。以前は、アプリを再構築することでこの問題が解決していましたが、今回は役に立たないようです。 私は以下を探しました…

---

## [このエラーは何ですか？](https://meta.discourse.org/t/what-is-this-error/261762)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**返信:** 3\
**最終更新:** [2023 年 4 月 15 日午前 7:05 UTC](https://meta.discourse.org/t/what-is-this-error/261762 "2023-04-15T07:05:29Z")

</div>

失敗 -------------------- Pups::ExecError: cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/tensorflow/tfjs-models/tree/master/toxicity はリターンコード #\<Process::Status: pid 662 e\> で失敗しました…

---

## [ログイン時に「不明なエラー」、未定義メソッド \`password\_algorithm='](https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664)

<div class="topic-metadata">

**Author:** [@shyguy](https://meta.discourse.org/u/shyguy)\
**返信:** 4\
**最終更新:** [2023 年 4 月 14 日午後 7:42 UTC](https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664 "2023-04-14T19:42:56Z")

</div>

phpbb3のマイグレーションを、しばらくの間（改善のために週に数回行ってきたように）正常に動作する\`/shared\`の「テンプレート」の上に実行したところ、ログインできなくなりました。 ログインダイアログで「不明なエラー」が表示されました…

---

## [特定のコミットハッシュでビルドが失敗しました](https://meta.discourse.org/t/build-failed-for-specific-commit-hash/260672)

<div class="topic-metadata">

**Author:** [@ibahnasy](https://meta.discourse.org/u/ibahnasy)\
**返信:** 8\
**最終更新:** [2023 年 4 月 12 日午前 8:54 UTC](https://meta.discourse.org/t/build-failed-for-specific-commit-hash/260672 "2023-04-12T08:54:20Z")

</div>

Discourseを特定のコミット「dc5b37c01131bfc42eb666ec2bc779433df309cb」に対してビルドする必要がありますが、失敗しました。 # ./launcher rebuild app Device "docker0" does not exist. x86\_64 arch detected. WARNING: containers/app.yml file …

---

## [DiscourseにおけるSidekiqの利用](https://meta.discourse.org/t/sidekiq-use-in-discourse/261140)

<div class="topic-metadata">

**Author:** [@deepak\_b](https://meta.discourse.org/u/deepak_b)\
**返信:** 6\
**最終更新:** [2023 年 4 月 12 日午前 3:50 UTC](https://meta.discourse.org/t/sidekiq-use-in-discourse/261140 "2023-04-12T03:50:30Z")

</div>

DiscourseでSidekiqはどのようなジョブ/スケジューリングを実行していますか？ユーザーがトピックや記事を検索する際に使用されますか？

---

## [Dockerのインストールに利点はありますか？](https://meta.discourse.org/t/is-there-an-advantage-to-a-docker-installation/261128)

<div class="topic-metadata">

**Author:** [@jagath](https://meta.discourse.org/u/jagath)\
**返信:** 3\
**最終更新:** [2023 年 4 月 11 日午後 10:52 UTC](https://meta.discourse.org/t/is-there-an-advantage-to-a-docker-installation/261128 "2023-04-11T22:52:26Z")

</div>

ドキュメントやここの多くのスレッドではDockerが唯一の（良い）前進方法であると示唆していますが、その理由を知りたいと思いました。月額3.50ドルのAmazon Lightsail Debianボックスを入手し、Discourseを稼働させました…

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

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