안녕하세요
오늘 discourse를 재빌드할 때(최신 버전으로 업데이트하려고 했을 때) 첫 번째 오류가 발생했습니다. 로그에서 확인한 오류는 다음과 같습니다:
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 788 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
위쪽으로 스크롤해 보니 다음 오류들을 발견했습니다:
I, [2025-02-16T18:44:33.377980 #1] INFO -- : > /usr/local/bin/create_db
2025-02-16 18:44:33.470 UTC [60] postgres@postgres ERROR: database "discourse" already exists
2025-02-16 18:44:33.470 UTC [60] postgres@postgres STATEMENT: CREATE DATABASE d iscourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
2025-02-16 18:44:33.551 UTC [63] postgres@discourse ERROR: role "discourse" alr eady exists
2025-02-16 18:44:33.551 UTC [63] postgres@discourse STATEMENT: create user disc ourse;
ERROR: role "discourse" already exists
데이터베이스 문제인 것 같습니다. discourse-doctor로 문제를 해결하지 못했습니다…
이 문제를 해결하는 데 도움을 주실 수 있을까요?
매우 감사합니다!
수정: 유사 주제 추천을 통해 확인해 보니, 여기와 같은 문제인 것 같습니다:
불행히도 아직까지 문제가 스스로 해결되지 않았습니다.