错误日志:迁移 discourse 表时出错

我正在尝试安装 discourse 版本:2.8.1,但收到“connection_pool:ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)”错误。我的数据库连接详细信息有效。数据库和表已成功创建。
Ubuntu:18.04
Postgresql:14
redis-server:6.2.6
ruby 版本:2.7.1

**discourse_development 的数据库表计数**
discourse_development-# select count(*) from information_schema.tables;
 count
-------
   378
(1 row)

这是详细的错误信息,
:这是我在运行此命令时遇到的确切错误:bundle exec rake db:migrate

正在填充主题和配色方案
#<Thread:0x0000559680232280 /home/raghav/discourse/lib/scheduler/defer.rb:79 run> 因异常终止(report_on_exception 为 true):
Traceback(最上层调用最后):
        24: 从 /home/raghav/discourse/lib/scheduler/defer.rb:79:in `block (2 levels) in start_thread'
        23: 从 /home/raghav/discourse/lib/scheduler/defer.rb:89:in `do_work'
        22: 从 /home/raghav/.rbenv/versions/2.7.1/lib/ruby/gems/`Preformatted text`2.7.0/gems/rails_multisite-4.0.0/lib/rails_multisite/connection_management.rb:80:in `with_connection'
        21: 从 /home/raghav/discourse/lib/scheduler/defer.rb:94:in `block in do_work'
        20: 从 /home/raghav/discourse/app/models/post.rb:929:in `block in index_search'
        19: 从 /home/raghav/discourse/app/services/search_indexer.rb:235:in `index'
        18: 从 /home/raghav/discourse/app/services/search_indexer.rb:112:in `update_topics_index'
        17: 从 /home/raghav/discourse/app/services/search_indexer.rb:21:in `scrub_html_for_search'
        16: 从 /home/raghav/discourse/app/services/search_indexer.rb:342:in `scrub'
        15: 从 /home/raghav/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/sax/parser.rb:84:in `parse'
        14: 从 /home/raghav/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/html4/sax/parser.rb:34:in `parse_memory'
        13: 从 /home/raghav/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/html4/sax/parser.rb:34:in `parse_with'
        12: 从 /home/raghav/discourse/app/services/search_indexer.rb:352:in `start_element'
        11: 从 /home/raghav/discourse/app/services/search_indexer.rb:352:in `each'
        10: 从 /home/raghav/discourse/app/services/search_indexer.rb:356:in `block in start_element'


.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.1.4.1/lib/active_record/connection_handling.rb:323:in `connection_pool': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)