# 帖子:0x000055c972f94c78

**URL:** https://meta.discourse.org/t/thread-0x000055c972f94c78/225448
**Category:** Self-hosting
**Created:** [2022年四月27日 15:43 UTC](https://meta.discourse.org/t/thread-0x000055c972f94c78/225448 "2022-04-27T15:43:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [2022年四月27日 15:43 UTC](https://meta.discourse.org/t/thread-0x000055c972f94c78/225448/1 "2022-04-27T15:43:04Z")

</div>

在[上一个问题](https://meta.discourse.org/t/errno-permission-denied-on-new-ubuntu-development-setup/225446/7)之后，又出现了一个新问题！

> #\<Thread:0x000055c972f94c78 /home/discourse/lib/scheduler/defer.rb:79 run\> terminated with exception (report\_on\_exception is true):  
> /usr/local/rvm/gems/ruby-3.0.2/gems/activerecord-6.1.4.7/lib/active\_record/connection\_handling.rb:323:in `connection_pool': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished) from /usr/local/rvm/gems/ruby-3.0.2/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management/rails_61_compat.rb:8:in `current’  
> from /usr/local/rvm/gems/ruby-3.0.2/gems/rails\_multisite-4.0.1/lib/rails\_multisite/connection\_management.rb:115:in `current_db_hostnames' from /usr/local/rvm/gems/ruby-3.0.2/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:111:in `current\_hostname’  
> from lib/discourse.rb:176:in `handle_job_exception' from /home/discourse/lib/scheduler/defer.rb:102:in `rescue in do\_work’  
> from /home/discourse/lib/scheduler/defer.rb:101:in `do_work' from /home/discourse/lib/scheduler/defer.rb:79:in `block (2 levels) in start\_thread’  
> /usr/local/rvm/gems/ruby-3.0.2/gems/activerecord-6.1.4.7/lib/active\_record/connection\_handling.rb:323:in `connection_pool': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished) from /usr/local/rvm/gems/ruby-3.0.2/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:79:in `with\_connection’  
> from /home/discourse/lib/scheduler/defer.rb:89:in `do_work' from /home/discourse/lib/scheduler/defer.rb:79:in `block (2 levels) in start\_thread’

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [2022年四月27日 16:15 UTC](https://meta.discourse.org/t/thread-0x000055c972f94c78/225448/3 "2022-04-27T16:15:40Z")

</div>

然后我遇到了这个问题……

```plaintext
# --- Caused by: ---
# PG::UndefinedTable:
# ERROR: relation 'groups' does not exist
# LINE 8: WHERE a.attrelid = '"groups"'::regclass
# ^
# /usr/local/rvm/gems/ruby-3.0.2/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `exec'

```
