검색해 보았지만, 비슷한 다른 이슈들을 살펴봐도 정확히 이 문제를 찾지 못했습니다.
내 인스턴스에서 discourse-reactions를 활성화하고 싶었습니다. 일반적인 절차를 따라 app.yml에 저장소 URL을 추가하고, git pull과 ./launcher rebuild app를 실행한 후 부트스트랩이 실패합니다.
아래는 실패 출력 결과입니다:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && https://github.com/discourse/discourse-reactions.git failed with return #<Process::Status: pid 289 exit 127>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["mkdir -p plugins", "git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/davidtaylorhq/discourse-whos-online.git", "git clone https://github.com/discourse/discourse-push-notifications.git", "git clone https://github.com/iunctis/discourse-formatting-toolbar.git", "git clone https://github.com/jannolii/discourse-topic-trade-buttons.git", "git clone https://github.com/discourse/discourse-voting.git", "git clone https://github.com/discourse/discourse-yearly-review.git", "https://github.com/discourse/discourse-reactions.git"]}
bootstrap failed with exit code 127
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
위로 스크롤하여 그 위에 있는 유일한 오류를 찾았는데, 다음과 같았습니다:
I, [2024-05-03T16:25:41.537553 #1] INFO -- :
I, [2024-05-03T16:25:41.538494 #1] INFO -- : > cd /var/www/discourse/plugins && https://github.com/discourse/discourse-reactions.git
sh: 1: https://github.com/discourse/discourse-reactions.git: not found
웹 브라우저에서는 GitHub 페이지를 쉽게 볼 수 있으므로 이는 이상해 보입니다. discourse-reactions 주석을 처리한 후에는 모든 것이 정상적으로 빌드됩니다.
이를 작동시키는 데 대한 추천이나 팁이 있을까요?
감사합니다.
수정: 다시 재빌드해 보았는데, 이제 다음과 같은 오류가 보입니다:
2024-05-03 16:53:54.491 UTC [35] LOG: database system is ready to accept connections
I, [2024-05-03T16:53:59.443099 #1] INFO -- :
I, [2024-05-03T16:53:59.443248 #1] INFO -- : > /usr/local/bin/create_db
2024-05-03 16:53:59.519 UTC [54] postgres@postgres ERROR: database "discourse" already exists
2024-05-03 16:53:59.519 UTC [54] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse ERROR: role "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
NOTICE: extension "hstore" already exists, skipping
NOTICE: extension "pg_trgm" already exists, skipping
NOTICE: extension "vector" already exists, skipping
NOTICE: extension "hstore" already exists, skipping
NOTICE: extension "pg_trgm" already exists, skipping
NOTICE: extension "vector" already exists, skipping