# PG::UndefinedTable: ERROR

**URL:** https://meta.discourse.org/t/pg-error/262765
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [April 24, 2023, 10:52pm UTC](https://meta.discourse.org/t/pg-error/262765 "2023-04-24T22:52:05Z")
**Posts on this page:** 11
**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: [April 24, 2023, 10:52pm UTC](https://meta.discourse.org/t/pg-error/262765/1 "2023-04-24T22:52:05Z")

</div>

Hi, I have now installed Discourse as a standalone, but now I get this error:

PG::UndefinedTable: ERROR: relation “groups” does not exist

---

<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: [April 24, 2023, 10:56pm UTC](https://meta.discourse.org/t/pg-error/262765/2 "2023-04-24T22:56:17Z")

</div>

Apparently not the only relation that is missing

---

<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: [April 24, 2023, 11:08pm UTC](https://meta.discourse.org/t/pg-error/262765/3 "2023-04-24T23:08:45Z")

</div>

Ah, forgot to migrate _ **discourse\_development** _! But now this error:

lib/discourse.rb:534:in `current\_hostname’: uninitialized constant Discourse::SiteSetting (NameError)

---

<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: [April 24, 2023, 11:11pm UTC](https://meta.discourse.org/t/pg-error/262765/4 "2023-04-24T23:11:16Z")

</div>

@Falco

Can you help me?

---

<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: [April 24, 2023, 11:11pm UTC](https://meta.discourse.org/t/pg-error/262765/5 "2023-04-24T23:11:52Z")

</div>

Is this a developer environment?

---

<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: [April 24, 2023, 11:12pm UTC](https://meta.discourse.org/t/pg-error/262765/6 "2023-04-24T23:12:35Z")

</div>

Yes… Whereas I actually want a production

---

<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: [April 24, 2023, 11:23pm UTC](https://meta.discourse.org/t/pg-error/262765/7 "2023-04-24T23:23:39Z")

</div>

So you need to install it following the [standard install](https://meta.discourse.org/t/142537?silent=true) guide where this error cannot happen.

---

<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: [April 24, 2023, 11:27pm UTC](https://meta.discourse.org/t/pg-error/262765/8 "2023-04-24T23:27:04Z")

</div>

Yes, that is the Docker version! However, I would prefer the standalone! It must be possible to install Discourse as a standalone in a productive environment.

---

<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: [April 24, 2023, 11:30pm UTC](https://meta.discourse.org/t/pg-error/262765/9 "2023-04-24T23:30:25Z")

</div>

> [@Justman10000](#):
>
> It must be possible to install Discourse as a standalone in a productive environment

While everything is possible in software we only support installs that follow our [standard install](https://meta.discourse.org/t/142537?silent=true) guide, as providing support for the infinite combinations of free style installs wouldn’t be a productive use of our time.

---

<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: [April 24, 2023, 11:35pm UTC](https://meta.discourse.org/t/pg-error/262765/10 "2023-04-24T23:35:37Z")

</div>

Why then does one not produce an official manual for a standalone variant?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 24, 2023, 11:46pm UTC](https://meta.discourse.org/t/pg-error/262765/11 "2023-04-24T23:46:58Z")

</div>

Because the docker version is what [discourse.org](http://discourse.org) uses in production. That’s what’s tested and supported. Anything else and your mostly on your own.
