将 postgres 数据库迁移到中央数据库服务器:构建错误

嗨 Jay,

我按照 Falco 在 Configure Discourse to use a separate PostgreSQL server 的帖子进行了操作。数据库服务器可以从 VM 访问:

root@docker2:/var/discourse# pg_isready -d discourse -h 10.10.10.18 -p 5432 -U discourse    
10.10.10.18:5432 - Verbindungen werden angenommen

(连接已接受)

web_only.yml 中的数据库名称、用户和密码也是正确的。构建错误是:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process:
:Status: pid 829 exit 1>
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", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migra
te'"]}
bootstrap failed with exit code 1

我不是 Ruby 专家,所以需要一些帮助来从这里出现的错误开始调试。

再见,Thommie