Painted-Fox / docker-postgresql

A dockerfile that produces a docker image that runs postgresql.
MIT License
72 stars 57 forks source link

PostgreSQL unable to start because of missing SSL certificate #17

Closed drazzib closed 10 years ago

drazzib commented 10 years ago

Using latest image : paintedfox/postgresql latest 283e9a149f8f 2 days ago 519.5 MB

PostgreSQL is unable to start because of missing SSL certificate file :

POSTGRES_USER=docker
POSTGRES_PASS=docker
POSTGRES_DATA_DIR=/data
Starting PostgreSQL...
Creating the superuser: docker
psql: could not connect to server: Connection refused
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Unable to create the superuser.
Retrying in 3 seconds...
2014-05-11 20:02:41 UTC FATAL:  could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
jamescarr commented 10 years ago

I get this error too

Painted-Fox commented 10 years ago

I believe I fixed this with the latest changes. Could you please verify?

drazzib commented 10 years ago

Hi,

I've just tested with image ID "ca757d6e9764" - which seems to be lastest build - and postgres start without error on SSL certificates.

*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 7
POSTGRES_USER=docker
POSTGRES_PASS=docker
POSTGRES_DATA_DIR=/data
Starting PostgreSQL...
Creating the superuser: docker
Unable to create the superuser.
Retrying in 3 seconds...

Thanks!

Painted-Fox commented 10 years ago

Thank you, @drazzib!