This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] QueryFailedError: permission denied to create extension "earthdistance" #5399
Comments
The default user created by the bitnami postgres chart doesn't have CREATE EXTENSION permissions (bitnami/containers#30065). I don't know if there's much we can do about that. |
Oh that's a pain. As a workaround, can you use the privileged https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml#L31 |
adding superuser permisson works
start immich, then drop
|
I'm doing that through my root user using dbeaver, giving superuser perms to my immich user, but I still get the error that I cannot create the extension Using root user: alter user immich with superuser; Using Immich user: CREATE EXTENSION IF NOT EXISTS cube;
CREATE EXTENSION IF NOT exists earthdistance; Error:
And if it's any use, I created the DB and User like so: CREATE DATABASE immich;
CREATE USER immich WITH ENCRYPTED PASSWORD 'verygoodpassword';
GRANT ALL PRIVILEGES ON DATABASE immich TO immich; What could be wrong? :( |
I fixed my issue by doing the following steps. If anyone is running postgress and immich in different containers like you would do if you use Unraid, please read:
|
I ran with the solution provided in https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml#L31 and changed to the postgresql user w/ my own DB credentials. Obviously not ideal, but waiting for a better workaround. |
I'm running into the same issue, but creating the extensions manually doesn't seem to fix the issue. Using immich-chart v0.3.1 and immich-app v1.91.0
But the
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The bug
I have deployed a greenfield installation of Immich v1.89.0 with Helm chart v0.2.0. I saw the warning in the release notes
I figured a new installation with the Helm chart would behave the same as docker composer, but I am running into this error, which repeats a few times before Kubernetes kills the pod.
Yes I can run the
CREATE EXTENSION
commands by hand but this issue will affect every new installation.The OS that Immich Server is running on
MicroK8s v1.26
Version of Immich Server
v1.89.0
Version of Immich Mobile App
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response
The text was updated successfully, but these errors were encountered: