Version 11.18.0 will not start due to libssl.so.1.1 error
The current version of this container is broken and will not start.
Log:
postgresql 13:57:16.00
postgresql 13:57:16.00 Welcome to the Bitnami postgresql container
postgresql 13:57:16.00 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
postgresql 13:57:16.01 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
postgresql 13:57:16.01
postgresql 13:57:16.02 INFO ==> ** Starting PostgreSQL setup **
postgresql 13:57:16.03 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 13:57:16.04 INFO ==> Loading custom pre-init scripts...
postgresql 13:57:16.05 INFO ==> Initializing PostgreSQL database...
postgresql 13:57:16.05 DEBUG ==> Ensuring expected directories/files exist...
postgresql 13:57:16.07 INFO ==> pg_hba.conf file not detected. Generating it...
postgresql 13:57:16.07 INFO ==> Generating local authentication configuration
postgresql 13:57:16.08 INFO ==> postgres_allow_local_connection
/opt/bitnami/postgresql/bin/initdb: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Steps to reproduce:
$ docker run -it -e BITNAMI_DEBUG=true -e POSTGRESQL_PASSWORD=bob -v$PWD/test:/bitnami/postgresql/data registry1.dso.mil/ironbank/bitnami/postgres/postgresql11:11.18.0
postgresql 14:05:24.73
postgresql 14:05:24.73 Welcome to the Bitnami postgresql container
postgresql 14:05:24.74 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
postgresql 14:05:24.74 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
postgresql 14:05:24.75
postgresql 14:05:24.76 INFO ==> ** Starting PostgreSQL setup **
postgresql 14:05:24.77 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 14:05:24.79 INFO ==> Loading custom pre-init scripts...
postgresql 14:05:24.79 INFO ==> Initializing PostgreSQL database...
postgresql 14:05:24.80 DEBUG ==> Ensuring expected directories/files exist...
postgresql 14:05:24.83 INFO ==> pg_hba.conf file not detected. Generating it...
postgresql 14:05:24.84 INFO ==> Generating local authentication configuration
postgresql 14:05:24.85 INFO ==> postgres_allow_local_connection
/opt/bitnami/postgresql/bin/initdb: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
This is because you switch over to the UBI 9 container. It installs OpenSSL v3.x as the default. For this container to work, you must install compat-openssl11.x86_64
, revert to the UBI 8 container, or obtain a copy of bitnami's PostgreSQL linked to OpenSSL 3.0.
Running docker run -it --rm --entrypoint /bin/bash bitnami/postgresql:latest ldd /opt/bitnami/postgresql/bin/initdb
indicates that the latest Bitnami PostgreSQL image is linked to libssl.so.1.1, so the image needs to have compat-openssl11.x86_64
installed or moved back to UBI 8.