# Discourse Voting missing table on postgresql

**URL:** https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [October 22, 2020, 5:39pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993 "2020-10-22T17:39:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![madmath03](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/madmath03/32/149802_2.png) [@madmath03](https://meta.discourse.org/u/madmath03)
#### Post date: [October 22, 2020, 5:39pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993/1 "2020-10-22T17:39:11Z")

</div>

After installing [GitHub - discourse/discourse-topic-voting: Adds the ability for voting on a topic within a specified category in Discourse. · GitHub](https://github.com/discourse/discourse-voting), I get the following error in logs (docker):

```plaintext
discourse | Started GET "/" for 2.3.75.18 at 2020-10-22 17:36:58 +0000
discourse | Processing by ListController#latest as HTML
discourse_db | 2020-10-22 17:36:59.073 UTC [2221] ERROR: relation "discourse_voting_category_settings" does not exist at character 454
discourse_db | 2020-10-22 17:36:59.073 UTC [2221] STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
discourse_db | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
discourse_db | c.collname, col_description(a.attrelid, a.attnum) AS comment
discourse_db | FROM pg_attribute a
discourse_db | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
discourse_db | LEFT JOIN pg_type t ON a.atttypid = t.oid
discourse_db | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
discourse_db | WHERE a.attrelid = '"discourse_voting_category_settings"'::regclass
discourse_db | AND a.attnum > 0 AND NOT a.attisdropped
discourse_db | ORDER BY a.attnum
discourse_db | 
discourse | Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.0ms | Allocations: 9365)
discourse | ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "discourse_voting_category_settings" does not exist
discourse | LINE 8: WHERE a.attrelid = '"discourse_voting_category_settings"'::...
discourse | ^
discourse | )
discourse | /opt/bitnami/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.2/lib/patches/db/pg.rb:110:in `exec'
discourse | Failed to handle exception in exception app middleware : PG::UndefinedTable: ERROR: relation "discourse_voting_category_settings" does not exist
discourse | LINE 8: WHERE a.attrelid = '"discourse_voting_category_settings"'::...
discourse | ^
discourse | 
discourse | Started GET "/service-worker-c8000968830b6f6bd33f1e842dffdd569664119d449f93dc7d428d963a71635d.js" for 2.3.75.18 at 2020-10-22 17:37:01 +0000
discourse | Processing by StaticController#service_worker_asset as */*
discourse | Rendering text template
discourse | Rendered text template (Duration: 0.0ms | Allocations: 1)
discourse | Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 1731)

```

Plugin was installed without errors through command line:

```plaintext
RAILS_ENV=production bundle exec rake plugin:install[https://github.com/discourse/discourse-voting]

```

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [October 22, 2020, 5:49pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993/2 "2020-10-22T17:49:34Z")

</div>

There have been issues with this migration running at times. Try running `bin/rake db:migrate` from console or rebuilding your container to resolve until we find a fix.

---

<div class="post-metadata">

### Author: ![madmath03](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/madmath03/32/149802_2.png) [@madmath03](https://meta.discourse.org/u/madmath03)
#### Post date: [October 22, 2020, 9:43pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993/7 "2020-10-22T21:43:59Z")

</div>

Hi @justin  
This does seems to fix the problem. Thank you.

I do hope though that you a fix for that 😃

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 22, 2020, 9:45pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993/9 "2020-10-22T21:45:45Z")

</div>

> [@madmath03](#):
>
> Plugin was installed without errors through command line:
> 
> `RAILS_ENV=production bundle exec rake plugin:install`

Please follow this guide to install plugins: [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-in-discourse/19157)

Also, as said on your other topic, please follow [Discourse official Standard Installation](https://meta.discourse.org/t/discourse-official-standard-installation/142537) to install Discourse.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 22, 2020, 9:46pm UTC](https://meta.discourse.org/t/discourse-voting-missing-table-on-postgresql/167993/10 "2020-10-22T21:46:23Z")

</div>


