Tob1as/docker-postgresql-postgis

Shutting down server

bertt opened this issue · 8 comments

bertt commented

On an RPI3 (Raspbian GNU/Linux 8.0 (jessie), Docker version 17.05.0-ce-rc3, build 90d35ab) I try to get rpi-postgresql-postgis running:

$ docker run -p 5432:5432 tobi312/rpi-postgresql-postgis

But I'm getting an shutdown error after creating PostGIS extension:

Loading PostGIS extensions into postgres
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION

waiting for server to shut down...LOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  autovacuum launcher shutting down
.LOG:  shutting down
...........................................................pg_ctl: server does not shut down

Any ideas?

bertt commented

without Postgis it runs correctly

$ docker run -p 5432:5432 tobi312/rpi-postgresql
bertt commented

tried it again, it started up with some more patience and ignoring shutdown messages

bertt commented

hmm its back again... log:

server started
ALTER ROLE


/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/postgis.sh
CREATE DATABASE
UPDATE 1
Loading PostGIS extensions into template_postgis
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
Loading PostGIS extensions into postgres
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION

waiting for server to shut down...LOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  autovacuum launcher shutting down
.LOG:  shutting down
...........................................................pg_ctl: server does not shut down
 failed
pi@raspberrypi:~ $ 
bertt commented

tried to build the image (9.4-2.1) on RPI3, but errors

$ sudo docker build -t tobi312/rpi-postgresql .
Status: Downloaded newer image for tobi312/rpi-postgresql:9.4
 ---> 8aaf617d25c4
Step 2/11 : RUN cross-build-start
 ---> Running in d7315102d039
standard_init_linux.go:178: exec user process caused "exec format error"
The command 'cross-build-start' returned a non-zero code: 1
bertt commented

same error for 9.6-2.3 image

bertt commented

building on a mac building step 2/11 passes

bertt commented

same error after rebuilding/running image

bertt commented

got it working again after using Hypriot image (https://blog.hypriot.com/)