# Getting error while creating postgress create user

**URL:** https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224
**Category:** Self-hosting
**Created:** [April 16, 2019, 2:10pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224 "2019-04-16T14:10:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Kids\_Unleashed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kids_unleashed/32/138563_2.png) [@Kids\_Unleashed](https://meta.discourse.org/u/Kids_Unleashed)
#### Post date: [April 16, 2019, 2:10pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/1 "2019-04-16T14:10:19Z")

</div>

createuser: could not connect to database postgres: could not connect to server: No such file or directory  
Is the server running locally and accepting  
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 16, 2019, 2:12pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/2 "2019-04-16T14:12:59Z")

</div>

Is this is any way related to a Discourse install? How did you arrive at this situation?

---

<div class="post-metadata">

### Author: ![Kids\_Unleashed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kids_unleashed/32/138563_2.png) [@Kids\_Unleashed](https://meta.discourse.org/u/Kids_Unleashed)
#### Post date: [April 16, 2019, 2:13pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/3 "2019-04-16T14:13:38Z")

</div>

following the install instructions for discourse.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 16, 2019, 2:35pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/4 "2019-04-16T14:35:21Z")

</div>

You’ll need to give us a bit more to go on here. All we can say at the moment is “postgres isn’t running, or you can’t get at the socket if it is”.

---

<div class="post-metadata">

### Author: ![Kids\_Unleashed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kids_unleashed/32/138563_2.png) [@Kids\_Unleashed](https://meta.discourse.org/u/Kids_Unleashed)
#### Post date: [April 16, 2019, 2:41pm UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/5 "2019-04-16T14:41:07Z")

</div>

When i run the bash command, it get stopped at this error from virtual box.

 ![Screenshot%20from%202019-04-16%2009-40-25](https://global.discourse-cdn.com/meta/original/3X/0/7/0758133efc4800fc3f59d502f98ed790aafde803.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 17, 2019, 2:11am UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224/6 "2019-04-17T02:11:24Z")

</div>

To take a little step back here, what specific install instructions are you talking about, can you link to it?
