# Database errors...?

**URL:** https://meta.discourse.org/t/database-errors/212629
**Category:** Self-hosting
**Created:** [December 20, 2021, 1:35am UTC](https://meta.discourse.org/t/database-errors/212629 "2021-12-20T01:35:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mrhappyma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhappyma/32/244112_2.png) [@mrhappyma](https://meta.discourse.org/u/mrhappyma)
#### Post date: [December 20, 2021, 1:35am UTC](https://meta.discourse.org/t/database-errors/212629/1 "2021-12-20T01:35:42Z")

</div>

Failing to build, getting these errors in the discourse doctor, any ideas/fixes?

```console
2021-12-20 01:29:12.404 UTC [65] postgres@postgres ERROR: database "discourse" already exists
2021-12-20 01:29:12.404 UTC [65] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2021-12-20T01:29:12.406802 #1] INFO -- : 
I, [2021-12-20T01:29:12.407300 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-12-20 01:29:12.443 UTC [69] postgres@discourse ERROR: role "discourse" already exists
2021-12-20 01:29:12.443 UTC [69] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists

```

Thanks

---

<div class="post-metadata">

### Author: ![mrhappyma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhappyma/32/244112_2.png) [@mrhappyma](https://meta.discourse.org/u/mrhappyma)
#### Post date: [December 20, 2021, 1:38am UTC](https://meta.discourse.org/t/database-errors/212629/2 "2021-12-20T01:38:15Z")

</div>

There were also plenty of other errors these were just the ones I noticed right away

---

<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: [December 20, 2021, 3:01am UTC](https://meta.discourse.org/t/database-errors/212629/3 "2021-12-20T03:01:14Z")

</div>

Those are part of the bootstrap, and expected when updating an existing site.

---

<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: [December 20, 2021, 10:53am UTC](https://meta.discourse.org/t/database-errors/212629/4 "2021-12-20T10:53:17Z")

</div>

How did you install? Do you have a server running already?
