エラーログ:discourseテーブル移行中に発生

Discourse バージョン 2.8.1 をインストールしようとしていますが、“connection_pool: ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)” というエラーが発生します。データベース接続詳細は有効であり、データベースとテーブルは正常に作成されています。
Ubuntu: 18.04
Postgresql: 14
redis-server: 6.2.6
ruby version: 2.7.1

**Database table count for discourse_development**
discourse_development-# select count(*) from information_schema.tables;
 count
-------
   378
(1 row)

詳細なエラーは以下の通りです。
: bundle exec rake db:migrate コマンドを実行した際に発生する正確なエラーです。

Seeding theme and color schemes
#<Thread:0x0000559680232280 /home/raghav/discourse/lib/scheduler/defer.rb:79 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        24: from /home/raghav/discourse/lib/scheduler/defer.rb:79:in `block (2 levels) in start_thread'
        23: from /home/raghav/discourse/lib/scheduler/defer.rb:89:in `do_work'
        22: from /home/raghav/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rails_multisite-4.0.0/lib/rails_multisite/connection_management.rb:80:in `with_connection'
        21: from /home/raghav/discourse/lib/scheduler/defer.rb:94:in `block in do_work'
        20: from /home/raghav/discourse/app/models/post.rb:929:in `block in index_search'
        19: from /home/raghav/discourse/app/services/search_indexer.rb:235:in `index'
        18: from /home/raghav/discourse/app/services/search_indexer.rb:112:in `update_topics_index'
        17: from /home/raghav/discourse/app/services/search_indexer.rb:21:in `scrub_html_for_search'
        16: from /home/raghav/discourse/app/services/search_indexer.rb:342:in `scrub'
        15: from /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: from /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: from /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: from /home/raghav/discourse/app/services/search_indexer.rb:352:in `start_element'
        11: from /home/raghav/discourse/app/services/search_indexer.rb:352:in `each'
        10: from /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)