Using the official helm chart
I can't seem to deploy Immich with the official chart. When
and I add
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:
and the following in the postgres container log:
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
k3s-homelab/values.yaml at master · Jsakkos/k3s-homelab
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
10 Replies
You need to pass the password to postgres under the postgresql key as well
Like this?
Where immich-secrets contains
Looks about right yes
Still same issue, unfortunately. Auth failed.
I checked and both have the same password for the immich user
The postgres db has probably been initialised with the default password at this point, so you'll need to delete and recreate its volume
I've been deleting the entire deployment from the ArgoCD UI each time I've made changes like this.
Is there something additional I should do to make sure the old db gets deleted?
If the volume is certainly being deleted, then probably not
Check the env vars on the deployed pods to make sure they all match
Postgres:
Server:
POSTGRES_PASSWORD matched DB_PASSWORD
Actually, it looks like the PVC had not been deleted, even though I was deleting the whole deployment. That fixed the issue, thanks!
Yeah, it's pretty common for volumes to be persisted between container deletes are restarts 🙂
Otherwise pgdata would also probably be deleted and that's where all your immich (meta)data is stored
This is on kubernetes where the behaviour is a bit more varied ;)