# \[Solved\]Bootstrap fails, Postgres already running

**URL:** <https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041>\
**Category:** Self-hosting\
**Created:** [9월 13, 2014, 8:24오후 UTC](https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041 "2014-09-13T20:24:15Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Dwalus](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@Dwalus](https://meta.discourse.org/u/Dwalus)\
**Post date:** [3월 29, 2015, 10:43오후 UTC](https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041/15 "2015-03-29T22:43:48Z")

</div>

```
root@maps:/var/discourse# ./launcher bootstrap app
cd /pups && git pull && /pups/bin/pups --stdin
From https://github.com/SamSaffron/pups
   ee8fdfb..4203610 master -> origin/master
Updating ee8fdfb..4203610
Fast-forward
 README.md | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
I, [2015-03-29T22:40:43.249663 #41] INFO -- : Loading --stdin
I, [2015-03-29T22:40:43.263023 #41] INFO -- : > mkdir -p /shared/postgres_run
I, [2015-03-29T22:40:43.268037 #41] INFO -- : 
I, [2015-03-29T22:40:43.269442 #41] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2015-03-29T22:40:43.274397 #41] INFO -- : 
I, [2015-03-29T22:40:43.275935 #41] INFO -- : > chmod 775 /shared/postgres_run
I, [2015-03-29T22:40:43.279817 #41] INFO -- : 
I, [2015-03-29T22:40:43.281147 #41] INFO -- : > rm -fr /var/run/postgresql
I, [2015-03-29T22:40:43.287355 #41] INFO -- : 
I, [2015-03-29T22:40:43.288678 #41] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2015-03-29T22:40:43.291936 #41] INFO -- : 
I, [2015-03-29T22:40:43.293245 #41] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
I, [2015-03-29T22:40:43.308277 #41] INFO -- : postgres already running stop container

FAILED
--------------------
RuntimeError: socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 failed with return #<Process::Status: pid 48 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params "socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1"
6a20fc5591eb101f70e77d9988ddcbd234572b24b3f46878c94e6fa0638089b0
FAILED TO BOOTSTRAP

```

Can someone tell me what I’m doing wrong? I already tried rebooting my server from both the digitalocean website and using **sudo reboot**.

---

_[View the full topic](https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041)._
