ruralinnovation / multi-svc-cartodb

Containerized, Multi-service, Open-Source CartoDB
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Postgis container doesn't start #53

Open Baschdl opened 4 years ago

Baschdl commented 4 years ago

postgis container throws following error when starting up

postgis      | initdb: file "/usr/share/postgresql/10/postgresql.conf.sample" does not exist
postgis      | This might mean you have a corrupted installation or identified
postgis      | the wrong directory with the invocation option -L.
postgis      | The files belonging to this database system will be owned by user "postgres".
postgis      | This user must also own the server process.

Did you intend to copy the postgres config file into osscarto-multi-postgis-extensions?

Baschdl commented 4 years ago

It should be created here but I'm not sure why it doesn't happen https://github.com/ruralinnovation/multi-svc-cartodb/blob/8d28ec5faf2128f2a4ede547db61877fc5d22237/packer/postgis/provisioners/provision-pg-10.sh#L134 Maybe postgresql.conf.sample.dpkg doesn't exist

Baschdl commented 4 years ago

/usr/share/postgresql/postgresql.conf.sample does exist but this is a odd link:

ls -lah /usr/share/postgresql/10/postgresql.conf.sample
lrwxrwxrwx 1 root root 25 Jun  2 22:07 /usr/share/postgresql/10/postgresql.conf.sample -> ../postgresql.conf.sample
Baschdl commented 4 years ago

The link is fine but ../postgresql.conf.sample doesn't exist. Meaning https://github.com/ruralinnovation/multi-svc-cartodb/blob/8d28ec5faf2128f2a4ede547db61877fc5d22237/packer/postgis/provisioners/provision-pg-10.sh#L134 somehow doesn't work.

Baschdl commented 4 years ago

Ahh, the packer fails silently:

==> docker: E: Version '10.10-1.pgdg90+1' for 'postgresql-10' was not found
    docker: **** PACKER PROVISIONER (provision-pg-10.sh): Configuring installed PostgreSQL packages ****
    docker: Adding 'local diversion of /usr/share/postgresql/10/postgresql.conf.sample to /usr/share/postgresql/postgresql.conf.sample.dpkg'
==> docker: cp: cannot stat '/usr/share/postgresql/postgresql.conf.sample.dpkg': No such file or directory
    docker: '/usr/share/postgresql/10/postgresql.conf.sample' -> '../postgresql.conf.sample'