# Failed to install Discourse in Ubuntu14.04: docker problems

**URL:** <https://meta.discourse.org/t/failed-to-install-discourse-in-ubuntu14-04-docker-problems/20399>\
**Category:** Self-hosting\
**Tags:** docker\
**Created:** [September 24, 2014, 12:59pm UTC](https://meta.discourse.org/t/failed-to-install-discourse-in-ubuntu14-04-docker-problems/20399 "2014-09-24T12:59:20Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![craft37](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craft37/32/35505_2.png) [@craft37](https://meta.discourse.org/u/craft37)\
**Post date:** [October 9, 2014, 1:02am UTC](https://meta.discourse.org/t/failed-to-install-discourse-in-ubuntu14-04-docker-problems/20399/15 "2014-10-09T01:02:00Z")

</div>

@sam @codinghorror ? Any ideas, guys?

1. I stopped with same error as in 1st topic message after “./launcher bootstrap app” and have no idea how to start discource.

Figured out that troubles due log starting with this lines:

```
INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2014/10/09 01:18:25 socat[54] E connect(4, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory

INFO -- : > /root/upgrade_postgres
cat: /shared/postgres_data/PG_VERSION: No such file or directory
/root/upgrade_postgres: line 2: [: 9.2: unary operator expected

INFO -- : > su postgres -c 'createdb discourse' || true
createdb: could not connect to database template1: 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"?
I, [2014-10-09T01:18:30.996811 #46] INFO -- : 
I, [2014-10-09T01:18:31.008665 #46] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
psql: 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"?
I, [2014-10-09T01:18:31.072893 #46] INFO -- : 
I, [2014-10-09T01:18:31.073980 #46] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
psql: 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"?
I, [2014-10-09T01:18:31.138713 #46] INFO -- : 
I, [2014-10-09T01:18:31.139386 #46] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
psql: 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"?
I, [2014-10-09T01:18:31.200614 #46] INFO -- : 

```

1. Main hook now that “/shared/postgres\_data” is not a valid data directory" and "postgres PG\_VERSION is missing ". googling..

2.1) According this case: [Solved: Postgresql 8.4 on Ubuntu - PG\_VERSION is missing | Experts Exchange](http://www.experts-exchange.com/OS/Linux/Q_26967327.html)

sudo sysv-rc-conf postgresql on  
service postgresql start

– without result.

2.2) As I figure out, PostgreSQL’s data directory missing. [http://dba.stackexchange.com/a/1354](http://dba.stackexchange.com/a/1354)  
On Debian/Ubuntu:

```
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
9.3 main 5432 online postgres /var/lib/postgresql/9.3/main /var/log/postgresql/postgresql-9.3-main.log

```

But how I can use this info? Is there is any ways to link it with docker?

1. Seems like I not alone with this.  
Guy in [this topic](https://meta.discourse.org/t/admin-docker-url-went-away-on-my-site) had same error 2 days ago during update: “socat[51] E connect(4, AF=1 “/shared/postgres\_run/.s.PGSQL.5432”, 36): No such file or directory”.

2. launcher start app comes with:

---

_[View the full topic](https://meta.discourse.org/t/failed-to-install-discourse-in-ubuntu14-04-docker-problems/20399)._
