Postgres が既に実行中

みなさん、こんにちは。

初心者なので馬鹿げたことを言っているかもしれませんが、Ubuntu 16.04 で Pterodactyl Panel と Discourse の 2 つのウェブサイトを同時に動かそうとしています。Pterodactyl Panel は動作していますが、Discourse は Nginx なしでは動きます。しかし、以下の手順に従って設定を試みました:https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247

Discourse を Nginx 用に設定した後、以下のコマンドで再構築を試みるとエラーが発生します:

/var/discourse/launcher rebuild app

エラーメッセージは以下の通りです:

FAILED
--------------------
Pups::ExecError: socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 failed with return #<Process::Status: pid 1928 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1"
4deb791432a587b5cc6777001a71fd6391e5982fe830f339115c2002e07c17fb
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem

ご協力いただければ幸いです!

ありがとうございました!

Move from standalone container to separate web and data containers に、データコンテナを分離する方法に関するヒントが記載されています。また、複数のデータベースの作成について説明している multisite howto もご覧ください。

興味深いですね。それを確認してみます。これで私の問題が解決するでしょうか?それとも、それまでに対処できる他の方法がありますか?

Postgres サーバーを 2 つ同時に実行することはできません。そのため、両方のアプリケーションに同じサーバーを使用させる必要があります。一般的には、既存のサーバーに Discourse データベースを追加し、yml ファイル内の環境変数にユーザー名、パスワード、ホスト値を設定します。