# "postgres déjà en cours d'exécution" sur

**URL:** <https://meta.discourse.org/t/postgres-already-running-on/90097>\
**Category:** Self-hosting\
**Created:** [Juin 18, 2018, 8:55 UTC](https://meta.discourse.org/t/postgres-already-running-on/90097 "2018-06-18T08:55:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Dieter\_Menne](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dieter\_Menne](https://meta.discourse.org/u/Dieter_Menne)\
**Post date:** [Juin 18, 2018, 8:55 UTC](https://meta.discourse.org/t/postgres-already-running-on/90097/1 "2018-06-18T08:55:36Z")

</div>

I have a working Discourse installation which I have rebuilt multiple times already (Ubuntu Xenial own server).

When I tried to rebuild, I got the message below which is similar to an old one on [[Solved]Bootstrap fails, Postgres already running - #19 by Dwalus](https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041/19).

For testing, I have rebooted the server multiple times, the old site comes up ok, but rebuild gives an error. I have also removed all plugins/hooks with the exception of docker\_manager, so the the configuration is essentially the vanilla `app` with edited SMTP/Hostname

```plaintext
/var/discourse> ./launcher rebuild app
Ensuring launcher is up to date
Fordere an von origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
Already up-to-date.
I, [2018-06-18T08:47:49.810104 #15] INFO -- : Loading --stdin
I, [2018-06-18T08:47:49.816411 #15] INFO -- : > locale-gen $LANG && update-locale
I, [2018-06-18T08:47:50.781237 #15] INFO -- : Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.

I, [2018-06-18T08:47:50.781546 #15] INFO -- : > mkdir -p /shared/postgres_run
I, [2018-06-18T08:47:50.784517 #15] INFO -- :
I, [2018-06-18T08:47:50.784814 #15] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2018-06-18T08:47:50.788055 #15] INFO -- :
I, [2018-06-18T08:47:50.788307 #15] INFO -- : > chmod 775 /shared/postgres_run
I, [2018-06-18T08:47:50.790687 #15] INFO -- :
I, [2018-06-18T08:47:50.790944 #15] INFO -- : > rm -fr /var/run/postgresql
I, [2018-06-18T08:47:50.794644 #15] INFO -- :
I, [2018-06-18T08:47:50.794990 #15] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2018-06-18T08:47:50.798345 #15] INFO -- :
I, [2018-06-18T08:47:50.798586 #15] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
I, [2018-06-18T08:47:50.806563 #15] INFO -- : postgres already running stop container

FAILED
--------------------
Pups::ExecError: 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 46 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108: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"
4e76a883566b279a03ae2ec4acb5b88e54de3b9fbe163a2314c2b8eaf579fc3f
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one
/var/discourse>

```

---

_[View the full topic](https://meta.discourse.org/t/postgres-already-running-on/90097)._
