UNCLASSIFIED - NO CUI

Skip to content

Postgres Alpine 15.2 is broken and will not start the db

This image: registry1.dso.mil/ironbank/opensource/postgres/postgresql-alpine:15.2

..is not setup correctly. Postgres does not startup using this image. If you shell into the image and try to start postgre you get errors about the postgresql.conf file being missing. If we copy that file into the right location we then get these errors:

bfohl@RC-D4K3X7N3FL CATS-psql15 (1) % docker run -it registry.il4.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/postgresql15-extensions:15.2-5 /bin/bash WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 83ff26e0ec32:/$ postgres 2023-05-08 21:48:11.908 GMT [10] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.auto.conf" 2023-05-08 21:48:11.915 UTC [10] FATAL: 22023: "/var/lib/postgresql/data" is not a valid data directory 2023-05-08 21:48:11.915 UTC [10] DETAIL: File "/var/lib/postgresql/data/PG_VERSION" is missing. 2023-05-08 21:48:11.915 UTC [10] LOCATION: ValidatePgVersion, miscinit.c:1569 83ff26e0ec32:/$

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information