皆さん、こんにちは。
Discourseフォーラムを上海にある新しいサーバーに移行しようとしていますが、解決できない問題が発生しました。皆様の多大なご支援をいただければ幸いです。
これまでに実施したことは以下の通りです。
-
コードのクローン: Gitを使用して、新しいサーバーにDiscourseリポジトリをクローンしました。
-
設定ファイル:
/var/discourse/containerディレクトリに新しいapp.ymlファイルを作成しました。- 古いサーバーの
app.ymlファイルの内容をコピーし、新しいサーバーの新しいapp.ymlに貼り付けました。
-
バックアップファイル: バックアップファイルを古いサーバーから新しいサーバーのバックアップフォルダに手動でアップロードしました。
-
診断の実行:
./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フォーラムの移行時に注意すべきヒントや一般的な落とし穴があれば、ぜひ教えてください。
ご協力いただき、誠にありがとうございます。