Closed alexanderursu99 closed 7 months ago
Hi, @Alxander64.
I tried reproducing this using the values you provided (except for the existingSecret
) and I wasn't able to reproduce it. In my case, pgpool starts properly and doesn't report any syntax error:
❯ k logs -f pg-postgresql-ha-pgpool-67975846b6-96qbt
pgpool 15:01:54.46
pgpool 15:01:54.46 Welcome to the Bitnami pgpool container
pgpool 15:01:54.46 Subscribe to project updates by watching https://github.com/bitnami/containers
pgpool 15:01:54.46 Submit issues and feature requests at https://github.com/bitnami/containers/issues
pgpool 15:01:54.46
pgpool 15:01:54.46 INFO ==> ** Starting Pgpool-II setup **
pgpool 15:01:54.48 INFO ==> Validating settings in PGPOOL_* env vars...
pgpool 15:01:54.50 INFO ==> Initializing Pgpool-II...
pgpool 15:01:54.50 INFO ==> Generating pg_hba.conf file...
pgpool 15:01:54.51 INFO ==> Generating pgpool.conf file...
pgpool 15:01:54.64 DEBUG ==> Adding 'pg-postgresql-ha-postgresql-0.pg-postgresql-ha-postgresql-headless' information to the configuration...
pgpool 15:01:54.65 DEBUG ==> Adding 'pg-postgresql-ha-postgresql-1.pg-postgresql-ha-postgresql-headless' information to the configuration...
pgpool 15:01:54.65 DEBUG ==> Adding 'pg-postgresql-ha-postgresql-2.pg-postgresql-ha-postgresql-headless' information to the configuration...
pgpool 15:01:54.65 INFO ==> Generating password file for local authentication...
trying to read key from file /opt/bitnami/pgpool/conf/.pgpoolkey
pgpool 15:01:54.66 INFO ==> Generating password file for pgpool admin user...
pgpool 15:01:54.67 INFO ==> ** Pgpool-II setup finished! **
pgpool 15:01:54.69 INFO ==> ** Starting Pgpool-II **
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
I have encountered the same issue. And I found that when password contains '&', the config file will corrupt. Changing the password fixes the issue.
In addition to the Max-sum response, the password length can't be too long. I tried using to use a 128 character password and got the same error.
Hi, Could you try the following ?
$ my_password="12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"
$ echo -n $my_password | wc -c
128
$ helm install mypg bitnami/postgresql-ha --set pgpool.adminPassword=$my_password
I got the cluster up and running:
pgpool 11:37:17.02 INFO ==> Generating password file for local authentication...
pgpool 11:37:17.04 INFO ==> Generating password file for pgpool admin user...
pgpool 11:37:17.05 INFO ==> ** Pgpool-II setup finished! **
pgpool 11:37:17.09 INFO ==> ** Starting Pgpool-II **
2024-02-14 11:37:17.125: main pid 1: LOG: Backend status file /opt/bitnami/pgpool/logs/pgpool_status does not exist
However, if my_password
is longer then I got:
pgpool 11:30:59.07 INFO ==> Generating password file for local authentication...
pgpool 11:30:59.09 INFO ==> Generating password file for pgpool admin user...
Error: Input exceeds maximum password length!
Usage:
pg_md5 [OPTIONS]
pg_md5 <PASSWORD>
--prompt, -p Prompt password using standard input.
--md5auth, -m Produce md5 authentication password.
--username, -u USER When producing a md5 authentication password,
create the pool_passwd entry for USER.
--config-file, -f CONFIG-FILE Specify pgpool.conf.
--input-file, -i INPUT-FILE Specify file containing username and password pairs.
--help, -h This help menu.
Warning: At most 128 characters are allowed for input.
Could you double check the length of your password ?
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/postgresql-ha 9.3.3
What steps will reproduce the bug?
Deploying Helm chart on EKS 1.21
Are you using any custom parameters or values?
Currently have these values set for pgpool section in the Helm chart:
What is the expected behavior?
Expecting pgpool to start up successfully.
What do you see instead?
pgpool begins setup and exits after stating a warning of a syntax error in pgpool.conf without any indication of what is causing it.