# Error "relation 'users' does not exist" when installing discourse

**URL:** <https://meta.discourse.org/t/error-relation-users-does-not-exist-when-installing-discourse/99246>\
**Category:** Self-hosting\
**Created:** [October 11, 2018, 4:33am UTC](https://meta.discourse.org/t/error-relation-users-does-not-exist-when-installing-discourse/99246 "2018-10-11T04:33:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [October 11, 2018, 3:46pm UTC](https://meta.discourse.org/t/error-relation-users-does-not-exist-when-installing-discourse/99246/6 "2018-10-11T15:46:55Z")

</div>

To confirm as of 4:47PM, the error:

```
I, [2018-10-11T15:37:48.991417 #14] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2018-10-11 15:37:59.592 UTC [374] discourse@discourse ERROR: relation "users" does not exist at character 566
2018-10-11 15:37:59.592 UTC [374] discourse@discourse STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
	                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
	                     c.collname, col_description(a.attrelid, a.attnum) AS comment
	                FROM pg_attribute a
	                LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
	                LEFT JOIN pg_type t ON a.atttypid = t.oid
	                LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
	               WHERE a.attrelid = '"users"'::regclass
	                 AND a.attnum > 0 AND NOT a.attisdropped
	               ORDER BY a.attnum

```

Does appear during an install, but the build succeeds.

 ![03%20AM](https://global.discourse-cdn.com/meta/original/3X/d/3/d3c875f67777cbb81169988835f85d66a0f90115.jpeg)

That’s the full recommended install, with domain name specified (IP address based install not supported), SMTP details provided, and Let’s Encrypt enabled.

- Did you add any files to your install between git pull and ./discourse-setup?
- Did you add any plugins before completing the build at least once?

---

_[View the full topic](https://meta.discourse.org/t/error-relation-users-does-not-exist-when-installing-discourse/99246)._
