bitnami image fails at initdb
blootsvoets opened this issue · 1 comments
blootsvoets commented
Description
Since tag 2.9.0-pgX-bitnami
, timescaledb initialisation no longer works with just the POSTGRES_PASSWORD
or POSTGRES_PASSWORD_FILE
argument. This is problematic, because several helm charts (including the bitnami/postgres
version 12.1.19 helm chart) assume that this is the only password variable needed.
How to reproduce
The following does not work for versions 2.9.0 and 2.9.1:
docker run --rm -d -e POSTGRES_PASSWORD=test --name timescaledb timescale/timescaledb:2.9.0-pg12-bitnami
with logs
$ docker logs -f timescaledb
postgresql 15:08:57.45
postgresql 15:08:57.48 Welcome to the Bitnami postgresql container
postgresql 15:08:57.51 Subscribe to project updates by watching https://github.com/bitnami/containers
postgresql 15:08:57.54 Submit issues and feature requests at https://github.com/bitnami/containers/issues
postgresql 15:08:57.56
postgresql 15:08:57.79 INFO ==> ** Starting PostgreSQL setup **
postgresql 15:08:57.99 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 15:08:58.11 INFO ==> Loading custom pre-init scripts...
postgresql 15:08:58.19 INFO ==> Initializing PostgreSQL database...
postgresql 15:08:58.54 INFO ==> pg_hba.conf file not detected. Generating it...
postgresql 15:08:58.57 INFO ==> Generating local authentication configuration
postgresql 15:09:03.19 INFO ==> Starting PostgreSQL in background...
postgresql 15:09:03.74 INFO ==> Changing password of postgres
postgresql 15:09:03.96 INFO ==> Configuring replication parameters
postgresql 15:09:04.42 INFO ==> Configuring synchronous_replication
postgresql 15:09:04.45 INFO ==> Configuring fsync
postgresql 15:09:04.78 INFO ==> Stopping PostgreSQL...
waiting for server to shut down.... done
server stopped
postgresql 15:09:04.96 INFO ==> Loading custom scripts...
postgresql 15:09:05.03 INFO ==> Loading user's custom files from /docker-entrypoint-initdb.d ...
postgresql 15:09:05.05 INFO ==> Starting PostgreSQL in background...
Password for user postgres:
psql: error: FATAL: password authentication failed for user "postgres"
postgresql 15:09:05.64 INFO ==> Stopping PostgreSQL...
waiting for server to shut down.... done
server stopped
and it works for version 2.8.1 and earlier
docker run --rm -d -e POSTGRES_PASSWORD=test timescale/timescaledb:2.8.1-pg12-bitnami
Using POSTGRESQL_PASSWORD
and/or BITNAMI_APP_NAME
environment variables gives the same results.
akuzm commented
Thanks for reporting! I rolled out the fix, the updated 2.9.0 and 2.9.1 images should be published in an hour.