OK、web_only と redis の分離を修正しました。エラーメッセージは次のとおりです。
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 981 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.
801049b69a89d38b1ae5c299d356fc5f8dc6a8f518b1260c2dde05e0b6081556
しかし、これは私の知識不足による誤解かもしれません。
データベースは、PostgreSQL データベースを持つ別の LXC コンテナ上の外部にあるはずです。データベースユーザーとデータベースは存在しますが、web_only の最初のブートストラップの前にはデータベースは空です。スクリプトは最初のビルド時にリモートシステムでデータベース自体を作成しますか?それとも、まずデータベースコンテナを作成し、そのデフォルトスキーマとデータを手動で外部 PostgreSQL デーモンにエクスポートする必要がありますか?