# Default role for discourse database

**URL:** https://meta.discourse.org/t/default-role-for-discourse-database/163784
**Category:** Self-hosting
**Created:** [September 11, 2020, 9:48pm UTC](https://meta.discourse.org/t/default-role-for-discourse-database/163784 "2020-09-11T21:48:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [September 11, 2020, 9:48pm UTC](https://meta.discourse.org/t/default-role-for-discourse-database/163784/1 "2020-09-11T21:48:33Z")

</div>

I’m working through 502 issues after upgrading to 2.6beta.

Last error after ./launcher rebuild web\_only was a complaint about the postgres version.

I decided to log in and see what version of postgres is running under the data container.

When I use psql I get an error about the user name.

```bash
[root@sydney discourse]# ./launcher enter data
root@sydney-data:/# psql
psql: error: could not connect to server: FATAL: role "root" does not exist

```

What is the default role for discourse?

---

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [September 11, 2020, 9:57pm UTC](https://meta.discourse.org/t/default-role-for-discourse-database/163784/2 "2020-09-11T21:57:57Z")

</div>

Tried logging in under the postgres user … cool 😉

```bash
root@sydney-data:/# sudo su postgres
postgres@sydney-data:/$ psql
psql (12.3 (Debian 12.3-1.pgdg100+1))
Type "help" for help.

postgres=# 

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 11, 2020, 9:58pm UTC](https://meta.discourse.org/t/default-role-for-discourse-database/163784/3 "2020-10-11T21:58:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
