# Can't rebuild app

**URL:** <https://meta.discourse.org/t/cant-rebuild-app/53648>\
**Category:** Self-hosting\
**Created:** [1 Dicembre 2016, 10:52pm UTC](https://meta.discourse.org/t/cant-rebuild-app/53648 "2016-12-01T22:52:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![companyhen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/companyhen/32/121250_2.png) [@companyhen](https://meta.discourse.org/u/companyhen)\
**Post date:** [2 Dicembre 2016, 12:01am UTC](https://meta.discourse.org/t/cant-rebuild-app/53648/7 "2016-12-02T00:01:58Z")

</div>

I restarted my server now this is happening:

root@forum:/var/discourse# ./launcher rebuild app  
Ensuring launcher is up to date  
Fetching origin  
Launcher is up-to-date  
Stopping old container

- /usr/bin/docker stop -t 10 app  
app  
cd /pups && git pull && /pups/bin/pups --stdin  
Already up-to-date.  
I, [2016-12-02T00:00:21.369933 #14] INFO – : Loading --stdin  
I, [2016-12-02T00:00:21.381560 #14] INFO – : \> mkdir -p /shared/postgres\_run  
I, [2016-12-02T00:00:21.389944 #14] INFO – :  
I, [2016-12-02T00:00:21.390801 #14] INFO – : \> chown postgres:postgres /shared/postgres\_run  
I, [2016-12-02T00:00:21.395122 #14] INFO – :  
I, [2016-12-02T00:00:21.395880 #14] INFO – : \> chmod 775 /shared/postgres\_run  
I, [2016-12-02T00:00:21.399199 #14] INFO – :  
I, [2016-12-02T00:00:21.399893 #14] INFO – : \> rm -fr /var/run/postgresql  
I, [2016-12-02T00:00:21.403201 #14] INFO – :  
I, [2016-12-02T00:00:21.403831 #14] INFO – : \> ln -s /shared/postgres\_run /var/run/postgresql  
I, [2016-12-02T00:00:21.407292 #14] INFO – :  
I, [2016-12-02T00:00:21.407911 #14] INFO – : \> socat /dev/null UNIX-CONNECT:/shared/postgres\_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1  
I, [2016-12-02T00:00:21.423887 #14] 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 21 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”  
69f7797520f27421762f39f0c5f23d4b182b0b297b3dc71f77452f191afbc741  
\*\* FAILED TO BOOTSTRAP \*\* please scroll up and look for earlier error messages, there may be more than one

---

_[View the full topic](https://meta.discourse.org/t/cant-rebuild-app/53648)._
