Using the official helm chart

I can't seem to deploy Immich with the official chart. When
  postgresql:
    enabled: true

and I add
  common_env:
    DB_PASSWORD:
      valueFrom:
        secretKeyRef:
          name: immich-postgresql
          key: password     

as alluded to in the documentation, immich-server can't connect to the db. I've checked that the db is running and that the password is the same as the one in the server container env.

I get the following error in the server container log:
[Nest] 1  - 04/03/2023, 4:39:20 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
98
error: password authentication failed for user "immich"
97
    at Parser.parseErrorMessage (/usr/src/app/node_modules/pg-protocol/dist/parser.js:287:98)
96
    at Parser.handlePacket (/usr/src/app/node_modules/pg-protocol/dist/parser.js:126:29)
95
    at Parser.parse (/usr/src/app/node_modules/pg-protocol/dist/parser.js:39:38)
94
    at Socket.<anonymous> (/usr/src/app/node_modules/pg-protocol/dist/index.js:11:42)
93
    at Socket.emit (node:events:527:28)
92
    at addChunk (node:internal/streams/readable:315:12)
91
    at readableAddChunk (node:internal/streams/readable:289:9)
90
    at Socket.Readable.push (node:internal/streams/readable:228:10)
89
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)


and the following in the postgres container log:

2023-04-03 04:34:27.940 GMT [463] DETAIL:  Connection matched pg_hba.conf line 1: "host     all             all             0.0.0.0/0               md5"
2023-04-03 04:34:28.102 GMT [478] FATAL:  password authentication failed for user "immich"

Any idea what the issue is? My values.yaml file is here: https://github.com/Jsakkos/k3s-homelab/blob/master/apps/immich/values.yaml
GitHub
Modern self-hosting framework, fully automated from empty disk to operating services with a single command. - k3s-homelab/values.yaml at master · Jsakkos/k3s-homelab
Was this page helpful?