Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgis container doesn't start #53

Open
Baschdl opened this issue Jun 2, 2020 · 4 comments
Open

Postgis container doesn't start #53

Baschdl opened this issue Jun 2, 2020 · 4 comments

Comments

@Baschdl
Copy link

Baschdl commented Jun 2, 2020

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
Copy link
Author

Baschdl commented Jun 2, 2020

It should be created here but I'm not sure why it doesn't happen

cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample

Maybe postgresql.conf.sample.dpkg doesn't exist

@Baschdl
Copy link
Author

Baschdl commented Jun 4, 2020

/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
Copy link
Author

Baschdl commented Jun 4, 2020

The link is fine but ../postgresql.conf.sample doesn't exist. Meaning

cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample
somehow doesn't work.

@Baschdl
Copy link
Author

Baschdl commented Jun 4, 2020

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant