도움 필요: Discourse 포럼을 상하이 새 서버로 이전 중 – db:migrate 오류

안녕하세요,

상하이 소재의 새 서버로 Discourse 포럼을 마이그레이션하는 중인데, 제가 해결할 수 없는 문제가 발생하여 도움을 요청드립니다.

현재까지 수행한 작업은 다음과 같습니다:

  1. 코드 클로닝: Git을 사용하여 새 서버에 Discourse 저장소를 클로닝했습니다.

  2. 설정 파일:

• /var/discourse/container 디렉토리에 새로운 app.yml 파일을 생성했습니다.

• 기존 서버의 app.yml 파일 내용을 복사하여 새 서버의 app.yml 파일에 붙여넣었습니다.

  1. 백업 파일: 기존 서버의 백업 파일을 수동으로 새 서버의 백업 폴더에 업로드했습니다.

  2. 진단 실행: 설정을 확인하고 수정하기 위해 ./discourse-doctor 명령어를 실행했습니다.

그러나 ./discourse-doctor를 실행하면 다음과 같은 오류가 발생합니다:

FAILED


Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate’failed with return #<Process::Status: pid 1835 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

** 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.

b2af39f0849bd60c3ce1b9f1ebe1c33a47fcea20edce2233171da420d4730323

추가 정보:

백업 방법: Discourse의 내장 백업 기능을 사용하여 tar.gz 파일을 내보냈습니다

db:migrate 오류의 원인과 진행 방법을 알지 못합니다. 이 오류의 가능한 원인에 대한 통찰과 해결 단계를 제안해 주실 수 있을까요? 또한 Discourse 포럼을 마이그레이션할 때 주의해야 할 팁이나 흔한 함정에 대한 조언도 감사하겠습니다.

도와주셔서 감사합니다!

Did you follow this guide?