Pups::ExecError: postgres ユーザーで 'psql discourse -c "alter schema public owner to discourse;"' を実行したところ、失敗しました

Pups::ExecError: su postgres -c ‘psql discourse -c “alter schema public owner to discourse;”’ がリターン #\u003cProcess::Status: pid 54 exit 2\u003e で失敗しました

ディレクトリ「/shared/postgres_data」のパーミッションが無効です

my app.yml ファイル

## Plugins go here                                 ## see https://meta.discourse.org/t/19157 for deta$hooks:                                               after_code:                                          - exec:                                                cd: $home/plugins                                  cmd:                                                 - git clone https://github.com/discourse$          - git clone https://github.com/Ebsy/disc$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/davidtayl$          - git clone https://github.com/discourse$##          - git clone https://github.com/pavilio$## Official Plugins                                ##          - git clone https://github.com/discour$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$## New Pluguns installed                                     - git clone https://github.com/Ahmedgaga$##          - git clone https://github.com/gdpelic$          - git clone https://github.com/paviliond$## Any custom commands to run after building
run:                                                 - exec: echo \"Beginning of custom commands\"        ## If you want to set the 'From' email address f$  ## After getting the first signup email, re-comm$  #- exec: rails r \"SiteSetting.notification_email$  - exec: echo \"End of custom commands\"

フォーマットエラーがないか確認するために、これをコピーして貼り付けてください。

リストとして表示する方法がわかりません…

2023-02-11 19:55:35.034 GMT [42] LOG: “/shared/postgres_data/postgresql.auto.conf” の設定ファイルが見つかりません\n2023-02-11 19:55:35.035 UTC [42] FATAL: “/shared/postgres_data” ディレクトリのパーミッションを読み取れませんでした: Permission denied

サーバーのバックアップや Discourse のバックアップを定期的に実行している場合は、その方法でも復旧できます。ただし、バックアップ後に作成された投稿は失われると思います。

ラトナムさん、こんにちは。

現在、何を達成しようとしているのか、どのようなソフトウェアを使用しているのかを説明していただけると、より分かりやすくなるかと思います。現状では、エラーメッセージがほとんどで、文脈が不足しているため、完全に理解することが困難です。

まず、以下の質問に回答していただけますでしょうか。それから、ここから進めていきましょう :slight_smile:

  1. こちら discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub に記載されている手順に従って、通常のDockerインストールで本番環境のDiscourseをインストールしようとしていますか?

  2. オペレーティングシステムは何ですか?

  3. サーバーのスペックを教えてください。

これが問題のようですが、プラグインを変更したことで postgres の権限に問題が発生したとは想像できません。他に何か変更しましたか?これは標準的なインストールですよね?

サイトが機能していないため、セーフモードは役に立ちません。

postgres のデータ権限を変更して問題を解決しました @Canapin @Heliosurge サポートありがとうございました

以下のSlackを使用しました
GitHub - discourse/discourse_docker: A Docker image for Discourse /var/discoursed
オペレーティングシステム - ubuntu 20.04 LTS
サーバー - 8GB RAM 30GB

よろしくお願いいたします。

おめでとうございます。解決してよかったですね。プラグインのインストールを試みる場合は、サーバーのバックアップを取得することをお勧めします。

ただし、正直なところ、プラグインのインストール手順を正しく行っていれば問題ないはずです。今考えてみると、インストールしようとしていたプラグインはアップデートが必要かもしれません。記憶が正しければ、最後のアクティビティは2022年2月と表示されていましたよね? もしそうなら、約1年前のバージョンであり、それ以降の変更によってプラグインが壊れている可能性があります。

確認しました

Customization > Plugin カテゴリーを確認し、興味を引くプラグインがないか見てみることをお勧めします。

Discourse Reactions

  • 単純な「いいね」を超えて拡張できる方法を提供するので、非常に便利です。

National Flags

  • メンバーが投稿に国旗を表示するオプションを提供します。

Discourse Docs

  • ナレッジベースの検索設定に最適です。Solvedの強力な相棒となります。

Discourse Solved

  • ユーザーが質問を投稿するためのカテゴリーを設定します。投稿者(OP)は、最も効果的だった解決策を選択できます。カテゴリーを「最初の投稿を常に先頭に表示」に設定すると便利です。解決策はOPの投稿に引用され、「解決済み」とマークされます。解決済み引用をより見栄え良くするためのテーマコンポーネントもあります。

Discourse Who’s Online

  • 異なるページでオンラインユーザーを表示します。投稿を読んでいる際にユーザーがオンラインの場合、プロフィール画像の周りに光る円が表示されます。

Discourse Templates

  • テンプレート返信(いわゆる「定型文」)を作成します。紹介しきれないほど多くの機能があります。トピックをご覧ください。

重要な点は、非推奨またはサポート終了のプラグインを避けることです。アクティブなメンテナーがいるプラグインを選ぶ必要があります。特筆すべき良いプラグインとしては、Discourse公式プラグインやPavilionグループのものがありますが、これら2つのグループ以外にも積極的にメンテナンスされているものが数多くあります。