Postgres가 이미 실행 중입니다

모두 안녕하세요,

제가 이 분야에 익숙하지 않아서 어리석은 질문일 수도 있지만, Ubuntu 16.04 환경에서 두 개의 웹사이트(Pterodactyl Panel과 Discourse)를 실행하려고 시도하고 있습니다. Pterodactyl Panel은 정상적으로 작동하고 있으며, Nginx 없이 Discourse도 잘 동작합니다. 하지만 다음 지침을 따를 때 문제가 발생합니다: https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247

Nginx를 위해 Discourse를 설정한 후, 다음 명령어로 재빌드(rebuild)를 수행하면 에러가 발생합니다:

/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 링크를 참고하면 별도 데이터 컨테이너를 구성하는 방법에 대한 힌트를 얻을 수 있습니다. 또한 여러 데이터베이스를 생성하는 방법을 설명하는 멀티사이트 #howto도 참고하세요.

흥미롭네요. 그 부분을 확인해 보겠습니다. 그러면 제 문제가 해결될까요? 아니면 그 사이에 다른 부분을 살펴볼 수 있을까요?

두 개의 postgres 서버를 실행할 수 없으므로, 두 애플리케이션이 동일한 서버를 사용하도록 설정해야 합니다. 일반적으로 기존 서버에 discourse 데이터베이스를 추가하고, yml 파일의 환경 변수에 사용자, 비밀번호, 호스트 값을 입력합니다.