Skip to content

Clean installing fails on postgresql error #323

@JustScreaMy

Description

@JustScreaMy

Hello,
I have recently tried to install the version 2024.12.3 on my cluster using the tutorial with a small changes, but I have always ended on postgresql errors:

postgresql 11:27:33.38 INFO  ==> 
postgresql 11:27:33.38 INFO  ==> Welcome to the Bitnami postgresql container
postgresql 11:27:33.38 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
postgresql 11:27:33.38 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
postgresql 11:27:33.38 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
postgresql 11:27:33.38 INFO  ==> 
postgresql 11:27:33.39 INFO  ==> ** Starting PostgreSQL setup **
postgresql 11:27:33.40 INFO  ==> Validating settings in POSTGRESQL_* env vars..
postgresql 11:27:33.41 INFO  ==> Cleaning stale /bitnami/postgresql/data/postmaster.pid file
postgresql 11:27:33.42 INFO  ==> Loading custom pre-init scripts...
postgresql 11:27:33.43 INFO  ==> Initializing PostgreSQL database...
postgresql 11:27:33.48 INFO  ==> pg_hba.conf file not detected. Generating it...
postgresql 11:27:33.48 INFO  ==> Generating local authentication configuration
postgresql 11:27:33.49 INFO  ==> Deploying PostgreSQL with persisted data...
postgresql 11:27:33.50 INFO  ==> Configuring replication parameters
postgresql 11:27:33.51 INFO  ==> Configuring fsync
postgresql 11:27:33.52 INFO  ==> Configuring synchronous_replication
postgresql 11:27:33.58 INFO  ==> Loading custom scripts...
postgresql 11:27:33.58 INFO  ==> Enabling remote connections
postgresql 11:27:33.59 INFO  ==> ** PostgreSQL setup finished! **

postgresql 11:27:33.60 INFO  ==> ** Starting PostgreSQL **
2025-02-01 11:27:33.674 GMT [1[] LOG:  pgaudit extension initialized
2025-02-01 11:27:33.718 GMT [1[] LOG:  starting PostgreSQL 15.8 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2025-02-01 11:27:33.719 GMT [1[] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2025-02-01 11:27:33.719 GMT [1[] LOG:  listening on IPv6 address "::", port 5432
2025-02-01 11:27:33.753 GMT [1[] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2025-02-01 11:27:33.852 GMT [96[] LOG:  database system was interrupted; last known up at 2025-02-01 11:27:21 GMT
2025-02-01 11:27:33.945 GMT [96[] LOG:  database system was not properly shut down; automatic recovery in progress
2025-02-01 11:27:33.976 GMT [96[] LOG:  redo starts at 0/1500660
2025-02-01 11:27:33.976 GMT [96[] LOG:  invalid record length at 0/1500710: wanted 24, got 0
2025-02-01 11:27:33.976 GMT [96[] LOG:  redo done at 0/1500698 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
2025-02-01 11:27:34.007 GMT [94[] LOG:  checkpoint starting: end-of-recovery immediate wait
2025-02-01 11:27:34.319 GMT [94[] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.101 s, sync=0.001 s, total=0.343 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB
2025-02-01 11:27:43.355 GMT [107[] FATAL:  password authentication failed for user "authentik"
2025-02-01 11:27:43.355 GMT [107[] DETAIL:  Role "authentik" does not exist.
    Connection matched pg_hba.conf line 1: "host     all             all             0.0.0.0/0               md5"
2025-02-01 11:27:44.363 GMT [108[] FATAL:  password authentication failed for user "authentik"
2025-02-01 11:27:44.363 GMT [108[] DETAIL:  Role "authentik" does not exist.
    Connection matched pg_hba.conf line 1: "host     all             all             0.0.0.0/0               md5"

My Values.yaml looks like this:

postgresql:
  enabled: true
  auth:
    password: "myVerySecretPassword"

authentik:
  secret_key: "myVerySecretSecret"

  postgresql:
    password: "myVerySecretPassword"

redis:
  enabled: true

server:
  ingress:
    ingressClassName: nginx
    enabled: true
    hosts:
      - idp.example.com
    annotations:
      nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
      nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
      cert-manager.io/cluster-issuer: cloudflare-issuer
    tls:
      - hosts: 
        - idp.example.com
        secretName: authentik-tls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions