# Error while doing discourse setup

**URL:** <https://meta.discourse.org/t/error-while-doing-discourse-setup/71452>\
**Category:** Self-hosting\
**Created:** [October 5, 2017, 9:53am UTC](https://meta.discourse.org/t/error-while-doing-discourse-setup/71452 "2017-10-05T09:53:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Onkar\_Mirajkar](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@Onkar\_Mirajkar](https://meta.discourse.org/u/Onkar_Mirajkar)\
**Post date:** [October 5, 2017, 9:53am UTC](https://meta.discourse.org/t/error-while-doing-discourse-setup/71452/1 "2017-10-05T09:53:09Z")

</div>

Hello,  
I am doing this discourse setup for the first time and i am going through this issue. As I am having less knowledge about this please try to help me by giving its solution.

I entered this command ./discourse-setup through root and faced the below issue

```
FAILED
--------------------
Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 109 exit 2>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
e21a161606cfc570d4acda8edeec8c7ced8b48c63a94b9d670eef19cfdd7e179
**FAILED TO BOOTSTRAP**

```

---

_[View the full topic](https://meta.discourse.org/t/error-while-doing-discourse-setup/71452)._
