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

**URL:** <https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041>\
**Category:** Self-hosting\
**Created:** [Septembre 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:** 1

<div class="post-metadata">

**Author:** ![lolmewn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lolmewn/32/114927_2.png) [@lolmewn](https://meta.discourse.org/u/lolmewn)\
**Post date:** [Septembre 13, 2014, 8:24 UTC](https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041/1 "2014-09-13T20:24:15Z")

</div>

Hi,

I’m attempting to install Discourse, but am failing so far. It appears that bootstrapping doesn’t want to… bootstrap?  
Anyhow, I read a couple of other threads about it and tried “./launcher rebuild app”, which gave the following output:

```
WARNING: No memory limit support
WARNING: No swap limit support
Updating discourse docker
Already up-to-date.
Calculated ENV: -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=3 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_MALLOC_LIMIT=40000000 -e RUBY_HEAP_MIN_SLOTS=800000 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e HOME=/root -e DISCOURSE_DEVELOPER_EMAILS=myEmail -e DISCOURSE_HOSTNAME=myWebsite -e DISCOURSE_SMTP_ADDRESS=smtp.mandrillapp.com
cd /pups && git pull && /pups/bin/pups --stdin
From https://github.com/SamSaffron/pups
   f7a125b..ac9bdf8 master -> origin/master
Updating f7a125b..ac9bdf8
Fast-forward
 README.md | 2 +-
 lib/pups/config.rb | 14 +++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
I, [2014-09-13T20:18:17.839357 #47] INFO -- : Loading --stdin
I, [2014-09-13T20:18:17.846012 #47] INFO -- : > mkdir -p /shared/postgres_run
I, [2014-09-13T20:18:17.851117 #47] INFO -- :
I, [2014-09-13T20:18:17.852106 #47] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2014-09-13T20:18:17.856033 #47] INFO -- :
I, [2014-09-13T20:18:17.857172 #47] INFO -- : > chmod 775 /shared/postgres_run
I, [2014-09-13T20:18:17.861779 #47] INFO -- :
I, [2014-09-13T20:18:17.862868 #47] INFO -- : > rm -fr /var/run/postgresql
I, [2014-09-13T20:18:17.867169 #47] INFO -- :
I, [2014-09-13T20:18:17.868189 #47] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2014-09-13T20:18:17.872311 #47] INFO -- :
I, [2014-09-13T20:18:17.873194 #47] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
I, [2014-09-13T20:18:17.880853 #47] 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 54 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:85: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"
fe396f76ce0ba379260b0a625c3007cf1d2f13343b7de29f3376ffd5fbb02e2b
FAILED TO BOOTSTRAP

```

What am I doing wrong?

---

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